problem in writing aspx code in aspx.cs

Posted by Rickeybglr under ASP.NET on 11/8/2011 | Points: 10 | Views : 1278 | Status : [Member] | Replies : 1
i have to write aspx code in aspx.cs (code behind code)

aspx code
<script type="text/javascript">
function open_win() {
var win = window.open('home.aspx')
win.document.write('<img src= "./Images/indicator.gif">'+'Loading....');
win.document.close();
win.document.location = home.aspx';

}
</script>
</head>

please advise on same.
thank you in advance




Responses

Posted by: RohiK on: 11/8/2011 [Member] Starter | Points: 25

Up
0
Down
hi,

what do you want to do exactly? if you want to execute this javascript code dynamically then you want to use something like this
Page.ClientScript.RegisterClientScriptBlock()


Happy Programming!!
Rohi

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

Login to post response