Click here to Skip to main content
15,887,683 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Changing Table's Image [modified] Pin
Not Active1-Aug-11 3:18
mentorNot Active1-Aug-11 3:18 
GeneralRe: Changing Table's Image Pin
Eddie19871-Aug-11 3:23
Eddie19871-Aug-11 3:23 
Questionremoving aspx extension Pin
benams31-Jul-11 22:44
benams31-Jul-11 22:44 
Questiononfocus postback problem Pin
minckle31-Jul-11 12:06
minckle31-Jul-11 12:06 
AnswerRe: onfocus postback problem Pin
Not Active31-Jul-11 13:24
mentorNot Active31-Jul-11 13:24 
GeneralRe: onfocus postback problem [modified] Pin
minckle1-Aug-11 13:30
minckle1-Aug-11 13:30 
GeneralRe: onfocus postback problem Pin
Not Active1-Aug-11 14:24
mentorNot Active1-Aug-11 14:24 
Questionhow to get previous page and details remain Pin
Cyberoxy31-Jul-11 9:50
Cyberoxy31-Jul-11 9:50 
XML
Hey!
I know it is a common question but I am too close and cant find solution. I have two Pages between A.aspx and B.aspx.

When you fill your name and surname on the textbox controls and then click on send button, redicted to B Page to say thank you for ordering but if you want to fill the form again for another ordering, click on back button from B Page to go back to previous page (A Page) and details (your name and surname) should remain on textbox controls. So you dont need to write your name and surname again. How to do this?


A.aspx:
<label>Name:</label> <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
<label>Surname:</label> <asp:TextBox ID="txtSurname" runat="server"></asp:TextBox>
 <asp:Button ID="Send" runat="server" Text="Send Email" onclick="Send_Click" />
A.aspx.cs (C#):
  protected void Send_Click(object sender, EventArgs e)
{
Response.Redirect("B.aspx");
}

B.aspx:
<p>Thank you for ordering. We will contact you very soon.</p>
<p>Do you want to order item again? Go back to A Page  <asp:Button ID="btnBack" runat="server" Text="BACK" onclick="Send_Click" />
</div>

B.aspx.cs (C#):
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write(Request.UrlReferrer.ToString());
    }
Problem: when i clicked on back button, redicted to A Page and all the details (name and surname) are gone from textbox control. I want these details to remain, dont need to write it again.
Your help will be highly appreciated. Thanks for your time :-)

AnswerRe: how to get previous page and details remain Pin
Not Active31-Jul-11 13:22
mentorNot Active31-Jul-11 13:22 
AnswerRe: how to get previous page and details remain Pin
Bernhard Hiller31-Jul-11 19:45
Bernhard Hiller31-Jul-11 19:45 
QuestionHow to replace image onmouseover Pin
Eddie198730-Jul-11 9:12
Eddie198730-Jul-11 9:12 
AnswerRe: How to replace image onmouseover Pin
Shahriar Iqbal Chowdhury/Galib31-Jul-11 4:16
professionalShahriar Iqbal Chowdhury/Galib31-Jul-11 4:16 
GeneralRe: How to replace image onmouseover Pin
Eddie19871-Aug-11 1:09
Eddie19871-Aug-11 1:09 
GeneralRe: How to replace image onmouseover Pin
Not Active1-Aug-11 2:08
mentorNot Active1-Aug-11 2:08 
QuestionHave Session in Global.asax File Pin
Member 322226430-Jul-11 6:29
Member 322226430-Jul-11 6:29 
AnswerRe: Have Session in Global.asax File Pin
Keith Barrow30-Jul-11 8:23
professionalKeith Barrow30-Jul-11 8:23 
Questionneed to display data on email Pin
CyberHeart 230-Jul-11 6:20
CyberHeart 230-Jul-11 6:20 
AnswerRe: need to display data on email Pin
Not Active30-Jul-11 13:01
mentorNot Active30-Jul-11 13:01 
QuestionRender ASP.Net code at run time Pin
Dilan200630-Jul-11 3:06
Dilan200630-Jul-11 3:06 
AnswerRe: Render ASP.Net code at run time Pin
Ali Al Omairi(Abu AlHassan)30-Jul-11 7:05
professionalAli Al Omairi(Abu AlHassan)30-Jul-11 7:05 
AnswerRe: Render ASP.Net code at run time Pin
Dilan200630-Jul-11 15:54
Dilan200630-Jul-11 15:54 
GeneralRe: Render ASP.Net code at run time Pin
Dilan200631-Jul-11 5:13
Dilan200631-Jul-11 5:13 
GeneralRe: Render ASP.Net code at run time Pin
Ali Al Omairi(Abu AlHassan)4-Aug-11 6:27
professionalAli Al Omairi(Abu AlHassan)4-Aug-11 6:27 
QuestionUnexpected function of validation controls and tab panel [modified] Pin
Dominick Marciano29-Jul-11 9:05
professionalDominick Marciano29-Jul-11 9:05 
Questiongoogle maps api Pin
loveleen9028-Jul-11 20:11
loveleen9028-Jul-11 20:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.