Posts

Showing posts from August, 2014

nested girdview in datalist cancel update delete c#

  <asp:DataList ID="datalist1" Width="100%" DataKeyField="level2taskno" runat="server"                             OnItemDataBound="datalist_ItemDataBound">                             <HeaderStyle HorizontalAlign="Center"></HeaderStyle>                             <ItemTemplate>                                 <table style="width: 100%; color: Black; font-family: Arial; font-size: 12px;" cellspacing="0">                                     <tr>                                         <td>                                             <table style="width: 100%; color: Black; font-family: Arial; font-size: 12px; border: 1px solid #9a9a9a;"                                                 cellpadding="5">                                                 <tr>                                                     <td bgcolor="

Getting Client Ip address and computer name in c#

 using system .net;  /* host address */             string strHostName = System.Net.Dns.GetHostEntry(Request.UserHostAddress).HostName;             lblip.Text = Request.UserHostAddress.ToString(); when you upload your code on server then in website you'll get your exact value.