Click here to Skip to main content
15,901,122 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: code Pin
Colin Angus Mackay10-Jun-09 23:49
Colin Angus Mackay10-Jun-09 23:49 
AnswerRe: code : Cross Post Pin
Abhijit Jana10-Jun-09 23:53
professionalAbhijit Jana10-Jun-09 23:53 
AnswerRe: code Pin
Christian Graus10-Jun-09 23:57
protectorChristian Graus10-Jun-09 23:57 
Questioncode Pin
sandhya.sa10-Jun-09 23:46
sandhya.sa10-Jun-09 23:46 
AnswerRe: code Pin
Abhijit Jana10-Jun-09 23:50
professionalAbhijit Jana10-Jun-09 23:50 
AnswerRe: code Pin
saanj10-Jun-09 23:58
saanj10-Jun-09 23:58 
JokeRe: code Pin
Vasudevan Deepak Kumar11-Jun-09 3:26
Vasudevan Deepak Kumar11-Jun-09 3:26 
Questioncompare problem Pin
prateekfgiet10-Jun-09 22:32
prateekfgiet10-Jun-09 22:32 
i m using asp.net with c#
i submit some value in database
and then access it
i m trying to do when any fiels contain 0 value then labels visibility should be false.
i m doing like this
cmd.CommandText = "select * from invoice where invoice_no=(Select max(invoice_no) from invoice)";
adp.Fill(ds, "re");
foreach (DataRow dr in ds.Tables["re"].Rows)
{
Label49.Text = dr["invoice_no"].ToString();
Label2.Text = dr["indate"].ToString();
Label9.Text = dr["po_no"].ToString();
Label10.Text = dr["dc_no"].ToString();
Label11.Text = dr["comp_name"].ToString();
Label13.Text = dr["tin_no"].ToString();
Label68.Text = dr["total_vat"].ToString();
Label27.Text = dr["prod1"].ToString();
if (dr["prod2"].ToString() == 0)
{
Label28.Visible = false;
}
else
{
Label28.Text = dr["prod2"].ToString();
}
but it will give error
how i'll do if prod2 contain null or 0 value then label28.visible=false;
plsease help me
thanks in advance
AnswerRe: compare problem Pin
Colin Angus Mackay10-Jun-09 22:41
Colin Angus Mackay10-Jun-09 22:41 
AnswerRe: compare problem Pin
Leonscape10-Jun-09 22:44
Leonscape10-Jun-09 22:44 
AnswerRe: compare problem Pin
N a v a n e e t h10-Jun-09 22:45
N a v a n e e t h10-Jun-09 22:45 
QuestionImages not getting displayed Pin
scar_face10-Jun-09 21:43
scar_face10-Jun-09 21:43 
AnswerRe: Images not getting displayed Pin
Abhijit Jana10-Jun-09 21:57
professionalAbhijit Jana10-Jun-09 21:57 
AnswerRe: Images not getting displayed Pin
saanj10-Jun-09 22:02
saanj10-Jun-09 22:02 
GeneralRe: Images not getting displayed Pin
scar_face11-Jun-09 0:56
scar_face11-Jun-09 0:56 
GeneralRe: Images not getting displayed Pin
saanj11-Jun-09 2:39
saanj11-Jun-09 2:39 
AnswerRe: Images not getting displayed Pin
Christian Graus10-Jun-09 23:04
protectorChristian Graus10-Jun-09 23:04 
GeneralRe: Images not getting displayed Pin
scar_face11-Jun-09 0:56
scar_face11-Jun-09 0:56 
Questionnested gridview [modified] Pin
vikas shukla10-Jun-09 21:10
vikas shukla10-Jun-09 21:10 
AnswerRe: nested gridview Pin
saanj10-Jun-09 21:25
saanj10-Jun-09 21:25 
AnswerRe: nested gridview Pin
Blue_Boy10-Jun-09 21:32
Blue_Boy10-Jun-09 21:32 
AnswerRe: nested gridview Pin
Viral Upadhyay10-Jun-09 22:51
Viral Upadhyay10-Jun-09 22:51 
QuestionDynamic Checkbox Pin
the_smiths10-Jun-09 20:50
the_smiths10-Jun-09 20:50 
AnswerRe: Dynamic Checkbox Pin
Christian Graus10-Jun-09 23:05
protectorChristian Graus10-Jun-09 23:05 
GeneralRe: Dynamic Checkbox Pin
the_smiths11-Jun-09 16:52
the_smiths11-Jun-09 16:52 

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.