Passing data to another page without receive frm database
-
Can anyone tell me how to pass a data to another, Eg the textbox1 in page1.aspx data(such as hello) when i click on button save, the save button will redirect to page2.aspx and at the textbox2 at page2.aspx will show the data(such as hello) i'm key in previous page page1.aspx. can anyone help me plszzzzzz, did u all understand what i mean T_T , what function/technology i nid to use?
-
Can anyone tell me how to pass a data to another, Eg the textbox1 in page1.aspx data(such as hello) when i click on button save, the save button will redirect to page2.aspx and at the textbox2 at page2.aspx will show the data(such as hello) i'm key in previous page page1.aspx. can anyone help me plszzzzzz, did u all understand what i mean T_T , what function/technology i nid to use?
Hi, Take a look at Cross Page Posting, i've provided a link below :) MSDN: Cross Page Posting[^] Thanks,
Personal Blog: A Software Programmer Twitter: JammoD
-
Hi, Take a look at Cross Page Posting, i've provided a link below :) MSDN: Cross Page Posting[^] Thanks,
Personal Blog: A Software Programmer Twitter: JammoD
:) thank you , that is what i found ^_^ i dun't know what is this function ~
-
Hi, Take a look at Cross Page Posting, i've provided a link below :) MSDN: Cross Page Posting[^] Thanks,
Personal Blog: A Software Programmer Twitter: JammoD
JammoD87 after cross page at second page, i press the back button the data at first page nid to remain, how to do this ?
-
JammoD87 after cross page at second page, i press the back button the data at first page nid to remain, how to do this ?
-
In which case you will need to use either "Session" or "Cookies" to store the value from the text box and check the value on page load. Thanks
Personal Blog: A Software Programmer Twitter: JammoD
my client side on 1 page involve alot ajax function such as tab container and <70 filter textbox container i dun't know where the error occur, the code below i try on new page can work. The cross page postback can use with ajax exception and master page? Can teach me another method to get the ID on previous page ? can i use query string ? Thank page1.aspx
<asp:Button ID="Save" runat="server" class="styled-button-10"
PostBackUrl="~/test2.aspx" Text="Save" />page2.aspx
<script runat="server">
void Page\_Load(object sender, System.EventArgs e) { Label1.Text = ((TextBox)PreviousPage.FindControl("txtID")).Text; Response.Write("" + Label1.Text ); }
</script>
-
In which case you will need to use either "Session" or "Cookies" to store the value from the text box and check the value on page load. Thanks
Personal Blog: A Software Programmer Twitter: JammoD
JammoD thank ^^ can ady~ thx to teach me cross page :thumbsup:
page1.aspx
<asp:Button ID="Save" runat="server" class="styled-button-10"
PostBackUrl="~/test2.aspx" Text="Save" />page2.aspx
<script runat="server">void Page\_Load(object sender, System.EventArgs e) { Label1.Text = ((TextBox)PreviousPage.FindControl("txtID")).Text; Response.Write("" + Label1.Text ); }
</script>
-
JammoD thank ^^ can ady~ thx to teach me cross page :thumbsup:
page1.aspx
<asp:Button ID="Save" runat="server" class="styled-button-10"
PostBackUrl="~/test2.aspx" Text="Save" />page2.aspx
<script runat="server">void Page\_Load(object sender, System.EventArgs e) { Label1.Text = ((TextBox)PreviousPage.FindControl("txtID")).Text; Response.Write("" + Label1.Text ); }
</script>