Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to give automatic reminder to particular person through mail Pin
developerit8-Mar-10 18:40
developerit8-Mar-10 18:40 
AnswerRe: how to give automatic reminder to particular person through mail Pin
Brij8-Mar-10 18:45
mentorBrij8-Mar-10 18:45 
GeneralRe: how to give automatic reminder to particular person through mail Pin
Amit Patel19858-Mar-10 19:39
Amit Patel19858-Mar-10 19:39 
GeneralRe: how to give automatic reminder to particular person through mail Pin
Sandeep Mewara8-Mar-10 19:45
mveSandeep Mewara8-Mar-10 19:45 
GeneralRe: how to give automatic reminder to particular person through mail Pin
Brij8-Mar-10 20:04
mentorBrij8-Mar-10 20:04 
GeneralRe: how to give automatic reminder to particular person through mail Pin
developerit9-Mar-10 23:58
developerit9-Mar-10 23:58 
GeneralRe: how to give automatic reminder to particular person through mail Pin
developerit9-Mar-10 23:55
developerit9-Mar-10 23:55 
QuestionProblem with Multiple Insert in sql server from c# code. Pin
Johndas8-Mar-10 17:43
Johndas8-Mar-10 17:43 
Hi all,
can you please guide me, how to insert multiple insert using this code.

SqlCommand cmd = new SqlCommand();
cmd.Connection = conn;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "usp_Information";


for (Int64 acct = 1000000000000001; acct <= 1000000000024000; acct++)
{
String sAcct = Convert.ToString(acct);
SqlParameter p1 = new SqlParameter();
p1.ParameterName = "@ShawNumber";
p1.SqlDbType = SqlDbType.VarChar;
p1.Direction = ParameterDirection.Input;
p1.Value = sAcct;


SqlParameter p2 = new SqlParameter();
p2.ParameterName = "@UserId";
p2.SqlDbType = SqlDbType.Int;
p2.Direction = ParameterDirection.Input;
p2.Value = 88578539;

SqlParameter p3 = new SqlParameter();
p3.ParameterName = "@ParentShawNumber";
p3.SqlDbType = SqlDbType.VarChar;
p3.Direction = ParameterDirection.Input;
p3.Value = "22";

cmd.Parameters.Add(p1);
cmd.Parameters.Add(p2);
cmd.Parameters.Add(p3);
cmd.ExecuteNonQuery();


}


Here cmd.ExecuteNonQuery(), it is use for single insert statment, i want to insert multiple records at a time, please guide me.

Thanks in Advance.
JohnDas

AnswerRe: Problem with Multiple Insert in sql server from c# code. Pin
Sandeep Mewara8-Mar-10 19:49
mveSandeep Mewara8-Mar-10 19:49 
Questionhi,how to save user changes header colors and font size in web application? Pin
pramodgorityala8-Mar-10 7:55
pramodgorityala8-Mar-10 7:55 
AnswerRe: hi,how to save user changes header colors and font size in web application? Pin
#realJSOP8-Mar-10 7:56
mve#realJSOP8-Mar-10 7:56 
AnswerRe: hi,how to save user changes header colors and font size in web application? Pin
Sandeep Mewara8-Mar-10 9:43
mveSandeep Mewara8-Mar-10 9:43 
QuestionHow to get the index of the gridview with click of asp button Pin
laziale8-Mar-10 4:57
laziale8-Mar-10 4:57 
AnswerRe: How to get the index of the gridview with click of asp button Pin
Brij8-Mar-10 5:24
mentorBrij8-Mar-10 5:24 
GeneralRe: How to get the index of the gridview with click of asp button Pin
laziale8-Mar-10 5:39
laziale8-Mar-10 5:39 
GeneralRe: How to get the index of the gridview with click of asp button Pin
Brij8-Mar-10 7:49
mentorBrij8-Mar-10 7:49 
AnswerRe: How to get the index of the gridview with click of asp button Pin
Abhijit Jana8-Mar-10 5:38
professionalAbhijit Jana8-Mar-10 5:38 
GeneralRe: How to get the index of the gridview with click of asp button Pin
laziale8-Mar-10 5:48
laziale8-Mar-10 5:48 
AnswerRe: How to get the index of the gridview with click of asp button Pin
jayantbramhankar9-Mar-10 9:51
jayantbramhankar9-Mar-10 9:51 
QuestionSpecial character Diplay problem Pin
Syed Shahid Hussain8-Mar-10 4:31
Syed Shahid Hussain8-Mar-10 4:31 
AnswerRe: Special character Diplay problem Pin
Brij8-Mar-10 5:35
mentorBrij8-Mar-10 5:35 
GeneralRe: Special character Diplay problem Pin
Syed Shahid Hussain9-Mar-10 0:47
Syed Shahid Hussain9-Mar-10 0:47 
AnswerRe: Special character Diplay problem Pin
Sandeep Mewara8-Mar-10 9:48
mveSandeep Mewara8-Mar-10 9:48 
GeneralRe: Special character Diplay problem Pin
Syed Shahid Hussain9-Mar-10 0:46
Syed Shahid Hussain9-Mar-10 0:46 
QuestionCustom Events on Custom Controls and fire it Pin
Julien Lacoste8-Mar-10 4:04
Julien Lacoste8-Mar-10 4:04 

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.