Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Retriving data from a table to label

$
0
0

Hi

Hi i have one table hotel with a number of columns.I retive all the details of a hotel using hotel id with LINQ.Ineed to display the data in label how to do this?

 var hotelQuery = from c in db.tbl_HotelDetails
                         where c.HotelID== HotelId
                         //orderby c.CountryName
                         select new { c.HotelName, c.HotelURL, c.Telephone, c.HotelAddress };

 

How to assign the values  to labels Lbl_Hotelname,Lbl_Address.Text , Lbl_Contactnumber


Viewing all articles
Browse latest Browse all 5678

Trending Articles