how to write javascript in .cs page on page load

Posted by Shanky11 under JavaScript on 5/3/2013 | Points: 10 | Views : 1305 | Status : [Member] | Replies : 5
ClientScript.RegisterStartupScript(Page.GetType(), "shankar", "<script>hiiiiiiiiii</script>");
i tried this
but nothng is happeng
how can i use like this
in coding page




Responses

Posted by: Learningtorise on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
Try:

ClientScript.RegisterStartupScript(Page.GetType(), "shankar", "<script>hiiiiiiiiii</script>", false );

http://hashtagakash.wordpress.com/

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shanky11 on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
how to brak a line in javascript
successfully sent!
we will get back to u shortly
like this i have to

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Learningtorise on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
http://www.google.co.in/#site=&source=hp&q=put+line+break+in+javascript+alert&oq=put+line+bre&gs_l=hp.3.2.0l2j0i22i30l8.3085.7638.0.9742.12.11.0.1.1.0.125.1080.7j4.11.0...0.0...1c.1.12.hp.HWGKXQYhNWg&bav=on.2,or.&bvm=bv.45960087,d.bmk&fp=e31f7fecf952f3b3&biw=1360&bih=647

http://hashtagakash.wordpress.com/

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Learningtorise on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
Use \n

Example :

alert("Hello\nHow are you?");


http://hashtagakash.wordpress.com/

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shanky11 on: 5/3/2013 [Member] Starter | Points: 25

Up
0
Down
not wrking

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response