Click here to Skip to main content
15,888,286 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Progress Bar Stylesheet Pin
Peace ON9-Jun-10 3:51
Peace ON9-Jun-10 3:51 
QuestionProgress Bar Pin
MaheshSharma9-Jun-10 2:55
MaheshSharma9-Jun-10 2:55 
AnswerRe: Progress Bar Pin
JHizzle9-Jun-10 3:22
JHizzle9-Jun-10 3:22 
QuestionMessage Removed Pin
9-Jun-10 0:00
geeeeeeeetha9-Jun-10 0:00 
AnswerRe: WebServices Pin
Abhijit Jana9-Jun-10 0:17
professionalAbhijit Jana9-Jun-10 0:17 
QuestionCalculate prices using radio button value on a GridView Pin
Nopo8-Jun-10 23:57
Nopo8-Jun-10 23:57 
AnswerRe: Calculate prices using radio button value on a GridView Pin
Sandeep Mewara9-Jun-10 7:55
mveSandeep Mewara9-Jun-10 7:55 
GeneralRe: Calculate prices using radio button value on a GridView Pin
Nopo9-Jun-10 22:31
Nopo9-Jun-10 22:31 
Thanks a lot for the advise. Smile | :)
I’m using asp radio buttons, I modified the code accordingly. My problem with these radio buttons is, after selecting e.g “Buy” radio button and then click Calculate button, my radio button becomes unchecked and that leads to not getting the value of that radio button. What have I done wrong?

Calculate button code:
protected void btnCalculate_Click(object sender, EventArgs e)
{
foreach (GridViewRow dgItem in gridViewBill.Rows)
{
RadioButton rBuyButton = dgItem.FindControl("rdbBuy") as
RadioButton;
if (rBuyButton.Checked)
{
//Some Code for Buy
Label1.Text = rBuyButton.Text;
}
else
{
// Some code for Decline

}
}

}


This is my Gridview code:

<asp:GridView ID="gridViewBill" runat="server" HeaderStyle-Font-Bold="true" AllowPaging="True"
PageSize="3" Width="728px">
<HeaderStyle Font-Bold="true" />
<Columns>
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:RadioButton ID="rdbBuy" runat="server" Text="Buy" GroupName="options" />
<asp:RadioButton ID="rdbDecline" runat="server" Text="Decline" GroupName="options" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>

It creates the table and loads the data from the database. How can I get each value of the “Price” column per row? Confused | :confused:

Thanks.
QuestionDeploy the Website on hosted webserver Pin
GauravGupta2128-Jun-10 22:46
GauravGupta2128-Jun-10 22:46 
AnswerRe: Deploy the Website on hosted webserver Pin
Abhijit Jana8-Jun-10 23:55
professionalAbhijit Jana8-Jun-10 23:55 
GeneralRe: Deploy the Website on hosted webserver Pin
GauravGupta2129-Jun-10 23:21
GauravGupta2129-Jun-10 23:21 
QuestionIs it possible to develop email piping on windows using asp.net or classic asp (C# or vb.net) and plesk, helm? Pin
Friends128-Jun-10 21:19
Friends128-Jun-10 21:19 
AnswerRe: Is it possible to develop email piping on windows using asp.net or classic asp (C# or vb.net) and plesk, helm? Pin
Abhijit Jana8-Jun-10 23:59
professionalAbhijit Jana8-Jun-10 23:59 
GeneralRe: Is it possible to develop email piping on windows using asp.net or classic asp (C# or vb.net) and plesk, helm? Pin
Friends129-Jun-10 1:37
Friends129-Jun-10 1:37 
Questionhow to create static viewstate in my aspx page? Pin
pramodgorityala8-Jun-10 20:48
pramodgorityala8-Jun-10 20:48 
AnswerRe: how to create static viewstate in my aspx page? Pin
Peace ON8-Jun-10 20:52
Peace ON8-Jun-10 20:52 
GeneralRe: how to create static viewstate in my aspx page? Pin
pramodgorityala8-Jun-10 21:12
pramodgorityala8-Jun-10 21:12 
AnswerRe: how to create static viewstate in my aspx page? Pin
Brij8-Jun-10 20:56
mentorBrij8-Jun-10 20:56 
Questionhow to embeded gtalk in my application? Pin
pramodgorityala8-Jun-10 20:42
pramodgorityala8-Jun-10 20:42 
AnswerRe: how to embeded gtalk in my application? Pin
Arun Jacob8-Jun-10 20:46
Arun Jacob8-Jun-10 20:46 
GeneralRe: how to embeded gtalk in my application? Pin
pramodgorityala8-Jun-10 21:09
pramodgorityala8-Jun-10 21:09 
QuestionMessage Removed Pin
8-Jun-10 20:41
Chan Myae Naing8-Jun-10 20:41 
AnswerRe: Saving Files to a Database Pin
Arun Jacob8-Jun-10 20:47
Arun Jacob8-Jun-10 20:47 
QuestionHandle Browser close event by pressing [X] Pin
koolprasad20038-Jun-10 18:40
professionalkoolprasad20038-Jun-10 18:40 
AnswerRe: Handle Browser close event by pressing [X] Pin
saini arun8-Jun-10 20:20
saini arun8-Jun-10 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.