|
What do you mean by 'trigger' ? All events happen after page load, any code that renders based on events should be in page prerender.
What's ass backwards is that an ASP.NET page by default has the load and not the prerender event.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks, I'll try that.
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
|
|
|
|
|
Hi, I have a website build in ASP.Net 2.0. I also have a ftp site to test the website. I placed my files in a folder called test. My home page is therefore test/Forms/Home.aspx. I have been told that I require an index.htm file for the site so I added one with code to redirect to the home page. My web.config file is in the test folder and I have set <customErrors mode="Off"/>
The problem is that whenever I go to www.mysite.com/test I get this error
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
I hope I have supplied enough background information. May someone please help me.
Thank you in advance
|
|
|
|
|
Dot Net rookie wrote: Hi, I have a website build in ASP.Net 2.0. I also have a ftp site to test the website.
I don't understand that, do you have link to a page the explains using a FTP site to test an ASP.NET application?
led mike
|
|
|
|
|
I would like to test my website on a ftp server. I get the runtime error I pasted above whenever I go the site. I have no idea how to fix it.
|
|
|
|
|
I want to catch 404 page not found errors in my C# ASP.net 2.0 website.
So I put...........
<customErrors mode="On" defaultRedirect="UnexpectedError.aspx">
<error statusCode="404" redirect="PageNotFound.aspx"/>
</customErrors>
in my web config file, great.
If I change the URL in the browser from www.mysite.homepage.aspx to www.mysite.omepage.aspx my pagenotfound page displays. whats the problem??
If i change it to www.mysite.homepage.spx I get a standard 404 error but no custom page, is this not a real 404?
Any clues??
Harvey
|
|
|
|
|
imnotso# wrote: <customerrors mode="On" defaultredirect="UnexpectedError.aspx">
<error statuscode="404" redirect="PageNotFound.aspx">
This is in the application web.config processed by ASP.NET. Hence 404s that can be trapped from within the application which are ASP.NET parseable files alone get through this filter. Everything else passes through the standard IIS 404 filter, which you may need to configure or have all requests routed through ASP.NET, which might increase the load on ASP.NET.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
Hi
I amanged to set up membership and created the .mdf database through VWD.
However now I would like to put that database in sql server.
Does any1 know how to do this would be great
thanks!
|
|
|
|
|
|
Db publishing wizard
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Hello Friends,
I've designed a website in ASP.NET 2.0 and having database in Sql Server
I'm uploading my website on my server. And i've a folder named "Admin" in my website and having two web pages inside this "Admin" folder. But when i publish my site and run it then it runs perfectly but when run "Admin" folder's web pages then those pages are not working properly for running those web pages i've to upload my ".CS" file as well. Please suggest why this problem is being raised.........
|
|
|
|
|
what problem did you facing ?
check the path that you are given for those pages inside the Admin Folder.
|
|
|
|
|
I got Runtime Error...
But when i upload ".CS" pages then it works fine
|
|
|
|
|
.NET- India wrote: But when i upload ".CS" pages then it works fine
What does it mean ?
Did you try to run application with out ".cs" file ?
|
|
|
|
|
yea i've tried............
|
|
|
|
|
.NET- India wrote: yea i've tried............
what you have tried ????
it is not possible to run your page with out put codebehied file.
i dont know in which way you are going !!!
|
|
|
|
|
|
.NET- India wrote: i can show you
what do you want to show me ???
|
|
|
|
|
i'll give the url of my site then u run tht page. Then you can check tht page is not running but as i upload tht's ".CS" file then tht page will work fine
|
|
|
|
|
ohhhh man........
.NET- India wrote: Then you can check tht page is not running but as i upload tht's ".CS" file then tht page will work fine
unless you give the "Cs" file how your page will run. it will work fine when you upload the "cs" else not.
I think you need some rest from your work ... then every thing will fine .
|
|
|
|
|
Abhijit Jana wrote: unless you give the "Cs" file how your page will run. it will work fine when you upload the "cs" else not.
It will work without CS file. ASP.NET provides different types of deployment. If "Publish Website" is used, it will generate assemblies and no need to upload CS file. Publishing CS file is considered as less secure if you host on a shared server.
|
|
|
|
|
Hi navaneeth,
though i have deploye some web sites by publised them , but i never look on that issue.
Thanks for information.
Thanks again !!!!
|
|
|
|
|
i think you are not understanding what i'm saying please get my first comment block carefully then understand my probs and suggest me some way if you find otherwise. Thnx a lottttttttttttttt..........
And i think we never upload ".CS" file over the server .........
|
|
|
|
|
Abhijit Jana wrote: unless you give the "Cs" file how your page will run. it will work fine when you upload the "cs" else not.
I think you need some rest from your work ... then every thing will fine .
Please read some tutorials about publishing a website. A published website works on aspx + dll files. No need of css files.
“The woods are lovely, dark and deep. But I have promises to keep, and miles to go before I sleep.”
|
|
|
|