Author: ilovenagpur | Posted on: 3/23/2010 5:25:52 AM | Views : 265

Hello everyone,
I have created a user control in ASPX page and i am trying to set the clientId of the control from the server side code. 
But the clientId is not working, and when i view the source code its different. I think control is rendered after my code but where should i wrote the lines? i need to have write the code on Page_Load event.
below is the lines of code, which i have written in my application.

System.Text.StringBuilder jScript = new System.Text.StringBuilder(); jScript.Append("javascript:alert('om');"); jScript.Append("var oWindow = $find(\"" + radWinPreference.ClientID + "\"); "); jScript.Append("alert(oWindow);if(oWindow)"); jScript.Append("{"); jScript.Append("oWindow.setSize(600,442);"); jScript.Append("oWindow.show();&qu ...

Go to the complete details ...