Click here to Skip to main content
16,017,881 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have mainpage in which i take texbox and one button and set its posbackurl property otherpage "crosspage.aspx" which should show the name of the user enter in the mainpage.aspx textbox.
crosspage.aspx page load i have written logic
C#
if (Page.PreviousPage != null)
{
    Label1.Text = ((TextBox)Page.PreviousPage.FindControl("TextBox1")).Text;
}
else
{
    Label1.Text = "Stranger";
}

but run time it shows dopostback event error please help me out
Runtime Error using IE7:

Microsoft Jscript runtime error:"weboform_Dopostback withoption is undefined
Posted
Updated 4-Sep-12 20:37pm
v3
Comments
Sandeep Mewara 5-Sep-12 2:27am    
Can you share exact error?
deeptul 5-Sep-12 2:33am    
actually when i run using browser googlechrome it will generate any error but it will not even take me crosspage.aspx as its mentioned postbackurl="crosspage.aspx"

1 solution

use querystring to send textbox text to CROSSPAGE.ASPX then show it on your page ... but if you wana use this way i think your error is for java not allowed on your browser ....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900