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

ASP.NET

 
QuestionProblem in passing value to popup window Pin
nagendrathecoder1-Sep-09 22:43
nagendrathecoder1-Sep-09 22:43 
AnswerRe: Problem in passing value to popup window Pin
Not Active1-Sep-09 23:34
mentorNot Active1-Sep-09 23:34 
GeneralRe: Problem in passing value to popup window Pin
nagendrathecoder2-Sep-09 0:08
nagendrathecoder2-Sep-09 0:08 
Questionhow we get only year of the system Pin
rummer1-Sep-09 22:40
rummer1-Sep-09 22:40 
AnswerRe: how we get only year of the system Pin
nagendrathecoder1-Sep-09 22:53
nagendrathecoder1-Sep-09 22:53 
GeneralRe: how we get only year of the system Pin
Christian Graus2-Sep-09 0:12
protectorChristian Graus2-Sep-09 0:12 
GeneralRe: how we get only year of the system Pin
sashidhar2-Sep-09 19:27
sashidhar2-Sep-09 19:27 
QuestionMemory allocation error in odbc driver + mysql data base Pin
rinku soni 231-Sep-09 22:04
rinku soni 231-Sep-09 22:04 
hello every one i am trying to make a method which takes vaolues of controls and insert those into database.
I am giving the code.
The error message is ==" memory allocation "

==============code of Function is====================================
string cmdtext = "CALL INSERT_PROCEDURE(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
cmd = new OdbcCommand(cmdtext, con);

OdbcParameter p2 = new OdbcParameter("_section", OdbcType.VarChar,50);
p2.Value = @section ;
OdbcParameter p3 = new OdbcParameter("_Broad_Cat", OdbcType.VarChar,50);
p3.Value = @Broad_Cat;
OdbcParameter p4 = new OdbcParameter("_Cat", OdbcType.VarChar,50);
p4.Value = @Cat;
OdbcParameter p5 = new OdbcParameter("_Attribute1", OdbcType.VarChar,50);
p5.Value = @Attribute1;
OdbcParameter p6 = new OdbcParameter("_Attribute2", OdbcType.VarChar,50);
p6.Value = @Attribute2;
OdbcParameter p7 = new OdbcParameter("_Attribute3", OdbcType.VarChar,50);
p7.Value = @Attribute3;
OdbcParameter p8 = new OdbcParameter("_Attribute4", OdbcType.VarChar,50);
p8.Value = @Attribute4;
OdbcParameter p9 = new OdbcParameter("_Attribute5", OdbcType.VarChar,50);
p9.Value = @Attribute5;
OdbcParameter p10 = new OdbcParameter("_Loaction", OdbcType.VarChar,50);
p10.Value = @Location ;
OdbcParameter p11 = new OdbcParameter("_pincode", OdbcType.VarChar,50);
p11.Value = @Pincode;
OdbcParameter p12 = new OdbcParameter("_Locality", OdbcType.VarChar,50);
p12.Value = @Locality ;
OdbcParameter p13 = new OdbcParameter("_Description", OdbcType.VarChar,50);
p13.Value = @Description;
OdbcParameter p14 = new OdbcParameter("_Image", OdbcType.VarChar,50 );
p14.Value = @Image;
OdbcParameter p15 = new OdbcParameter("_Total_Char", OdbcType.VarChar,50);
p15.Value = @Total_Char ;
OdbcParameter p16 = new OdbcParameter("_Extra_Cha", OdbcType.VarChar,50);
p16.Value = @Extra_Char ;
OdbcParameter p17 = new OdbcParameter("_WebPage_Link", OdbcType.VarChar,50);
p17.Value = @Web_Link ;
OdbcParameter p18 = new OdbcParameter("_Email_id", OdbcType.VarChar,50);
p18.Value = @Email_Id;
OdbcParameter p19 = new OdbcParameter("_Total_Cost", OdbcType.VarChar,50);
p19.Value = @Total_Cost;
OdbcParameter p20 = new OdbcParameter("_Duration", OdbcType.VarChar,50);
p20.Value = @Duration;
OdbcParameter p21 = new OdbcParameter("_Status", OdbcType.VarChar,50);
p21.Value = @Status;

