Click here to Skip to main content
15,895,256 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: GridView paging without DataSource control Pin
Christian Flutcher4-Sep-08 18:16
Christian Flutcher4-Sep-08 18:16 
GeneralRe: GridView paging without DataSource control Pin
Mark J. Miller5-Sep-08 4:07
Mark J. Miller5-Sep-08 4:07 
QuestionControlling the system sound. Pin
emmmatty14-Sep-08 8:06
emmmatty14-Sep-08 8:06 
AnswerRe: Controlling the system sound. Pin
John_Adams4-Sep-08 23:26
John_Adams4-Sep-08 23:26 
GeneralRe: Controlling the system sound. Pin
emmmatty15-Sep-08 19:28
emmmatty15-Sep-08 19:28 
Question[Message Deleted] Pin
reogeo20084-Sep-08 7:52
reogeo20084-Sep-08 7:52 
AnswerRe: C# code for ftp file transfer Pin
Christian Flutcher4-Sep-08 18:18
Christian Flutcher4-Sep-08 18:18 
Questionhow can I correct my code? Pin
strawberrysh4-Sep-08 6:30
strawberrysh4-Sep-08 6:30 
I write this code for showing totalprice in a gridview footer.when this page loaded user input his quantity on textboxes and press a button,after that must see the total price in gridview footer.here is my click event code:(but when I input something in m textboxes and press the button the total price in footer is 0)I used breakpoint and saw the qty is "".how should I correct my code?

protected void Button1_Click(object sender, EventArgs e)
    {
        if (GridView1.Rows.Count > 0)
        {
            for (int i = 0; i <= GridView1.Rows.Count - 1; i++)
            {
                TextBox qty = (TextBox)GridView1.Rows[i].FindControl("textbox2");
                Label pr = (Label)GridView1.Rows[i].FindControl("label3");
                float total = 0;
                if (!string.IsNullOrEmpty(qty.Text))
                {
                    float qty1 = float.Parse(qty.Text);

                    float pr1 = float.Parse(pr.Text);
                    total = total + (qty1 * pr1);
                }
                Label t = (Label)GridView1.FooterRow.FindControl("label3");
                t.Text = total.ToString();
            }

        }

AnswerRe: how can I correct my code? Pin
Blue_Boy4-Sep-08 10:24
Blue_Boy4-Sep-08 10:24 
GeneralRe: how can I correct my code? Pin
strawberrysh4-Sep-08 10:44
strawberrysh4-Sep-08 10:44 
GeneralRe: how can I correct my code? [modified] Pin
Blue_Boy4-Sep-08 13:41
Blue_Boy4-Sep-08 13:41 
GeneralRe: how can I correct my code? Pin
strawberrysh4-Sep-08 21:16
strawberrysh4-Sep-08 21:16 
GeneralRe: how can I correct my code? Pin
Blue_Boy4-Sep-08 21:26
Blue_Boy4-Sep-08 21:26 
GeneralRe: how can I correct my code? Pin
strawberrysh4-Sep-08 22:20
strawberrysh4-Sep-08 22:20 
GeneralRe: how can I correct my code? Pin
Blue_Boy4-Sep-08 22:30
Blue_Boy4-Sep-08 22:30 
Questionhow design without programming Pin
raquidd224-Sep-08 5:19
raquidd224-Sep-08 5:19 
AnswerRe: how design without programming Pin
raquidd224-Sep-08 11:49
raquidd224-Sep-08 11:49 
AnswerRe: how design without programming Pin
J4amieC4-Sep-08 22:22
J4amieC4-Sep-08 22:22 
Questioncalling a remote/localhost webservice from asp.net application Pin
Member 7816104-Sep-08 4:40
Member 7816104-Sep-08 4:40 
QuestionHow to restrict multiple logon to an application? Pin
surender9394-Sep-08 3:56
surender9394-Sep-08 3:56 
AnswerRe: How to restrict multiple logon to an application? Pin
John Ad4-Sep-08 4:18
John Ad4-Sep-08 4:18 
Questionhow to insert more than one value from checkboxlist in a form Pin
avineshkumar4-Sep-08 3:40
avineshkumar4-Sep-08 3:40 
QuestionHow can i include youtube videos in my web application Pin
reogeo20084-Sep-08 3:23
reogeo20084-Sep-08 3:23 
AnswerRe: How can i include youtube videos in my web application Pin
Manas Bhardwaj4-Sep-08 3:29
professionalManas Bhardwaj4-Sep-08 3:29 
Questionreply Pin
reminston4-Sep-08 3:07
reminston4-Sep-08 3:07 

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.