|
I use one contentpage of my MySite.Master page as an Error-page. How do I redirect from that page to any other page after 5 seconds.
_____________________________
...and justice for all
APe
|
|
|
|
|
Either using a meta redirect or through javascript with setTimeout(funciton, time). Of course you should always provide a plain hyperlink in case the browser doesn't support either of these methods (or they don't want to wait 5 seconds)
|
|
|
|
|
But where do I insert a meta-tag or a script in my contentpage?
My content page look like this:
<%@ Page Language="C#" MasterPageFile="~/NFI.Master" AutoEventWireup="true" CodeBehind="Error.aspx.cs" Inherits="NFIWWW.Error" Title="::: :::" %><br />
<br />
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <br />
<h2>Error</h2> <br />
<p>...</p><br />
</asp:Content>
_____________________________
...and justice for all
APe
|
|
|
|
|
Hi,
I need some input here. I am looking for a common/general/global word for membership, profile, personalisation, roles, users, etc.
Anyone with any ideas?
Regards
ma se
|
|
|
|
|
Is there a way to find out what a user's default Media player is? We are running into a instance where Windows Media Player acts different that QuickTime Media player where WMP opens up in a new window to where QT opens up in the current window. Any kind of insight would be great.
|
|
|
|
|
One possible solution is to read the registry for version #
|
|
|
|
|
Hi, can anyone please tell me how i can read from a global resource file in my javascript function? I need to show the message which will be there in a resource file on alert message.
Can anyone tell me ?
|
|
|
|
|
deep7 wrote: how i can read from a global resource file in my javascript function?
I think you can't do this. You can take this value at the server side and put that to hidden textbox. Then you can show this message with javascript alert
|
|
|
|
|
yes even i think that...thanks a lot
Regards,
Dee
|
|
|
|
|
There is no need for a hidden field. The text can be placed in a javascript variable during page load or init.
only two letters away from being an asset
|
|
|
|
|
i found out the way to do it...set the string in server side from global resource file.
then in javascript alert , use it like this:
'<%=strVar%>'
so there no need for hidden textboxes.
|
|
|
|
|
Although placing the text in a javascript variable during page load would work, you can also make an AJAX call to retrieve the message from a resource file.
only two letters away from being an asset
|
|
|
|
|
Hi,
how to transfer gridview column headings from one gridview to another gridview which is in another page
|
|
|
|
|
|
can you be more sepcific?
I Love SQL
|
|
|
|
|
hi!
i need to show the .aspx pages to .html with database support. plz tell me if there is any way to do this...
|
|
|
|
|
Just for name sake you can use URLRewritting. You need to map html extension with isapi_aspnet dll . So when a request comes for HTML page, that will be handled by ASP.NET engine. You can write a HTTPModule that checks the incoming requests and rewrite it to appropriate apx page. So user will be seeing html extension on the browser address bar, but ASP.NET is doing the job in background.
|
|
|
|
|
only two letters away from being an asset
|
|
|
|
|
|
hi there,
I've posted this already a week ago in the Web-Development board but didn't get an answer. I'm sorry for crossposting but I really need help on this one:
I'm using iis 5 to run an asp application. I have custom error pages defines for the http errors 500 through 502 with an url value of /status_500.asp. The file exists for sure. i then created a testpage which does nothing more then a division by zero, hoping the error-page (there is just a response.write on it) will show up. whatever i do, i always get the standard runtime error page instead of my status_500.asp.
does anyone know this problem? any help is greatly appreceated!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Hi,
Can you please paste the changes u have made in web.confing file?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Chetan Ranpariya wrote: Can you please paste the changes u have made in web.confing file?
I think author is using classical ASP
|
|
|
|
|
Ohh,
I apologize for that. I didn't notice that.
Sorry Again
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
ASP I am not sure, but if it is ASP.NET then you can configure this type of errors in web.config file. I think IIS won't handle this.
|
|
|
|
|
Firstofall, thanks for your reply.
I'm sorry. I didn't mention that this is an asp application, so no web.config available (in a asp.net application running on the same server and using the web.config settings it works fine).
But for this asp application I used the IIS->Virtual Directory->Properties->Custom Errors Tab to configure the custom error pages.
Can it be that, if you have .net installed, IIS ignores custom error settings because it believes, people will handle this in the web.config?
Thanks again for your time.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|