Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a new window

Status
Not open for further replies.

JDAEMS

Programmer
Aug 27, 2003
84
BE
I have a textbox on my main application where the users can type in a product type.

But zhen they double-click on this text-box, I want a new window to open where they can search for a product type using various options. And then they have to select a product type there and push an ok button. The chosen product type will appear in the text box.

Now this is what I want, but I do not know how to accomplish several of these things in ASP.net.

For example: Is it possible to open up a new window within the code behind file? I've done it before in JavaScript, but now I wnat to do it in my code behind file using VB code.

thanks
 
You can't do it in your code-behind since this is ran on the server. You'll have to use javascript to open one on the client's machine (although this javascript can be registered from the code behind by using the RegisterStartUpScript or RegisterClientScriptBlock methods).


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
Thank you for your reply. But I do not think that my version of vsual studio exactly knows registerstartupscript. I'm using Visual Studio 2003. And I have done the follwoing imports:

Imports System.Web.UI.WebControls.WebControl
Imports System.Data
Imports System.Web
Imports System.Web.UI

But still, when I type in Page and I type in the dot, I get a list, but the registerstartupscript cannot be found in that list.

 
It is part of Page but you can't see it as you have advanced methods hidden in Intellisense. Type the full word in and you'll see that it recognises it.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top