Click here to Skip to main content
16,017,314 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All

How can i bind a particular column value of dataset in label E.G:-i want to display the date which is begin in the dataset in the label in master page

Kindly any one help me
Thanks In Advance
Posted

label.text = ds.tables[0].rows[0]["Date"].ToString();
 
Share this answer
 
Comments
Maheswar Tripathy 11-Sep-13 1:33am    
Thanks Poonamchand Soni
You can try this as you have mentioned the label is to be updated in the master page

Label lbDate = this.Master.FindControl("lbDate") as Label;// accessing the Label from the MasterPage to assign
lbDate.Text = Convert.Tostring( ds.tables[0].rows[0]["Date"]);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900