string Script=@”function ShowName() { var txt=document.getElementById(‘txtName’); alert(‘Your name is: ‘+txt.value); }”;
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), “ShowName”, Script, true);
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), “ShowName”, Script, true);
0 comments:
Post a Comment