CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 9/19/2003 3:35:33 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 69 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
klavis
Asp.Net User
Custom Control causing browser to try and save aspx file9/19/2003 3:35:33 PM

0/0

Hi I am trying to build a custom server control that includes all the infomation for the default page for my site. Basically all the pages are the same soo I want to have them all use the same control...anyways I am having some trouble because when I build and run the aspx file with the reference to the ascx file IE for some reason asks me if I want to save the file instead of just opening it in the browser window. If I save the file and then open it in IE or web matrix it looks exactly like it should. Why is it trying to save it instead of opening it in the browser??


this is the code for the page

<%@ Page Language="C#" ContentType = "text\html" ResponseEncoding = "iso-8859-1" %>
<%@ Register TagPrefix="KPM" TagName="MainTag" Src="default.ascx" %>
<html>
<head>
</head>
<body>
<form runat="server">
<KPM:MainTag id="main" runat="server" />
</form>
</body>
</html>


Any thoughts?

Keith
Haacked
Asp.Net User
Re: Custom Control causing browser to try and save aspx file9/19/2003 5:04:38 PM

0/0

Interesting. When you download it, are you seeing the source? Or is it interpreted properly?

My guess is that your IIS Application mappings are wrong. Make sure .aspx and .ascx are mapped to the aspnet_isapi.dll. By default the path is:

C:\WINNT\Microsoft.NET\Framework\v{versionNumber}\aspnet_isapi.dll

Try viewing source on the original .aspx page when you navigate to it. If IE is trying to download the ascx, then there must be something in the html page linking to it. That shouldn't have been sent to the browser.

Hope that helps.
Phil Haack (http://haacked.com/)
Senior Program Manager, Microsoft

What wouldn’t you do for a Klondike bar?
klavis
Asp.Net User
Re: Custom Control causing browser to try and save aspx file9/23/2003 5:29:16 PM

0/0

Hmm...if my IIS mappings were wrong wouldnt all aspx files automatically try and download? IE downloads the whole interpreted aspx not the ascx file......when i open it up in IE after its on my hard drive it looks perfect...anyone else have any thoughts??

Keith
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Developing Microsoft ASP.NET Server Controls and Components Authors: Nikhil Kothari, Vandana Datye, Pages: 689, Published: 2002
Professional Web Parts and Custom Controls with ASP.NET 2.0 Authors: Peter Vogel, Pages: 449, Published: 2005
Sams Teach Yourself ASP.NET in 21 Days Authors: Chris Payne, Pages: 1077, Published: 2002
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Developing Killer Web Apps with Dreamweaver MX and C# Authors: Chuck White, Pages: 409, Published: 2004
Beginning ASP.NET 1.0 with Visual Basic.NET: With Visual Basic .NET Authors: Chris Goode, Rob Birdwell, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Ollie Cornes, Matt Butler, Dave Sussman, Gary Johnson, Chris Ullman, Ajoy Krishnamoorthy, Juan T. Llibre, Pages: 816, Published: 2002
Beginning ASP.NET 1.0 with C# Authors: Chris Goode, John Kauffman, Christopher L. Miller, Rob Birdwell, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Chris Ullman, Juan T. Llibre, Pages: 888, Published: 2002
Moving to ASP.NET: Web Development with VB .NET Authors: Steve Harris, Rob Macdonald, Pages: 739, Published: 2002
ASP. Net Development with Dreamweaver Mx: Ryan Parnell, Joel Martinez Authors: Ryan Parnell, Joel Martinez, Pages: 310, Published: 2002
C# and the .NET Framework: The C++ Perspective Authors: Bob Powell, Robert Powell, Richard Weeks, Pages: 620, Published: 2001

Web:
Custom Control causing browser to try and save aspx file - ng.asp ... Custom Control causing browser to try and save aspx file, > ROOT > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum, ...
Building the Custom Server Control Examples Create a folder for the source files for custom controls and related classes. ... .aspx file and save the file. Request the .aspx pages in a Web browser. ...
CodeProject: Save Changes on Close of Browser or when exiting the ... Sep 24, 2007 ... The grid is a custom control derived from CWnd ... Well, all these things are present in my aspx 2.0 code file. ...
Steve C. Orr - A custom control that exports web content to Excel ... The custom Web control detailed in this article will make it easy for you to ... which will cause the ExportPanel to act exactly like a standard Panel control. .... This header gives the browser the file name and gives it the final ... box will be presented to the user asking if they wish to save or open the file. ...
Walkthrough: Developing and Using a Custom Server Control If your control renders an element that is not visible in the browser, ... It causes the just-in-time (JIT) compiler to check that code that links to .... Copy the following markup into the Default.aspx file and save the file. .... When you try to add the <%@ Register TagName line you get the following error: ...
Silverlight Custom Control This can cause undesired behavior as Silverlight requires a uniquely ... /2007/ 08/14/Silverlight-Controls-_2D00_-The-path-to-reusable-XAML.aspx ... Save the file. In Expression Blend, press the F5 button to run the project. .... Navigate to the DotNetNuke site using the web browser and log in as the Host account. ...
Custom Controls VS Components - ASP.NET Controls Explained: Part 2 ... It's time to introduce custom controls and components. ... Save the file as customc.cs. using System; using System.Web; ... It allows us to output text to the web browser. In an aspx page, every tag is written to use ...
ASP.NET.4GuysFromRolla.com: Hosting a Windows Control in a Web Form May 26, 2004 ... NET Web page through a browser; you should see something like the ... NET can host both Windows User Controls and Custom Controls, ... file: first the user triggers an event on the Windows Control to push data ... You can dynamically generate Windows Controls by adding the raw HTML to an ASPX page. ...
Matjaz Perpar's Blog : How to create custom navigation menu in ... Dec 17, 2008 ... Create blank aspx file. On SharePoint create a blank aspx file and save it as “ NavigationPost.aspx”. ... In a browser is should look like this: ... It is also possible to use aspmenu control instead of Treeview. ...
Excel report with ASP.NET read-only problem The problem is when I try to save the page, this message appears: "'aspname.aspx ' is read-only.To save a copy, click OK, then give the ... This code also specifies that the file should be opened externally (as an ... "Error Creating Control" when creating a custom control (Design Time). ...

Videos:
TalkLock on Blackberry Storm Demo This is a demo of the "TalkLock" application running on the Blackberry Storm, as requested by KJack628 over at www.storm-blackberry.com message ...




Search This Site:










events raised by a webcontrol handled in aspx

web custom control: collection editor does not persist values

postback blues

response.redirect in a user control?

what happened to serversea?

help-usercontrol for left side menu that spans the whole page

serialize a user control?

calendar pop-up that selects multiple dates

asp.net treeview control

dos attacks, what to do?

a looking for a 3rd party control that performs file uploads and downloads

wh4l and ultimahosting - my feedback

order of addparsedsubobject and createchildcontrols

vs.net annotations and autocoplete problem

getting settings from web.config at deisgn time

horrible service by webhost4life

problem with databinding custom server control

polygon hotspot for imagemap custom control

user accounts for the managed hosting employees on client machines

problem with path referencing in server control

server control problem

inherting from repeater control

control property persistence not working with vs 2005 beta 2

style builder and properties

how to get response object in the server control?

using the url/params object to store state in a custom control

event firing problem

custom control based on radiobutton - help!

the sad state of shared hosting in asp.net

ie back button

  Privacy | Contact Us
All Times Are GMT