cmd.Parameters.Add(p2);
cmd.Parameters.Add(p3);
cmd.Parameters.Add(p4);
cmd.Parameters.Add(p5);
cmd.Parameters.Add(p6);
cmd.Parameters.Add(p7);
cmd.Parameters.Add(p8);
cmd.Parameters.Add(p9);
cmd.Parameters.Add(p10);
cmd.Parameters.Add(p11);

cmd.Parameters.Add(p12);
cmd.Parameters.Add(p13);
cmd.Parameters.Add(p14);
cmd.Parameters.Add(p15);
cmd.Parameters.Add(p16);
cmd.Parameters.Add(p17);
cmd.Parameters.Add(p18);
cmd.Parameters.Add(p19);
cmd.Parameters.Add(p20);
cmd.Parameters.Add(p21);
con.Open();

cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
con.Close();

======================function is getting call here==============


CodeClass.insert_values(con, cmd, ddlSection.SelectedItem.Text, "employee", null, null, ddlJobType.SelectedItem.Text, ddlIndustry.SelectedItem .Text, null, null, ddlLocation2.SelectedItem.Text, ddlPincode2.SelectedItem.Text, ddlLocality2.SelectedItem .Text, txtDescription.Text, null, txtCalculator.Text, txtExtra.Text, txtweblink.Text, txtEmailId.Text, txtTotalCost.Text, ddlDuration.SelectedItem.Text, "Tempraroy");
AnswerRe: Memory allocation error in odbc driver + mysql data base Pin
Abhishek Sur1-Sep-09 22:24
professionalAbhishek Sur1-Sep-09 22:24 
AnswerRe: Memory allocation error in odbc driver + mysql data base Pin
Christian Graus1-Sep-09 22:29
protectorChristian Graus1-Sep-09 22:29 
Questionscroll bar for gridview Pin
haleemasher1-Sep-09 21:06
haleemasher1-Sep-09 21:06 
AnswerRe: scroll bar for gridview Pin
Coding C#1-Sep-09 21:28
Coding C#1-Sep-09 21:28 
GeneralRe: scroll bar for gridview Pin
haleemasher1-Sep-09 21:40
haleemasher1-Sep-09 21:40 
AnswerRe: scroll bar for gridview Pin
Abhishek Sur1-Sep-09 21:38
professionalAbhishek Sur1-Sep-09 21:38 
AnswerRe: scroll bar for gridview Pin
Abhijit Jana1-Sep-09 23:11
professionalAbhijit Jana1-Sep-09 23:11 
Questionproblem in binding dropdown list in gridview footer rows Pin
Samarjeet Singh@india1-Sep-09 20:58
Samarjeet Singh@india1-Sep-09 20:58 
AnswerRe: problem in binding dropdown list in gridview footer rows Pin
Christian Graus1-Sep-09 21:13
protectorChristian Graus1-Sep-09 21:13 
GeneralRe: problem in binding dropdown list in gridview footer rows Pin
Samarjeet Singh@india1-Sep-09 22:48
Samarjeet Singh@india1-Sep-09 22:48 
GeneralRe: problem in binding dropdown list in gridview footer rows Pin
Christian Graus2-Sep-09 0:14
protectorChristian Graus2-Sep-09 0:14 
GeneralRe: problem in binding dropdown list in gridview footer rows Pin
Samarjeet Singh@india2-Sep-09 1:24
Samarjeet Singh@india2-Sep-09 1:24 
AnswerRe: problem in binding dropdown list in gridview footer rows Pin
Abhishek Sur1-Sep-09 21:55
professionalAbhishek Sur1-Sep-09 21:55 
GeneralRe: problem in binding dropdown list in gridview footer rows Pin
Samarjeet Singh@india1-Sep-09 22:49
Samarjeet Singh@india1-Sep-09 22:49 
GeneralRe: problem in binding dropdown list in gridview footer rows Pin
Abhishek Sur2-Sep-09 21:33
professionalAbhishek Sur2-Sep-09 21:33 
GeneralRe: problem in binding dropdown list in gridview footer rows Pin
Samarjeet Singh@india3-Sep-09 2:00
Samarjeet Singh@india3-Sep-09 2:00 
AnswerRe: problem in binding dropdown list in gridview footer rows Pin
igudipalli24-Jun-10 5:06
igudipalli24-Jun-10 5:06 

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.