<table border="1"> <tr> <td> <asp:Label ID="lblMode" Text="Mode" runat="server"></asp:Label> <br /> <asp:DropDownList ID="dropdownMode" runat="server"> <asp:ListItem>Air</asp:ListItem> <asp:ListItem>Surface</asp:ListItem> <asp:ListItem>Rail</asp:ListItem> </asp:DropDownList> </td> <td> <asp:Label ID="lblVehicleNo" Text="Vehicle No." runat="server"></asp:Label> <asp:TextBox ID="txtVehicleNo" runat="server"></asp:TextBox> </td> <td>
<asp:GridView ID="gvSelected" runat="server" AutoGenerateColumns = "false" Font-Names = "Arial" Font-Size = "11pt" AlternatingRowStyle-BackColor = "#C2D69B" HeaderStyle-BackColor = "green" EmptyDataText = "No Records Selected" > <Columns>
DataTable dt = new DataTable(); DataRow dr = new DataRow(); dt.Columns.Add(new DataColumn("VehicleNo", typeof(string))); dr = dt.NewRow(); dr["VehicleNo"] = txtVehicleNo.Text; dt.Rows.Add(dr); gvSelected.DataSource = dt; gvSelected.DataBind();
<asp:textbox id="txtVehicleNo" runat="server" text="<%#Eval("txtVehicleNo") %>" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)