Search for "Application BLOCK" in MSDN site or GOOGLE,
they have pretty good examples.
--- Eva Li <[EMAIL PROTECTED]> wrote:
> That right. Also, consider to put all the login
> check functions in
> a base class:
>
> public class BasePage : System.Web.UI.Page
> {
>
> }
>
> Have all the page derive from this one.
>
> You can either put your base class in another
> assembly or same
> assembly.
>
> Sure, put your connection string in web.config and
> encrypt it when
> necessary.
>
> Eva
>
> "Kumar, Karthick" <[EMAIL PROTECTED]>
> wrote:
> Have it as a separate class and namespace and the
> assembly can be like <yourproject>.UI.Utility
>
> Ht,
> Karthick
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Matthew
> Macdonald-Wallace
> Sent: Tuesday, July 26, 2005 11:21 AM
> To: [email protected]
> Subject: [AspNetAnyQuestionIsOk] Custom methods
>
>
> Hi all,
>
> I'm writing a webapp in C# and don't want to have to
> retype the same
> code all over again for each database
> connection/login form etc.
>
> What's the best way of including custom functions to
> do this?
>
> cheers,
>
> Matt
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> SPONSORED LINKS
> Programming languages C programming language
> Computer programming languages Java programming
> language C programming language History of computer
> programming language
>
> ---------------------------------
> YAHOO! GROUPS LINKS
>
>
> Visit your group "AspNetAnyQuestionIsOk" on the
> web.
>
> To unsubscribe from this group, send an email
> to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of Service.
>
>
> ---------------------------------
>
>
>
>
>
> [Non-text portions of this message have been
> removed]
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/