Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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

 
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.
 
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");

 
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?



 
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.
 
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

 
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.
 
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!

 
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.
 
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.




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.