konto usunięte
Temat: GridView + textbox + radio + button :)
WitamMam takiego oto grida:
<asp:GridView ID="MeetGrid" runat="server" CellPadding="4" ForeColor="#333333"
GridLines="None" AutoGenerateColumns="False" Width="656px">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField>
<ItemTemplate >
<asp:HyperLink runat="server" id="hlnk" Text='View Profile' NavigateUrl='<%# "Profile.aspx?sid="+Eval("ID")%>' >
</asp:HyperLink><br/>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Name" HeaderText ="Name"/>
<asp:BoundField DataField="Status" HeaderText ="Status"/>
<asp:TemplateField HeaderText="Date">
<ItemTemplate>
<asp:TextBox ID="tdate" runat="server" Width="75"></asp:TextBox>
<asp:CalendarExtender ID="tdate_CalendarExtender" runat="server"
Format="dd/MM/yyyy" TargetControlID="tdate">
</asp:CalendarExtender>
<br />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Value">
<ItemTemplate>
<asp:TextBox ID="tValue" runat="server" Width="75"></asp:TextBox>
<br />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Type">
<ItemTemplate>
<asp:RadioButtonList ID="Type" runat="server"
RepeatDirection="Vertical">
<asp:ListItem>Pay</asp:ListItem>
<asp:ListItem>Not Pay</asp:ListItem>
</asp:RadioButtonList>
<br />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Action">
<ItemTemplate>
<center>
<asp:Button ID="Button1" runat="server" Text="Process" PostBackUrl='<%#"~/CommProc.aspx?ID="+Eval("ID") %>' />
<br /> </center>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
<SortedAscendingCellStyle BackColor="#E9E7E2">
</SortedAscendingCellStyle>
<SortedAscendingHeaderStyle BackColor="#506C8C">
</SortedAscendingHeaderStyle>
<SortedDescendingCellStyle BackColor="#FFFDF8">
</SortedDescendingCellStyle>
<SortedDescendingHeaderStyle BackColor="#6F8DAE">
</SortedDescendingHeaderStyle>
</asp:GridView>
i chcialbym zeby przy buttonie w postbackUrl ~/CommProc.aspx?ID="+Eval("ID")
w parametrach przekazal mi dodatkowo aktualna wartosc textoboxw i SelectedValue z radio.
Mam zacmienie i nie moge sobie z tym poradzic :/
HELP !