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 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 August 6th, 2006, 12:58 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default window.open()

In my current project I am using Login controls for the authentication.I am not using WAT.I want to make my whole application in full size(window or web form) mode after successfull login(using window.open()).I have give destination url for the Login control and also I have written a client side script to open my index.aspx page in full size after the successfull login,but I am getting 2 pages, 1) my destination page url(index.aspx with master pages and 2)the new window without master pages.I would like to know How can I achieve this???Please help me.....

  #2 (permalink)  
Old August 9th, 2006, 11:37 AM
Authorized User
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Fresno, California, USA.
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Having a hard time understanding what you are doing a little. I see you placed the url for your login control? is that a postbackurl or a response.redirect()? I see you used window.open() too. If you have the page redirecting or posting back to a different url, the main page will change. If your client script launches first, it will open a new window next to the old window that has not redirected. Like I said, don't really see what you are doing so it may help if you post some of the code.

  #3 (permalink)  
Old August 10th, 2006, 03:35 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply
In my login page, I am using Login control(ASP.NET 2.0 control) for the User authentication.In Login control's Authenticate event, I have written the code for user authenication.I have given the Destination page Url as 'index.aspx' for the Login control.Actually I want to make my complete application in windows full mode(size) once the user successfully signed in.In Login control's Authenticate event I have written code like
e.authenticated=true
After this I am calling my index.aspx page using window.open() method in C# (server side code).In my index.aspx page, I have put one menu control.Actually I am getting 2 index pages 1. the original one(destination page url of login control)with menu control and the second one in full size mode but without menu control.When I removed the destination page url of my Login control,I am getting an error.
What I want to do is that I want to get my index.aspx page in full mode(size) without any toolbars instead of giving the destination page url in Login control.
Thanks


  #4 (permalink)  
Old August 12th, 2006, 08:30 PM
Authorized User
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Fresno, California, USA.
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am stumped on how to do this as i can see hat is happening. The control needs a destination url for authenticated user. You could trying making an intermediate page with some javascript that opens your index.aspx in the size you want to and then closes itself. Then you could make your destination url that one. Unless someone has an idea on how to make a page set its own window size upon load. Not that deep in javascript yet.

  #5 (permalink)  
Old August 15th, 2006, 06:08 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I could solve this problem by giving the destination page url as some other test(eg:test.aspx) page instead of giving as index.aspx.After that, In the page load event of the test page(test.aspx), I wrote the code to open my index.aspx page in full screen mode.

  #6 (permalink)  
Old August 16th, 2006, 09:13 AM
Authorized User
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Fresno, California, USA.
Posts: 94
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That is the only way I can see it working. The reason why you were getting 2 pags before is because when authenticated, the destination url is brought up but of course with no window size settings. When authentication was confirmed, your java script was also being launched giving you 2 pages. If you want ot use the login control, you have the use the destination url which I can see gives you settings for setting the window's size so the only way is to feed it a intermediate page that will load the page you want in the size you want and then close itself. Other way is to not use the control and build a custom login method that will only run your javascript on if authenticated.

Quote:
quote:Originally posted by ckrajeshvarma
 I could solve this problem by giving the destination page url as some other test(eg:test.aspx) page instead of giving as index.aspx.After that, In the page load event of the test page(test.aspx), I wrote the code to open my index.aspx page in full screen mode.

 


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
Open New Window b_camp Classic ASP Basics 2 May 12th, 2005 01:19 AM
Open in new window sridevi Excel VBA 1 November 4th, 2004 06:49 AM



All times are GMT -4. The time now is 02:17 AM.


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