for using Microsoft Ajax Control Toolkit, is it important that it's for .Net2 or .Net 3.5?
Why microsoft says "AjaxControlToolkit-Framework3" ?
I'm trying to implement paging on a data grid control, but because I'm not using a datasource control there is no way to tell the GridView what the total record count is (I'm only returning the requested records from the database instead of the entire, unpaged dataset). I've looked everywhere and I can't seem to find any examples which aren't returning the whole dataset and then filtering it locally.
I had hoped I was just missing something. But thank you for confirming that for me. Would it have been so hard to allow for this kind of scenario? Honestly, I am really shocked at times when I run into scenarios when it requires so much more work (ok, so I'm being a bit lazy) to follow a best practice.
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?
protectedvoid 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;
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();