Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 August 7th, 2011, 03:19 AM
Authorized User
Points: 147, Level: 2
Points: 147, Level: 2 Points: 147, Level: 2 Points: 147, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2011
Posts: 32
Thanks: 2
Thanked 0 Times in 0 Posts
Default How to include an ASP.NET page in many other ASP.NET pages to avoid to rewriting code

I have some questions:
  1. How to include an ASP.NET page in many other ASP.NET pages to avoid to rewrite the code
  2. How can we programmatically verify whether the UserName and Password is Correct
  3. How to format a Telephone number in the xxx-xxx-xxxx format
  #2 (permalink)  
Old August 7th, 2011, 01:34 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Can you post questions that are not directly related in a more general ASP.NET forum? You find the complete list here: http://p2p.wrox.com/asp-net-4-539/

That said:
  1. How to include an ASP.NET page in many other ASP.NET pages to avoid to rewrite the code
Includes are no longer used in ASP.NET. For presentation related stuff you typically use Master Pages, User Controls and Themes. For code related ,aterial, you can use class files located in App_Code (Web Site Projects) or anywhere else (for Web Application projects)
  1. How can we programmatically verify whether the UserName and Password is Correct
It depends on where they are stored. If you're using the Membership features, you can use methods on the Membership class. For a custom data store you need to use custom code.
  1. How to format a Telephone number in the xxx-xxx-xxxx format
You can use JavaScript and regular expressions for this. Google for it and you'll find many ready-made solutions. I think the ASP.NET AJAX Control Toolkit has a control for this.

Cheers.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!


Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Rewriting in asp.net g6unit ASP.NET 3.5 Professionals 2 October 18th, 2010 05:21 AM
ASP.Net Membership, URL-Rewriting, IIS 7 on hostin Iyad K ASP.NET 2.0 Professional 0 September 12th, 2008 12:08 AM
Loading HTML pages into an ASP.NET page Dsypher ASP.NET 2.0 Basics 4 May 17th, 2007 07:21 AM
ASP.net many pages on one page? Lofa ASP.NET 1.0 and 1.1 Basics 5 February 13th, 2006 12:59 PM
Shall i use ASP page and ASPX pages in in .net prj bvrao VS.NET 2002/2003 4 January 5th, 2004 04:39 AM





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