Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Hello! i have a problem.. i try to open a modal window using window.showmodaldialog(URL, Argument, Features). I have retrieved the values i passed to the modal window through the Argument from window.dialogArguments in the html code(.aspx). the problem is I cannot pass this value to my codebehind(.aspx.vb) in pageload. how do i pass a value from my .aspx code to .aspx.vb code at page load? :o
Posted

Use the Arguument parameter to pass in a reference to your parent window. Use the URL paramter to pass in your values you want your code behind to process. like

 

"test.aspx?param1=value1"

 

Btw, showmodaldialog only works in IE

Posted
Use the Arguument parameter to pass in a reference to your parent window. Use the URL paramter to pass in your values you want your code behind to process. like

 

"test.aspx?param1=value1"

 

Btw, showmodaldialog only works in IE

 

Thanks kahlua001! but please check if my syntax is correct...

 

so im gonna call my modal using

 

dim myObject as string = "This is my Name"

response.write(<script>window.showModalDialog("Page.htm?input=myObject", null, "dialogHeight:450px; dialogwidth:680px;");</script>)

 

and in my modal page im going to get the value that i passed (which is the variable "myObject" in the parameter "input") by

 

Dim strQuery As String = String.Empty

If Not Request.QueryString("input") = Nothing Then

strQuery = Request.QueryString("input")

End If

 

it's not working... :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...