Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking 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 Basics 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
  #1 (permalink)  
Old June 2nd, 2008, 04:48 PM
Friend of Wrox
 
Join Date: May 2005
Location: , , Norway.
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default The Button_Click event

Hei!

protected void Button_Click(object sender, System.EventArgs e)

{
  How do I redirect to another page? What will the procedure be?
}


And how do I decide or control which page to be the next after use of the Log-In-control (And the Web Site Administration Tool?

And why can't I resize or move a ContentPlaceHolder?

Mvh
grstad
__________________
Internet has become favorable with that tool...thank you Tim Berners-Lee!
  #2 (permalink)  
Old June 2nd, 2008, 08:40 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The first question is extremely basic and a very simple google query such as: ASP.NET - How do I redirect to another page? would have garnered you the information you are looking for, so go and try that.

The second question, I believe, is related to FormsAuthentication. After you have validated the users credentials you can use this method:

FormsAuthentication.RedirectFromLoginPage(<usernam e>, <create persistant cookie: true|false>);

I am not sure what you are asking about for the Web Site Admin tool.

You CAN move and resize the ContentPlaceHolders as long as you are trying to do it from within your MasterPage. If you could move and resize Placeholders on child pages it would defeat the purpose of having a MasterPage in the first place.

hth.
-Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
  #3 (permalink)  
Old June 4th, 2008, 04:52 AM
Friend of Wrox
 
Join Date: May 2005
Location: , , Norway.
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...ok, my questions are basic. But to what extent can VBScript go along with ASP.NET with C#? I did not know it did at all.

On the other hand; basic questions does often appeal to a wide range of the readers. Answers to these basic questions also bring about answers related new and other topics. Perhaps.

Thank you for the answers.

Mvh
grstad :)
  #4 (permalink)  
Old June 4th, 2008, 08:56 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

VBScript is not part of .NET. VB.NET is. VB.NET and C# are two languages designed around the Common Language Specification (CLS) that result in intermediate code in MSIL ([M]icro[s]oft [I]ntermediate [L]anguage) that is executable in the Common Language Runtime (CLR). VBScript requires the VBScript processing engine and is what is used primarily with Classic ASP.

-Peter
compiledthoughts.com
  #5 (permalink)  
Old June 4th, 2008, 09:00 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Basic questions do appeal to a wide range of readers, you are correct, however when you post such a basic question it sends the message that you are possibly lazy and not willing to do research on your own and simply want "the answer". Now I don't mean to say that you are lazy, I don't personally know you after all, but the way that you phrased your question gave me the impression that you did no research on your own to first come to some sort of answer or conclusion.

To answer your question about VBScript, you could incorporate VBScript into your applications in much the same way that you incorporate JavaScript: as a client side scripting language. It can not be incorporated directly into your class files to provide any server side functionality however.

hth.
Doug

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
  #6 (permalink)  
Old June 4th, 2008, 09:08 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

To add a bit to Doug's comment:
Quote:
quote:Originally posted by dparsons
 ...you could incorporate VBScript into your applications in much the same way that you incorporate JavaScript: as a client side scripting language.

However, this is limited to Internet Explorer as a client platform. Other browsers won't run client-side VBScript. JavaScript is the de facto standard.

-Peter
compiledthoughts.com


Similar Threads
Thread Thread Starter Forum Replies Last Post
Event - Sender & Event args dash dev C# 2005 9 December 9th, 2007 07:24 AM
first event bostek Excel VBA 2 September 7th, 2006 02:13 AM
What Event Exactly? Macsood ASP.NET 1.0 and 1.1 Basics 6 October 26th, 2005 09:24 AM
About Button event and Keydown event zhangxujun1981 XSLT 1 March 6th, 2004 04:59 AM
how to override an event with an event? blah VB.NET 2002/2003 Basics 5 November 13th, 2003 03:06 PM





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