求助——怎么把参数传到另外一个页面,而不打开另一个页面,在线等待!
解决方案 »
- 求救,关于asp.net上传大文件web.config设置问题
- AutoCompleteExtender控件使用问题,新手求教
- DropDownList 的问题
- FreeTextBox 如何将FreeTextBOX 里面的内容导出到word
- 急求正则表达式替换问题
- this.load 语句的VB.NET 版本
- 急救
- 准备做一个数据分析软件,想了三种候选实现方案,请大家品评
- 如何将字符串“20041223”格式化成“2004-12-23”?
- 高手看一下段代码
- ◆◆◆◆◆◆急!!!excel导入数据库时出错,做过的同志们帮忙看看是怎么回事啊,谢谢啦◆◆◆◆◆◆
- 我想写一服务器控件此继承自DropDownList,,,,怎么写啊
using System.Text;public void Send()
{
ASCIIEncoding encoding = new ASCIIEncoding();
string postData = "id=22";
byte[] data = encoding.GetBytes( postData ); HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create( "http://219.123.206.23/aspx.aspx" );
myRequest.Method = "POST";
myRequest.ContentType = "application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
Stream newStream = myRequest.GetRequestStream();
newStream.Write( data, 0, data.Length );
newStream.Close();
}
Fuction test(id)
var HttpReq = new ActiveXObject("MSXML2.XMLHTTP");
HttpReq.open("POST", "result.aspx?id="+ID, false);
</script>
---------
除了楼上的Response.Transfer方式之外
你还可以在页面中放一个iframe,命名用name=xxx方式,然后,用脚本如此:
onclick="document.all("xxx").src='xx.aspx';"
这样也可以