跪求 ASP页面与ASP.NET页面之间的传值,不能在URL里面显示出来。 现在有个ASP页面中的参数需要传到ASP.NET页面中,传递的参数不能写在URL后面用问号连接,还有别的什么好办法可以传过去,并在ASP.NET页面取得这个参数吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Session["id"],cookie啊,Application,这些都可以,挺多的 用Session或者Application传值,如果不行就先将值存入文件中,再在另一个页面中读出来。 actionRequest.Form接收cookie POSTSESSIONCOOKIETransferApplication都可以呀 常用的是session //设置HttpSession s=request.getSession();session.setMaxInactiveInterval(100000000);//设置生存期s.setAttribute("user",value); //设值//取值String user=(String)request.getSession().getAttribute("user"); // 取值,转换类型String user=(String)session.getAttribute("user"); 大哥们啊 session这个东西 能在ASP和ASP。NET两个页面中共存吗? <form action="Get.aspx" id="form1" method="post" ></form> 在网站根目录下建一个Common.xml文件:<?xml version="1.0" encoding="utf-8" ?><data>中国人</data>在asp中将值“中国人”存入data根节,然后在asp.net中读出:using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { XmlDocument doc = new XmlDocument(); doc.Load(Request.PhysicalApplicationPath + @"\Common.xml"); XmlElement root=doc.DocumentElement; Response.Write(root.InnerText); }}asp怎么存入xml文件你可以百度一下。 怎么判断用户访问网站的终端是什么 C#关于工作卡的打印 momonn来教我一个ppt转pdf 请大家建议一下asp.net的学习资料 50分求解关于不显示ie地址栏遇到的问题 请教NUint的用法 把sql语句写到xml里面有什么优势? WebForm TreeView的使用问题? 急死了,请帮我看看错在哪? 赞扬webdiyer,感谢webdiyer,佩服webdiyer!!! 服务安装和暂停 急^^^^ 关于火狐中播放视频时,Embed标签的疑问?
Request.Form接收
cookie
SESSION
COOKIE
Transfer
Application
都可以呀
//设置HttpSession s=request.getSession();
session.setMaxInactiveInterval(100000000);//设置生存期
s.setAttribute("user",value); //设值
//取值String user=(String)request.getSession().getAttribute("user"); // 取值,转换类型
String user=(String)session.getAttribute("user");
</form>
<data>
中国人
</data>在asp中将值“中国人”存入data根节,然后在asp.net中读出:using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
XmlDocument doc = new XmlDocument();
doc.Load(Request.PhysicalApplicationPath + @"\Common.xml");
XmlElement root=doc.DocumentElement;
Response.Write(root.InnerText);
}
}asp怎么存入xml文件你可以百度一下。