ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 20th, 2007, 08:28 AM
bhssc bhssc is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 2 bhssc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 16 sec
Reputation Power: 0
Open New Web Page from the .VB Code File

Although ASP.NET is new to me, I still feel foolish asking such a simple question about a common task required for millions of web sites. I've spent hours seeking the answer, but without success, probably because it's so common and simple that everyone is expected to know it.

An InformationRequired page has an 'Agree to Terms & Conditions' checkbox. If it's unchecked when the Submit button is clicked, a message box is displayed; If it's checked when the Submit button is clicked, a Content page is displayed in a new window. I can do everything except the last bit. Here's the code:
----------------------------------------------------------------------
Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click

'Has the visitor agreed to the T&C?
If chkTC.Checked Then
'Open new browser window for Content.aspx

CAN ANYONE PROVIDE THE CODE TO GO HERE, PLEASE?

Else
MsgBox("You must agree to the TERMS & CONDITIONS by selecting the box before proceeding.")
End If

End Sub

End Class
----------------------------------------------------------------------

Reply With Quote
  #2  
Old February 11th, 2009, 01:00 PM
mimaldonado mimaldonado is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 1 mimaldonado User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 29 sec
Reputation Power: 0
try this

Response.Redirect(String.Format("~/PageName.aspx?"))

Reply With Quote
  #3  
Old February 12th, 2009, 01:59 AM
bhssc bhssc is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 2 bhssc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 16 sec
Reputation Power: 0
Thank you, mimaldonado. I shall try that.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Open New Web Page from the .VB Code File


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap