JavaScript can be used in ASP.net ?
-
i want to know can we impliment javascript code in ASP.net as we use in ASP if yes then please suggest me how to inmplment it. TX.:)
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
-
i want to know can we impliment javascript code in ASP.net as we use in ASP if yes then please suggest me how to inmplment it. TX.:)
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
-
Hi, Yes you can surely do that. You need to add a client side script block in .aspx page and then you can write a javascript code block (functions..etc) there. Hope this helps. Thanks. Sameer
please specify if there is any example code of that ;)
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
-
please specify if there is any example code of that ;)
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
-
thank for sample code happy coading ;)
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
-
thank for sample code happy coading ;)
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
You can also inject javascript from your server side code. For example:
private void Closer_Click(object sender, EventArgs e) { Page.RegisterStartupScript("closerScript", "<script language='JavaScript'>window.close();</script>" }
This code will close the current window when the Closer button is clicked.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before. -
You can also inject javascript from your server side code. For example:
private void Closer_Click(object sender, EventArgs e) { Page.RegisterStartupScript("closerScript", "<script language='JavaScript'>window.close();</script>" }
This code will close the current window when the Closer button is clicked.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.thanks for responce
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
-
i want to know can we impliment javascript code in ASP.net as we use in ASP if yes then please suggest me how to inmplment it. TX.:)
SP -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
You can also add script to the Attributes of a server control. For instance, cboSurveyType is a drop down billingMethod is the js I want to invoke via the onChange event... Important: place in a "if (!this.IsPostBack)" block PS: toBad you can't add it via prop page... very shortsighted of ms... protected void Page_Load(object sender, EventArgs e) { try { if (!this.IsPostBack) { cboSurveyType.Attributes.Add("onChange", "billingMethod();"); } } finally { } }