|
I have a registration form i fill the details and then i save it.Then i am transfered to the new page where it says registered succesfully.But when i click the back button i get the registration form with all the information in the respective textboxes. I want that all the information should reset when i go back.
Mohinder Singh
|
|
|
|
|
vengaqua wrote: But when i click the back button i get the registration form with all the information in the respective textboxes. I want that all the information should reset when i go back.
One option is block the back button using javascript. Next is set browsers cachebality none.
|
|
|
|
|
hi
hope this will help u
use following code on ur page load event
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
There are various ways that you can try and stop this behaviour but bottom line is you can't 100% gaurantee control over the client, its just not possible (and bad practice anyway - breaking back button behaviour can confuse users). Whatever problem this is causing you I suggest you find another way round it on the server.
|
|
|
|
|
clear all the textboxes after saving the records and then redirect user to another page.
Best Regards
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
Hello EveryOne,
i am unable to pass querystring with url.
Actually i have taken an hyperlink in datalist and on the click event of dat hyperlink i want to send an id along with url i am using this :
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id=" + '<%#DataBinder.Eval(Container.DataItem,"Id")%>'></asp:HyperLink>
but i am getting errors like server tag not formed well
Help needed
rahul saini
|
|
|
|
|
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id= <%#DataBinder.Eval(Container.DataItem,"Id")%>"></asp:HyperLink>
Try this
Cheers
Navaneeth!!
www.w3hearts.com
-- modified at 6:28 Monday 12th March, 2007
|
|
|
|
|
Hi,
I their is nothing in your rply pls rply me again.
Thanks
Rahul
rahul saini
|
|
|
|
|
|
Hi,
No its not working still getting error "The server tag is not well formed "
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id= <%#DataBinder.Eval(Container.DataItem,"Id")%>"></asp:HyperLink>
Regards
Rahul
rahul saini
|
|
|
|
|
Try this one..
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl="abc.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>" />
Koushik
|
|
|
|
|
Hi Pavan,
Sry it also not working still getting the same error.
Regards
Rahul
rahul saini
|
|
|
|
|
'abc.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>'
you must use within single quotation mark
|
|
|
|
|
Try using <a href rather than going for hyperlink button ?
Cheers
Navaneeth!!
www.w3hearts.com
|
|
|
|
|
Hi Navaneeth,
Its working with href.
Thanks
But i have use only button
and have found the sollution by using this
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl='<%#"abs.aspx?id=" + DataBinder.Eval(Container.DataItem,"Id")%>'/>
thanks for your help
Regards
Rahul
rahul saini
|
|
|
|
|
try this one..
NavigateUrl='<%#"abc.aspx?ID="+DataBinder.Eval(Container.DataItem, "Id")%>'
Koushik
|
|
|
|
|
This is to do with your quote usage and positioning I'd reckon. try;
<asp:HyperLink ID="abc" runat="server" Text="button" NavigateUrl='abc.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>' />
<div class='ForumSig'></div>
|
|
|
|
|
hai monusaini,,try this one
<asp:hyperlink id="abc" runat="server" text="button"
="" navigateurl="<%#"abc.aspx?id=" + DataBinder.Eval(Container,"Dataitem.ID")%>">
|
|
|
|
|
Hurrey,
Its working
Thanks
Rahul
rahul saini
|
|
|
|
|
Hi All,
How do I read the Inbox of Outlook.I am using ASP.NET 2.0(VB).Please help me in code as I did lot of research on internet, but I couldn't find any code for the same.
Thanks in advance...
|
|
|
|
|
varshavmane wrote: I did lot of research on internet, but I couldn't find any code for the same.
Try for accessing pop3 using ASP.NET
|
|
|
|
|
Hi Navaneeth,
Thanks for the reply.Would u please tell me what do I start with it.
Thanks.
|
|
|
|
|
I don't have much experience with implementing this. I tried SMTP and it was working. Some mail providers won't support pop3 for free. So I recommend for testing you can use Gmail which will support SMTP and POP. In code project i found one article for implementing pop3 for ASP.NET. Check out that
|
|
|
|
|
Would u please send me the link.Thanks
|
|
|
|
|
Navaneeth,
.NET 2.0 does not have Classes to check the Incoming Mails (POP3). We have to use sockets (Kinda TCP/IP, I don't know much about socket) to receive the mails.
|
|
|
|