ASP Ajax Update Panel

ASP Ajax Update Panel

am 13.04.2008 18:35:17 von AdonisL81

Hello,
I am new to .NET I am having trouble with a asp update panel
and Gridview.

The Gridview control is inside the update panel and I am trying to
have the gridview update from a form button. The form updates the
database from which the gridview pulls data.

The panel and gridview works if I do a postback from within the
gridview such as sorting. but I can not get it to work from the
button. here is my code.

I'm sure I missed something but if anyone can help that would be
appreciated

<%@ Page Language="VB" AutoEventWireup="true"
CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

TR/xhtml11/DTD/xhtml11.dtd">


Untitled Page



















ADMN
OTHER
TEST







Height="16px" Width="42px" >

1
2
3
4






runat="server" Width="50px">




asp:TextBox>
Format="M/d/yyyy"
TargetControlID="textbox3">


ControlToValidate="TextBox3" ErrorMessage="RangeValidator"
Type="Date">





AutoPostBack="True">

1234
1234
5678
7896
1236






AutoPostBack="True">
MISC
ADMN
TEST
Other






AutoPostBack="True">
TEST
NEXT
ONE
LAST






runat="server" Height="150px" Width="200px">





style="height: 26px"/>






AllowPaging="True"
AllowSorting="True" DataSourceID="GetUserTime"
AutoGenerateColumns="False" DataKeyNames="id" >

ShowEditButton="True" />
HeaderText="Initials"
SortExpression="Initials" />
SortExpression="Dept" />
HeaderText="HourType"
SortExpression="HourType" />
SortExpression="Hours" />
SortExpression="Date" />
SortExpression="Job#" />
SortExpression="Phase" />
HeaderText="Category"
SortExpression="Category" />
HeaderText="Description"
SortExpression="Description" />




EventName="Click"/>