Click here to Skip to main content
16,004,761 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Create table in codebehind Pin
anilpal1-Apr-09 23:06
anilpal1-Apr-09 23:06 
GeneralRe: Create table in codebehind Pin
N a v a n e e t h1-Apr-09 23:06
N a v a n e e t h1-Apr-09 23:06 
GeneralRe: Create table in codebehind Pin
Abhijit Jana1-Apr-09 23:09
professionalAbhijit Jana1-Apr-09 23:09 
GeneralRe: Create table in codebehind Pin
saravanan051-Apr-09 23:15
saravanan051-Apr-09 23:15 
GeneralRe: Create table in codebehind Pin
Colin Angus Mackay1-Apr-09 23:52
Colin Angus Mackay1-Apr-09 23:52 
GeneralRe: Create table in codebehind Pin
anilpal1-Apr-09 23:59
anilpal1-Apr-09 23:59 
GeneralRe: Create table in codebehind Pin
Colin Angus Mackay2-Apr-09 0:52
Colin Angus Mackay2-Apr-09 0:52 
Questionproblem after publishing on server Pin
prateekfgiet1-Apr-09 22:38
prateekfgiet1-Apr-09 22:38 
i have a web page which issue product all products issue smoothly without error on local system but when i publish same page on server,and try to issue prodect(perticuler one product) gives error
error is
Input string was not in a correct format.
while code is for that perticular product
cmd.CommandText = "select * from total_stock where ptype='RJ-45 SIMPLE' ";
adp.Fill(ds, "ab");
foreach (DataRow dm in ds.Tables["ab"].Rows)
{
lblval.Text = dm["pqty"].ToString();
}
n = Convert.ToDouble(TextBox2.Text);
if(Convert.ToDouble(lblval.Text) < Convert.ToDouble(n))
{
Page.RegisterStartupScript("onClick", "<script
Language=JavaScript>alert('Please check the Stock !')</script>");

}
else
{
o = Convert.ToDouble(lblval.Text) - Convert.ToDouble(n);
lblval.Text = Convert.ToString(o);
con.Open();
cmd.CommandText = "update total_stock set pqty='" +
lblval.Text + "' where ptype='RJ-45 SIMPLE'";
cmd.ExecuteNonQuery();
con.Close();
//end
cmd.CommandText = "select * from material_issue";
adp.Fill(ds, "re");
dr = ds.Tables["re"].NewRow();
//cmd.CommandText = "select * from total_stock";
cb = new SqlCommandBuilder(adp);
adp.Update(ds.Tables["re"]);
dr = ds.Tables["re"].NewRow();

dr["ptypename"] = "RJ-45 SIMPLE";
dr["materialissue_date"] = DateTime.Now;
dr["issue_to"] = TextBox1.Text;
dr["entered_by"] = Label28.Text
dr["qty"] = TextBox2.Text;
dr["remarks"] = "ISSUE TO TECHNICIEAN";
ds.Tables["re"].Rows.Add(dr);
cmd.CommandText = "Select * from material_issue";
cb = new SqlCommandBuilder(adp);
adp.Update(ds.Tables["re"]);
Page.RegisterStartupScript("onClick", "<script
Language=JavaScript>alert('RJ-45 is Issued !')</script>");
}
AnswerRe: problem after publishing on server Pin
Abhijit Jana1-Apr-09 22:59
professionalAbhijit Jana1-Apr-09 22:59 
Questiondropdownlist with other option Pin
prateekfgiet1-Apr-09 22:37
prateekfgiet1-Apr-09 22:37 
AnswerRe: dropdownlist with other option Pin
anilpal1-Apr-09 23:02
anilpal1-Apr-09 23:02 
AnswerRe: dropdownlist with other option Pin
Abhijit Jana1-Apr-09 23:06
professionalAbhijit Jana1-Apr-09 23:06 
GeneralRe: dropdownlist with other option Pin
prateekfgiet1-Apr-09 23:20
prateekfgiet1-Apr-09 23:20 
GeneralRe: dropdownlist with other option Pin
Alok Sharma ji2-Apr-09 3:54
Alok Sharma ji2-Apr-09 3:54 
Question3rd party tools for gridviews Pin
samerh1-Apr-09 22:36
samerh1-Apr-09 22:36 
AnswerRe: 3rd party tools for gridviews Pin
Piyush Vardhan Singh2-Apr-09 0:13
Piyush Vardhan Singh2-Apr-09 0:13 
QuestionHow to set GridView Row Height!!! Pin
Sr...Frank1-Apr-09 22:27
Sr...Frank1-Apr-09 22:27 
AnswerRe: How to set GridView Row Height!!! Pin
anilpal1-Apr-09 22:57
anilpal1-Apr-09 22:57 
GeneralRe: How to set GridView Row Height!!! Pin
Sr...Frank1-Apr-09 23:20
Sr...Frank1-Apr-09 23:20 
GeneralRe: How to set GridView Row Height!!! Pin
anilpal2-Apr-09 0:01
anilpal2-Apr-09 0:01 
GeneralRe: How to set GridView Row Height!!! Pin
Sr...Frank2-Apr-09 3:55
Sr...Frank2-Apr-09 3:55 
AnswerRe: How to set GridView Row Height!!! Pin
Abhijit Jana1-Apr-09 23:01
professionalAbhijit Jana1-Apr-09 23:01 
AnswerRe: How to set GridView Row Height!!! Pin
Alok Sharma ji2-Apr-09 3:36
Alok Sharma ji2-Apr-09 3:36 
GeneralRe: How to set GridView Row Height!!! Pin
Sr...Frank2-Apr-09 3:56
Sr...Frank2-Apr-09 3:56 
QuestionCant display image in my webpage Pin
bishwambhar_sen1-Apr-09 22:19
bishwambhar_sen1-Apr-09 22:19 

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.