P
Pushpadant
Hi,
I have a web apps wherein the registration.aspx has about 7 textbox
(general registration form with username, Fname, Lname, Password,
EmailAddress etc,
now i have to insert these values in the database after the user clicks
on submit.
OnSubmit : i have a user class
clsUser
{
private string Username;
private string Fname,Lname; //etc
public insert_user(string un,string Ln,....)
{
clsUser.Username = un;
......
objDataBase.insertuser(clsUser.Username.....)
}
In code behind i will create an object of clsUser and call the fuction
as
objclsUser.insert_user(textbox1.text, .......);
I dont feel this is the best method, can i use all the vars (username,
Lname....) as properties...in the class clsUser
in short how do i make both the classes lesser dependent on each
other.....
help appreciated....
thnx,
Pushpadant
I have a web apps wherein the registration.aspx has about 7 textbox
(general registration form with username, Fname, Lname, Password,
EmailAddress etc,
now i have to insert these values in the database after the user clicks
on submit.
OnSubmit : i have a user class
clsUser
{
private string Username;
private string Fname,Lname; //etc
public insert_user(string un,string Ln,....)
{
clsUser.Username = un;
......
objDataBase.insertuser(clsUser.Username.....)
}
In code behind i will create an object of clsUser and call the fuction
as
objclsUser.insert_user(textbox1.text, .......);
I dont feel this is the best method, can i use all the vars (username,
Lname....) as properties...in the class clsUser
in short how do i make both the classes lesser dependent on each
other.....
help appreciated....
thnx,
Pushpadant