Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
OBINNA_EKE
Posting Yak Master
234 Posts |
Posted - 2006-10-02 : 09:51:43
|
I have the below script which opens a new window with width of 200, but it is opening with width of 400 which i don't like, i have cleared my cache etc but it is still opening with 400 why ? private void DayPilotCalendar1_EventClick(string pk) { string script_id = "popup"; string myScript = buildScript(script_id, "hello.html"); Page.RegisterStartupScript(script_id, myScript); } public string buildScript(string id, string output_page) { string myScript = "\n"; myScript += "<script language='javascript' id='" + id + "'>\n"; myScript += "window.open('" + output_page + "',width=200,height=200,left=0,top=100,screenX=0,screenY=100);\n"; myScript += "</" + "script>\n"; return myScript; }If it is that easy, everybody will be doing it |
|
spirit1
Cybernetic Yak Master
11752 Posts |
|
|
|
|