新人求助?关于aspx页面参数 怎么把浏览器上面的链接 http://123.1.1.1/test.aspx 页面变成有参数地址的http://123.1.1.1/test.aspx?n=1 这种 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 源页面代码: private void Button1_Click (object sender, System.EventArgs e) { string url; url="http://123.1.1.1/test.aspx?n=1"; Response.Redirect(url); } 目标页面代码: private void Page_Load (object sender, System.EventArgs e) { string aa=Request.QueryString["n"];//获取传过来的参数值 } web.config里边配置好httpmoduels节点,实现IHttpModuel..就可以实现伪URL了在映射里面 取消 aspx 映射----------------IIS-属性-配置-映射具体你搜下吧。 1.超链接:<a href="http://123.1.1.1/test.aspx">http://123.1.1.1/test.aspx</a>2.后台:Response.Redirect("http://123.1.1.1/test.aspx"); 3.1 JS:location.href="http://123.1.1.1/test.aspx";3.2 JS:location.replace("http://123.1.1.1/test.aspx");3.3 JS:window.open("http://123.1.1.1/test.aspx");... int num = 2; string Id = "2"; string editURL = "FrmContractUpdate.aspx?stdId=" + Id + "&num=" + num; Response.Redirect(editURL); 参数无需定义~ test.aspx?hahaman=test.aspx?Id=参数是自己随便写的,只不过在接收的页面 接收的时候 要跟你传的参数写成一致的~ 就是定义一个伪URL 该怎么设置?? url="http://123.1.1.1/test.aspx?n=1";是问“n”怎么来的吗?跟这个界面test.aspx里面的对应就行,随便你用啥 绑定数据库后的dropdownlist的switch无法正常使用 这段查询代码是哪有问题,怎么一个参数能查出结果,两个参数就查不出。各层代码都列出,急用,谢谢 asp.net中关于图片上传的问题 请教一下做过游戏网站帐号注册的朋友,关于注册帐号问题 菜鸟初写邮件发送。问题很多,请高手赐教!!! 急待解决!!!100分求 分页问题 谢谢各位,帮我写一个表达式! 指定的转换无效 如何打包发布网站 网页设计,像QQ音乐网站那样的效果 如何在textBox里加个小图片按钮一样的按钮呢???
----------------
IIS-属性-配置-映射具体你搜下吧。
2.后台:Response.Redirect("http://123.1.1.1/test.aspx");
3.1 JS:location.href="http://123.1.1.1/test.aspx";
3.2 JS:location.replace("http://123.1.1.1/test.aspx");
3.3 JS:window.open("http://123.1.1.1/test.aspx");
...
string Id = "2";
string editURL = "FrmContractUpdate.aspx?stdId=" + Id + "&num=" + num;
Response.Redirect(editURL);
跟这个界面test.aspx里面的对应就行,随便你用啥