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

February 7th, 2005, 03:37 AM
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

February 7th, 2005, 04:40 PM
|
Friend of Wrox
|
|
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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.
|

February 9th, 2005, 04:28 AM
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Below is the syntax to set the properties...
window.open("URL",null,"status=no,toolbar=no,menub ar=no,location=no");
|

February 9th, 2005, 05:00 AM
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

February 9th, 2005, 03:51 PM
|
Friend of Wrox
|
|
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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.
|

February 15th, 2005, 02:57 AM
|
Authorized User
|
|
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks Mehdi. It worked!
:D Cheers,
Spacy
|

March 3rd, 2005, 11:56 PM
|
Registered User
|
|
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

March 4th, 2005, 12:25 AM
|
Registered User
|
|
Join Date: Dec 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Medhi,
thanks anyway, igot it!
|

November 5th, 2007, 07:24 AM
|
Registered User
|
|
Join Date: Jul 2007
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

November 5th, 2007, 12:23 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
|
|
dear zawmn83:
in order to have server side validation, we have Validating contols in ToolBax
Always:),
Hovik Melkomian.
|
|
 |