Click here to Skip to main content
15,895,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
JokeRe: fck editor Pin
Expert Coming10-Mar-09 21:51
Expert Coming10-Mar-09 21:51 
AnswerRe: fck editor Pin
SeMartens10-Mar-09 22:26
SeMartens10-Mar-09 22:26 
QuestionAltering Procedure? Pin
Karthick_gc10-Mar-09 20:49
Karthick_gc10-Mar-09 20:49 
AnswerRe: Altering Procedure? Pin
Jarek Kruza10-Mar-09 21:34
Jarek Kruza10-Mar-09 21:34 
GeneralRe: Altering Procedure? Pin
Rajeesh MP11-Mar-09 1:01
Rajeesh MP11-Mar-09 1:01 
Generallogin control Pin
Ramkumar_S10-Mar-09 20:45
Ramkumar_S10-Mar-09 20:45 
GeneralRe: login control Pin
Xmen Real 10-Mar-09 23:04
professional Xmen Real 10-Mar-09 23:04 
QuestionStored procedure? Pin
Karthick_gc10-Mar-09 20:37
Karthick_gc10-Mar-09 20:37 
Hi, this s my first project for database operations using procedures.
I created a sample table and executed successfully the procedure.

create procedure ins_sam
@roll varchar(10),@nam varchar(10)
as
insert into sample values(@roll,@nam)

In Dotnet, I wrote the coding as this.

try
{
con.Open();
com = new SqlCommand(ins_sam, con);
com.CommandType=CommandType.StoredProcedure;
com.Parameters.Add("@roll", TextBox1.Text);
com.Parameters.Add("@nam", TextBox2.Text);
com.ExecuteNonQuery();
Response.Write("added");
con.Close();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}

I got this error.
The name 'ins_sam' does not exist in the current context

Can anyone correct it?
AnswerRe: Stored procedure? Pin
Anurag Gandhi10-Mar-09 20:41
professionalAnurag Gandhi10-Mar-09 20:41 
GeneralRe: Stored procedure? Pin
Karthick_gc10-Mar-09 20:45
Karthick_gc10-Mar-09 20:45 
Questionhow to store data in sql server frm a excel sheet Pin
bhii10-Mar-09 19:34
bhii10-Mar-09 19:34 
AnswerRe: how to store data in sql server frm a excel sheet Pin
Christian Graus10-Mar-09 20:08
protectorChristian Graus10-Mar-09 20:08 
AnswerRe: how to store data in sql server frm a excel sheet Pin
kumar_k50812-Mar-09 0:55
kumar_k50812-Mar-09 0:55 
Questionmaster page in asp Pin
bhii10-Mar-09 19:30
bhii10-Mar-09 19:30 
AnswerRe: master page in asp Pin
Christian Graus10-Mar-09 20:06
protectorChristian Graus10-Mar-09 20:06 
QuestionLine 1: Incorrect syntax near ')'. Pin
montyhasan10-Mar-09 18:57
montyhasan10-Mar-09 18:57 
AnswerRe: Line 1: Incorrect syntax near ')'. Pin
Christian Graus10-Mar-09 20:07
protectorChristian Graus10-Mar-09 20:07 
Questioninvoke webservice with xmlhttprequest Pin
impeesa_0110-Mar-09 15:50
professionalimpeesa_0110-Mar-09 15:50 
AnswerRe: invoke webservice with xmlhttprequest Pin
Cybernate11-Mar-09 6:38
Cybernate11-Mar-09 6:38 
GeneralRe: invoke webservice with xmlhttprequest Pin
impeesa_0111-Mar-09 15:42
professionalimpeesa_0111-Mar-09 15:42 
QuestionCannot Use IIS Pin
MrColeyted10-Mar-09 14:40
MrColeyted10-Mar-09 14:40 
AnswerRe: Cannot Use IIS Pin
Yusuf10-Mar-09 15:23
Yusuf10-Mar-09 15:23 
GeneralRe: Cannot Use IIS [modified] Pin
MrColeyted10-Mar-09 15:32
MrColeyted10-Mar-09 15:32 
QuestionException handling with web services in ASP.NET 3.5 Pin
Member 391904910-Mar-09 14:14
Member 391904910-Mar-09 14:14 
QuestionUpdate Database(ACCESS) from ASP page Pin
daks90610-Mar-09 10:13
daks90610-Mar-09 10:13 

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.