Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DetailsView gives a blank page on update

Thread Tools

DetailsView gives a blank page on update

chuck wyatt
Posts: n/a
My problem is that when i press the update button on a detailsview i
get a blank page with no events being called. Not even page_load gets
called, nor does an exception get thrown. In the detailsview i have
autogenerateedit enabled and it does switch modes but no update. Im
using a tableadabter with all the insert/update/delete methods. So im
asking if anybody else has had this problem and how do i fix it.

code below

in cs file

protected void DetailsView1_ItemUpdating(object sender,
DetailsViewUpdateEventArgs e)
//never gets called by the update button
e.Cancel = false;

protected void DetailsView1_ItemUpdated(object sender,
DetailsViewUpdatedEventArgs e)
//never gets called by the update button
if (e.Exception != null)
//notifiy user


in aspx

Section Material<aspetailsView ID="DetailsView1"
runat="server" AllowPaging="True" AutoGenerateRows="False"
DataKeyNames="PageID" DataSourceID="MaterialDataSource"
Height="50px" Width="450px" OnDataBound="DetailsView1_DataBound"
<asp:BoundField DataField="PageID" HeaderText="PageID"
InsertVisible="False" ReadOnly="True"
SortExpression="PageID" Visible="False" />
<asp:BoundField DataField="SectionID"
HeaderText="SectionID" InsertVisible="False"
SortExpression="SectionID" Visible="False" />
<asp:BoundField DataField="PageNumber"
HeaderText="PageNumber" SortExpression="PageNumber" />
<asp:TemplateField HeaderText="PageTxt"
<asp:TextBox ID="TextBox1" runat="server"
Height="114px" Text='<%# Bind("PageTxt") %>'
<asp:TextBox ID="TextBox1" runat="server"
Height="109px" Text='<%# Bind("PageTxt") %>'
<asp:Label ID="Label1" runat="server" Text='<%#
Bind("PageTxt") %>'></asp:Label>
<asp:CommandField ShowDeleteButton="True"
ShowEditButton="True" ShowInsertButton="True" />
<asp:ObjectDataSource ID="MaterialDataSource" runat="server"
DeleteMethod="Delete" InsertMethod="Insert"
TypeName="CoursesDataSetTableAdapters.PagesTableAd apter"
<asparameter Name="PageID" Type="Object" />
<asparameter Name="SectionID" Type="Object" />
<asparameter Name="PageNumber" Type="Int32" />
<asparameter Name="PageTxt" Type="String" />
<asparameter Name="Original_PageID" Type="Object" />
<asp:QueryStringParameter Name="SectionID"
QueryStringField="sectionid" Type="Object" />
<asparameter Name="PageID" Type="Object" />
<asparameter Name="SectionID" Type="Object" />
<asparameter Name="PageNumber" Type="Int32" />
<asparameter Name="PageTxt" Type="String" />

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug/Start Without Debugging gives IE8 opened with the address bar containing about:blank Cal Who ASP .Net 5 12-03-2009 08:36 PM
Home of page afer update DetailsView Mario ASP .Net 0 03-02-2009 08:40 AM
customErrors redirect gives blank page wardy ASP .Net 0 03-20-2007 05:27 PM
"return false" gives a blank page with the word "false" ? Javascript 10 02-16-2006 04:13 PM
DetailsView - Changing to Insert Mode (Not By Using the Insert Button In the DetailsView Control) Feege ASP .Net Web Controls 0 12-20-2005 12:28 AM