Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 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
Reply
 
Thread Tools Display Modes
  #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
Reply With Quote
  #2 (permalink)  
Old August 7th, 2011, 01:34 PM
Imar's Avatar
Wrox Author
Points: 71,662, Level: 100
Points: 71,662, Level: 100 Points: 71,662, Level: 100 Points: 71,662, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,015
Thanks: 79
Thanked 1,578 Times in 1,555 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!
Reply With Quote
Reply


Thread Tools
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
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 11:59 AM
Shall i use ASP page and ASPX pages in in .net prj bvrao VS.NET 2002/2003 4 January 5th, 2004 03:39 AM



All times are GMT -4. The time now is 08:34 PM.


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