string check=Request["u"];是什么意思 谢谢
来源:百度知道 编辑:UC知道 时间:2024/09/22 07:06:00
public partial class Addinfo : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button Button2;
protected void Page_Load(object sender, System.EventArgs e)
{
string check=Request["u"];
string house=Request["H"];
if(check=="0")
{
this.Label10.Text="添加房屋信息";
}
else if(check=="1")
{
this.housename.ReadOnly=true;
this.housename.BackColor=Color.Gainsboro;
this.housename.Text=house;
this.Label10.Text="修改房屋信息";谢谢
{
protected System.Web.UI.WebControls.Button Button2;
protected void Page_Load(object sender, System.EventArgs e)
{
string check=Request["u"];
string house=Request["H"];
if(check=="0")
{
this.Label10.Text="添加房屋信息";
}
else if(check=="1")
{
this.housename.ReadOnly=true;
this.housename.BackColor=Color.Gainsboro;
this.housename.Text=house;
this.Label10.Text="修改房屋信息";谢谢
string check=Request["u"];
表示获取前台页面提交的参数为u传过来的值。
以便进行后续处理。
补充举例:
表示这个url含有h和u两个参数
比如a.aspx?u=a&H=c
获取的结果就是a和c
String str=null;
string s=null与string s=""
String str1=new String("abc");
关于String str=new String("123");
String myaction = mapping.getParameter();
String a=new String();什么时候用到,一般不就是String a 吗?
中行笔试题:String s=new String("xyz")创建了几个String对象
请问java里string xxx和string xxx=new string的几个问题?
onClick="return check();"是什么意思??
String s="你好"和String str=new String("你好")有什么区别?