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]
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/