Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 7th, 2005, 03:37 AM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default NavigateUrl and Target


I want to open a new window on the click of a hyperlink
control. So i set the NavigateUrl and Target properties.
But how do i change the display properties of the new
window? I dont want the toolbar, menubar, etc to be
displayed.

Please help.

Regards
Spacy

  #2 (permalink)  
Old February 7th, 2005, 04:40 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

you should use,
Code:
window.open("I forgot its parameters!")
check out this.

_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.
  #3 (permalink)  
Old February 9th, 2005, 04:28 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Below is the syntax to set the properties...

window.open("URL",null,"status=no,toolbar=no,menub ar=no,location=no");

  #4 (permalink)  
Old February 9th, 2005, 05:00 AM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Window.Open doesnt solve my purpose. Am using the
NavigateUrl and Target properties of the
Hyperlink control. for eg:

hyperlink1.NavigateUrl = "mypage.aspx"
hyperlink1.Target = "_new"

Problem is i dont want to display the toolbar,
menubar etc of the new window.
Any solutions?



  #5 (permalink)  
Old February 9th, 2005, 03:51 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

put this line in Page_Load,

HyperLink1.Attributes.Add("onclick","window.open
('URL',null,'status=no,toolbar=no,menubar=no,locat ion=no');return false;)";

(because it returns false setting server-side properties/methods/events has no effect).

_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.
  #6 (permalink)  
Old February 15th, 2005, 02:57 AM
Authorized User
 
Join Date: Jul 2004
Location: , , .
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thanks Mehdi. It worked!

:D Cheers,
Spacy

  #7 (permalink)  
Old March 3rd, 2005, 11:56 PM
Registered User
 
Join Date: Dec 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Mehdi,
I'm just born is asp.net
Can you let me know how to put it in page load with C#?
thanks
keps
Quote:
quote:Originally posted by mehdi62b
 put this line in Page_Load,

HyperLink1.Attributes.Add("onclick","window.open
('URL',null,'status=no,toolbar=no,menubar=no,locat ion=no');return false;)";

(because it returns false setting server-side properties/methods/events has no effect).

_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.
  #8 (permalink)  
Old March 4th, 2005, 12:25 AM
Registered User
 
Join Date: Dec 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Medhi,
thanks anyway, igot it!

  #9 (permalink)  
Old November 5th, 2007, 07:24 AM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How can I add server side validation before open new window?


Quote:
quote:Originally posted by mehdi62b
 put this line in Page_Load,

HyperLink1.Attributes.Add("onclick","window.open
('URL',null,'status=no,toolbar=no,menubar=no,locat ion=no');return false;)";

(because it returns false setting server-side properties/methods/events has no effect).

_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.
  #10 (permalink)  
Old November 5th, 2007, 12:23 PM
Friend of Wrox
Points: 3,558, Level: 25
Points: 3,558, Level: 25 Points: 3,558, Level: 25 Points: 3,558, Level: 25
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: California, USA
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

dear zawmn83:
in order to have server side validation, we have Validating contols in ToolBax

Always:),
Hovik Melkomian.
 


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Problem with NavigateUrl in TreeView kalchev ASP.NET 2.0 Basics 3 May 2nd, 2006 02:38 AM
Debug Target Missing CyberGeek VS.NET 2002/2003 1 February 23rd, 2006 12:47 PM
target="_top" crmpicco HTML Code Clinic 3 March 23rd, 2005 12:50 PM
buttonColumn and target=_blank collie VB.NET 2002/2003 Basics 2 March 15th, 2004 05:26 AM
Target for main frame? Snib Javascript How-To 6 December 13th, 2003 04:40 PM



All times are GMT -4. The time now is 10:42 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.