HighTechTalks DotNet Forums  

Problem: Opening a new browser window

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Problem: Opening a new browser window in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
nashak@hotmail.com
 
Posts: n/a

Default Problem: Opening a new browser window - 08-24-2006 , 08:55 PM






Hello,

I have a aspx page on which I have a button. In the click event method
in code-behind I do some processing and now need to open a new window
in another browser and pass a couple of parameters.


I included in my aspx file, the following js function:


function OpenChecklist(strCaseID)
{
var url = "/ABC/DEF.aspx?qsSubjectID=" + strSubjectID
var f =
"width=700,height=450,left=75,top=75,status=no,too lbar=no,menubar=no,locati*on=no";

window.open(url,"Subject Checklist",f)



}


My codebehind has the following
Public Sub cmdSubject_ServerClick(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles cmdSubject.ServerClick

--do some processing here
-- now would like a way to call the method (passing some parameters)
and opening a new browser window


End Sub


Now how do I call this function, not from the onclick() event but from
within the click event procedure?


One way I was told is using onload function. Would appreciate is
someone could provide some more details on how to do this?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.