ASP.NET中Request.QueryString的问题
来源:百度知道 编辑:UC知道 时间:2024/05/23 02:04:20
请问在ASP.NET+C#中,想读取上一页传过来的值(例如:test.aspx?ID=5),下面是SQL语句,5这个值想用上页传过来的test.aspx?ID=5,应该怎样写呢?
SELECT Category.ID FROM Temp WHERE (((Category.ID)=5));
SELECT Category.ID FROM Temp WHERE (((Category.ID)=5));
ASP.NET中的方法:
int intID = int.Parse(Request.QueryString["ID"]);//接收变量
StringBuilder commandText = new StringBuilder("SELECT Category.ID FROM Temp WHERE ((Category.ID)=@intID)");//sql语句写法
楼上那位是用asp写的。
dim id
id =clng(request.queryString("id"))
"SELECT Category.ID FROM Temp WHERE Category.ID = "& id
asp.net中request问题
ASP.NET中Request.QueryString的问题
asp.net 中 request 与 context.request有什么区别?
Asp.net中Request[],Request.Form.Get()的区别??
asp.net 关于 request
asp.net中this.request是指什么?和this.request.QueryString有什么区别?
ASP中Request问题
asp.net的Request.QueryString乱码
asp中request.querystring问题
ASP中request.QueryString问题