looping
-
how to loop the label or textid in C#.net as per vb textboxname.text=cmd.executescalar() but it,s not working in c#.net anyone tell me the suggestion now lucky
-
how to loop the label or textid in C#.net as per vb textboxname.text=cmd.executescalar() but it,s not working in c#.net anyone tell me the suggestion now lucky
Lucky Sheikh wrote:
how to loop the label or textid in C#.net as per vb textboxname.text=cmd.executescalar() but it,s not working in c#.net anyone tell me the suggestion now
What do you mean "loop the label or textid"? The code you have written puts the value of the first column of the first row in the Text property of the text box. It won't loop over anything.
Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website
-
how to loop the label or textid in C#.net as per vb textboxname.text=cmd.executescalar() but it,s not working in c#.net anyone tell me the suggestion now lucky
textboxname.text=cmd.executescalar() ExecuteScalar returns object. You assigned this object to var string so that u r getting error here try this code textboxname.text=cmd.executescalar().ToString(); Best Regard Pathan
---------------------------------------------------
-
textboxname.text=cmd.executescalar() ExecuteScalar returns object. You assigned this object to var string so that u r getting error here try this code textboxname.text=cmd.executescalar().ToString(); Best Regard Pathan
---------------------------------------------------
Imran Khan Pathan wrote:
textboxname.text=cmd.executescalar().ToString();
And if the result set contains zero rows this will fail also.
Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website