Ask a Question related to ASP.NET General, Design and Development.
-
Khutso #1
Re: Popup Modal Window
try this ...
private void popup(string param1, string param2)
{
string sWindow = "mywindow";
string jscript;
jscript = "<script language='JavaScript'>mywindow =
window.open('somepage.aspx?parameter1=" + param1 +
"¶meter2=" + param2 + "','" + sWindow +
"','height=420,width=460,toolbars=no,resizable=no, scrollbars=yes')</script>"
;
RegisterClientScriptBlock("mywindow", jscript);
}
.... The code within this function can be used even within an even procedure
like OnClick ...
Hope it helps.
"Kenneth" <kenneth.philp@chello.se> wrote in message
news:057e01c33ee4$809d1670$a501280a@phx.gbl...> Hi,
>
> I'm writing an asp.net application, but what I can't
> figure out is how to implement a popup modal window with
> parameters. I've done this a dozen times in standard asp,
> but in asp.net I can't figure it out.
>
> Let's say I have a customer grid and I want to edit one
> record in a popup modal window and I want all fields to
> follow to the popup window. How is this accomplished?
>
> Any code?
>
> TIA
>
> /Kenneth
Khutso Guest
-
Parent window for modal dialog
What is the best way to get a parent window for a modal dialog? Currently, I am using the following code: HWND hParent =... -
How to get flex popup modal dialog to fade entirebrowser window?
I have a flex app embedded in an html page and within the app I have a need to pop-up some content, in a flex application component. I need the... -
Modal Window in Safari 1.2 \1.3
Hi All, The 'Modal' window in my web applications does not work in Safari. Is there any way to make this function work in Safari ? or can any one... -
Modal window
I have a Flash form (form A) with lots of buttons and other components such as comboboxes on it. Another Flash form (form B) can be opened from the... -
Modal Dialog Popup from WebControl - What is wrong with this...
http://www.aspfaq.com/show.asp?id=2257 "Jim Mitchell" <jim_mitchell@mindspring.com> wrote in message... -
Kenneth #2
Re: Popup Modal Window
Thanks,
Oh, I forgot, I'm using VB.NET, not C#.
Have some code for that?
/Kenneth
rs=yes')</script>">-----Original Message-----
>try this ...
>
>private void popup(string param1, string param2)
>{
>
> string sWindow = "mywindow";
>
> string jscript;
>
> jscript = "<script language='JavaScript'>mywindow =
>window.open('somepage.aspx?parameter1=" + param1 +
>
> "¶meter2=" + param2 + "','" + sWindow +
>"','height=420,width=460,toolbars=no,resizable=no ,scrollbawithin an even procedure>;
>
> RegisterClientScriptBlock("mywindow", jscript);
>
>}
>
>.... The code within this function can be used even>like OnClick ...
>
>Hope it helps.
>
>Kenneth Guest
-



Reply With Quote

