Click here to Skip to main content
15,914,419 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to add a web reference by code ? Pin
MiDo_RoMa21-May-09 19:27
MiDo_RoMa21-May-09 19:27 
Questionconfusion about database connection Pin
netJP12L21-May-09 10:22
netJP12L21-May-09 10:22 
AnswerRe: confusion about database connection Pin
Manas Bhardwaj21-May-09 11:03
professionalManas Bhardwaj21-May-09 11:03 
GeneralRe: confusion about database connection Pin
netJP12L21-May-09 11:14
netJP12L21-May-09 11:14 
GeneralRe: confusion about database connection Pin
Manas Bhardwaj21-May-09 11:19
professionalManas Bhardwaj21-May-09 11:19 
NewsGet Started with ASP.NET or add to your ASP or PHP skills with free ASP.NET Online Class Pin
brucedkyle21-May-09 8:38
brucedkyle21-May-09 8:38 
QuestionLinq Queries Pin
hahii21-May-09 8:22
hahii21-May-09 8:22 
AnswerRe: Linq Queries Pin
padmanabhan N21-May-09 18:24
padmanabhan N21-May-09 18:24 
//you have to create a DataClasses1.dbml and drag and drop ur tables and proceed

//these are methods and you have to pass the values.
public static void insert(int id, string name, string address, string department, string gender, int phone)
{
// DataClasses1.dbml name
DataClasses1DataContext da = new DataClasses1DataContext();
//table name
linq_padhu_emp data = new linq_padhu_emp
{
id = id,
name = name,
address = address,
department = department,
gender = gender,
phone = phone
};
da.linq_padhu_emps.InsertOnSubmit(data);
da.SubmitChanges();
}

public static void update(int id, string name, string address, string department, string gender, int phone)
{
DataClasses1DataContext up = new DataClasses1DataContext();
linq_padhu_emp updating = up.linq_padhu_emps.First(P => P.id == id);
updating.name = name;
updating.address = address;
updating.department = department;
updating.gender = gender;
updating.phone = phone;
up.SubmitChanges();
}

public static void delete(int id)
{
DataClasses1DataContext del = new DataClasses1DataContext();
linq_padhu_emp deleting = del.linq_padhu_emps.First(P => P.id == id);
del.linq_padhu_emps.DeleteOnSubmit(deleting);
del.SubmitChanges();
}

Padmanabhan

QuestionPlease Help Me soon... Pin
mohanbalal21-May-09 7:56
mohanbalal21-May-09 7:56 
AnswerRe: Please Help Me soon... Pin
ToddHileHoffer21-May-09 8:01
ToddHileHoffer21-May-09 8:01 
GeneralRe: Please Help Me soon... Pin
specialdreamsin21-May-09 20:03
specialdreamsin21-May-09 20:03 
GeneralRe: Please Help Me soon... Pin
ToddHileHoffer22-May-09 2:25
ToddHileHoffer22-May-09 2:25 
QuestionCrystal Report Parameter and ASP.net problem Pin
Ahmad Safwat21-May-09 5:52
Ahmad Safwat21-May-09 5:52 
AnswerCrystal Report Parameter and ASP.net problem Pin
Ahmad Safwat24-May-09 1:28
Ahmad Safwat24-May-09 1:28 
QuestionAutoPostback for the Textbox in the userControl Pin
Vimalsoft(Pty) Ltd21-May-09 3:52
professionalVimalsoft(Pty) Ltd21-May-09 3:52 
AnswerRe: AutoPostback for the Textbox in the userControl Pin
Yusuf21-May-09 4:39
Yusuf21-May-09 4:39 
GeneralRe: AutoPostback for the Textbox in the userControl Pin
Vimalsoft(Pty) Ltd21-May-09 4:47
professionalVimalsoft(Pty) Ltd21-May-09 4:47 
GeneralRe: AutoPostback for the Textbox in the userControl Pin
Paddy Boyd21-May-09 5:19
Paddy Boyd21-May-09 5:19 
GeneralRe: AutoPostback for the Textbox in the userControl Pin
Ibrahim Bello21-May-09 6:24
Ibrahim Bello21-May-09 6:24 
Questionneed help for private chat Pin
sasib21-May-09 3:45
sasib21-May-09 3:45 
JokeRe: need help for private chat Pin
AlexeiXX321-May-09 7:24
AlexeiXX321-May-09 7:24 
QuestionError: 'Page_Validators' is undefined Pin
samerh21-May-09 2:19
samerh21-May-09 2:19 
AnswerRe: Error: 'Page_Validators' is undefined Pin
Yusuf21-May-09 4:41
Yusuf21-May-09 4:41 
GeneralRe: Error: 'Page_Validators' is undefined Pin
samerh21-May-09 19:20
samerh21-May-09 19:20 
AnswerRe: Error: 'Page_Validators' is undefined Pin
Tech Code Freak25-Oct-11 1:21
Tech Code Freak25-Oct-11 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.