Ask a Question related to ASP.NET General, Design and Development.
-
robertm #1
Button click on Web Dialog opens its copy in new window
I have an aspx page which I open using the following code fragment below.
The modal web dialog has 2 buttons and whenever I click any of them, a new
window
containing my web dialog form is opened prior to getting to OnClick event
logic
of the buttons. The buttons are part of a user control placed on the form.
How can I get rid of the new window being launched?
Private Sub cmdFacet_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdFacet.Click
Dim strScript As String
strScript = "<SCRIPT language='javascript'>" & vbCrLf
strScript += "window.showModalDialog
('frmFacet.aspx',window,'center=yes;dialogHeight=1 80px;dialogWidth=400px;hel
p=no;status=no;resizable=no');" & vbCrLf
strScript += "</SCRIPT>"
Page.RegisterStartupScript("frmFacetOpen", strScript)
End Sub
robertm Guest
-
Click on sort link on a datagrid opens new window
I have a modal dialog displaying a datagrid control. Click on the column header to sort the datagrid opens a new window with the following in the... -
Open window on button click
Hi there, in a form, here's what I want to do : <input type=button onclick= (???) is it possible to open a pop-up window with a specified... -
In web browser to view pdf, click link and it opens in same window
Customers download pdf from a server into a web browser with multiply links in pdf. When you click the links I want it open in a new window so the... -
want to open a new window on button click!-jscript or javasript
Hi all... I am able to select a student's story and open it in a word doc. the teacher then corrects the story, highlight in colors the comments,... -
Close a window after button click
The user clicks a buuton and the server does some processing. If successful I want to close the window. Any suggestions? Steve -
Vidar Petursson #2
Re: Button click on Web Dialog opens its copy in new window
Hi
Depending on what you are doing...
<base target="_self">
Or place a iframe in the dialog and host the page there
--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"robertm" <robert.must@illustrateinc.com> wrote in message
news:%23t0E3ACYDHA.2204@TK2MSFTNGP12.phx.gbl...('frmFacet.aspx',window,'center=yes;dialogHeight=1 80px;dialogWidth=400px;hel> I have an aspx page which I open using the following code fragment below.
> The modal web dialog has 2 buttons and whenever I click any of them, a new
> window
> containing my web dialog form is opened prior to getting to OnClick event
> logic
> of the buttons. The buttons are part of a user control placed on the form.
>
> How can I get rid of the new window being launched?
>
> Private Sub cmdFacet_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles cmdFacet.Click
>
> Dim strScript As String
>
> strScript = "<SCRIPT language='javascript'>" & vbCrLf
>
> strScript += "window.showModalDialog
>> p=no;status=no;resizable=no');" & vbCrLf
>
> strScript += "</SCRIPT>"
>
> Page.RegisterStartupScript("frmFacetOpen", strScript)
>
> End Sub
>
>
Vidar Petursson Guest



Reply With Quote

