ASP.NET跨页导航 [英] Asp.net crosspage navigation

查看:76
本文介绍了ASP.NET跨页导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个主页,其中有一个texbox和一个按钮,并设置了它的posbackurl属性otherpage"crosspage.aspx",应显示在mainpage.aspx文本框中输入的用户名.
crosspage.aspx页面加载我已经写了逻辑

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

if (Page.PreviousPage != null)
{
    Label1.Text = ((TextBox)Page.PreviousPage.FindControl("TextBox1")).Text;
}
else
{
    Label1.Text = "Stranger";
}


但是运行时它显示dopostback事件错误,请帮帮我
使用IE7的运行时错误:

Microsoft Jscript运行时错误:"weboform_Dopostback withoption is undefined


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

推荐答案

使用查询字符串将文本框文本发送到CROSSPAGE.ASPX,然后在您的页面上显示它……但是如果您想用这种方式,我认为您的错误是您的浏览器不允许的Java错误....
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 ....


这篇关于ASP.NET跨页导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