14 Mayıs 2013 Salı

Gridview kolon adı bilgisine ulaşmak

Gridview kolon adlarına ulaşmak için kod ; Hardcoded approach: string searchValue = "SpecifiedName"; // where 1 is the hardcoded cell index var query = from GridViewRow row in GridView1.Rows where row.Cells[1].Text == searchValue select row; GridViewRow result = query.FirstOrDefault(); Dynamic Approach (Column Index Lookup): string colName = "name"; int index = (from DataControlField col in GridView1.Columns ...
Share:

10 Mayıs 2013 Cuma

Masterpage css link class erişimi

--------Masterpage code source--------- <li><a href="home.aspx" id="HomeLink" runat="server"><i class="home"></i> Home</a></li> <li><a href="Calendar.aspx" id="CalendarLink" runat="server"><i class="calendar"></i>Calendar</a></li> <li><a href="Bill.aspx" id="BillLink" runat="server"><i class="list"></i>Bills</a></li> -------Masterpage...
Share: