Click here to Skip to main content
15,896,606 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: freelance job in ASP.net with C# Pin
Tripathi Swati21-Aug-08 3:12
Tripathi Swati21-Aug-08 3:12 
GeneralRe: freelance job in ASP.net with C# Pin
Abhishek Sur21-Aug-08 3:15
professionalAbhishek Sur21-Aug-08 3:15 
GeneralRe: freelance job in ASP.net with C# Pin
Christian Graus21-Aug-08 3:21
protectorChristian Graus21-Aug-08 3:21 
GeneralRe: freelance job in ASP.net with C# Pin
Paul Conrad21-Aug-08 17:04
professionalPaul Conrad21-Aug-08 17:04 
Questionregarding the error message..... Pin
Sasmi_Office21-Aug-08 2:22
Sasmi_Office21-Aug-08 2:22 
AnswerRe: regarding the error message..... Pin
Christian Graus21-Aug-08 2:24
protectorChristian Graus21-Aug-08 2:24 
AnswerRe: regarding the error message..... Pin
Subin Alex21-Aug-08 2:51
Subin Alex21-Aug-08 2:51 
QuestionBad sort column value returned when editing in a ReorderList control Pin
gibby1047221-Aug-08 2:22
gibby1047221-Aug-08 2:22 
I have a ReorderList that uses a SqlDataSource linked to an ODBC data source. I can get the initial population of the control from the database, the save of reorder updates to the database, and the deletion of records from the table to all function properly. My issue is when I am attempting to update from the controls specified in the EditItemTemplate. The database engine throws an exception because the column I use for the sort order (disporder in my case) is being passed a null value and the column has a not null constraint on it. Below is the ReorderList and SqlDataSource from the page. My codebehind is empty. Does anyone have an idea as to how I can get the proper disporder value passed to the UPDATE statement when LinkButton3 in the EditItemTemplate is clicked?

  <cc1:reorderlist id="ReorderList1" runat="server" xmlns:cc1="#unknown">
                  AllowReorder="True"
                  DataSourceID="AsaSource"
                  PostBackOnReorder="false"
                  DataKeyField="id"
                  ItemInsertLocation="end"
                  SortOrderField="disporder"
                  ShowInsertItem="true" OnCancelCommand="ReorderList1_CancelCommand" OnEditCommand="ReorderList1_EditCommand" OnUpdateCommand="ReorderList1_UpdateCommand">
     <itemtemplate>
         <asp:textbox id="TextBox1" runat="server" text="<%# Eval( "name" ) %>" readonly="true" xmlns:asp="#unknown" />
         <asp:linkbutton id="LinkButton1" runat="server" text="Edit" commandname="Edit" causesvalidation="false" xmlns:asp="#unknown" />
         <asp:linkbutton id="LinkButton2" runat="server" text="Delete" commandname="Delete" causesvalidation="false" xmlns:asp="#unknown" />
     </itemtemplate>
     <edititemtemplate>
         <asp:textbox id="TextBox2" runat="server" text="<%# Bind( "Name" ) %>" xmlns:asp="#unknown" />
         <asp:linkbutton id="LinkButton3" runat="server" text="Update" commandname="Update" xmlns:asp="#unknown" />
         <asp:linkbutton id="LinkButton4" runat="server" text="Cancel" commandname="Cancel" causesvalidation="false" xmlns:asp="#unknown" />
     </edititemtemplate>
     <insertitemtemplate>
         <asp:textbox id="TextBox3" runat="server" text="<%# Bind( "Name" ) %>" xmlns:asp="#unknown" />
         <asp:linkbutton id="LinkButton3" runat="server" text="Add" commandname="Insert" xmlns:asp="#unknown" />
         <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="TextBox3" errormessage="Enter a value." xmlns:asp="#unknown" />
     </insertitemtemplate>
     <draghandletemplate>
         <asp:image id="Image1" runat="server" imageurl="~/fire.bmp" xmlns:asp="#unknown" />
     </draghandletemplate>
</cc1:reorderlist>
 <asp:sqldatasource id="AsaSource" runat="server" xmlns:asp="#unknown">
                    ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>"
                    ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>"
                    SelectCommand="SELECT [name], [disporder], [id] FROM [ajaxtest] ORDER BY [disporder]"
                    UpdateCommand="UPDATE ajaxtest SET name = ?, disporder = ? WHERE id = ?"
                    DeleteCommand="DELETE FROM ajaxtest WHERE id = ?"
                    InsertCommand="INSERT INTO ajaxtest (name, disporder) VALUES (?, ?)">
     <updateparameters>
         <asp:parameter name="name" type="String" />
         <asp:parameter name="disporder" type="Int32" />
         <asp:parameter name="id" type="Int32" />
     </updateparameters>
     <deleteparameters>
         <asp:parameter name="id" type="Int32" />
     </deleteparameters>
     <insertparameters>
         <asp:parameter name="name" type="String" />
         <asp:parameter name="disporder" type="Int32" />
     </insertparameters>
 </asp:sqldatasource>

AnswerRe: Bad sort column value returned when editing in a ReorderList control Pin
gibby1047221-Aug-08 8:57
gibby1047221-Aug-08 8:57 
GeneralCMS for Small Businesses Pin
Brady Kelly21-Aug-08 1:52
Brady Kelly21-Aug-08 1:52 
GeneralRe: CMS for Small Businesses Pin
N a v a n e e t h21-Aug-08 2:08
N a v a n e e t h21-Aug-08 2:08 
QuestionCheck box change event in grid view..., [modified] Pin
Member 387988121-Aug-08 1:36
Member 387988121-Aug-08 1:36 
AnswerRe: Check box change event in grid view..., Pin
Christian Graus21-Aug-08 1:45
protectorChristian Graus21-Aug-08 1:45 
GeneralRe: Check box change event in grid view..., Pin
Member 387988121-Aug-08 1:50
Member 387988121-Aug-08 1:50 
GeneralRe: Check box change event in grid view..., Pin
Christian Graus21-Aug-08 1:53
protectorChristian Graus21-Aug-08 1:53 
QuestionDebug link erros Pin
curiel4421-Aug-08 0:43
curiel4421-Aug-08 0:43 
AnswerRe: Debug link erros Pin
Christian Graus21-Aug-08 0:47
protectorChristian Graus21-Aug-08 0:47 
Question_eventtarget not null in asp.net c# Pin
RuviniPerera21-Aug-08 0:37
RuviniPerera21-Aug-08 0:37 
AnswerRe: _eventtarget not null in asp.net c# Pin
Brij21-Aug-08 2:22
mentorBrij21-Aug-08 2:22 
QuestionHOW CAN I PLACE A HTML PAGE IN CONTENT PLACE HOLDER OF MASTER PAGE Pin
TARAK NATH ROY21-Aug-08 0:15
TARAK NATH ROY21-Aug-08 0:15 
AnswerRe: HOW CAN I PLACE A HTML PAGE IN CONTENT PLACE HOLDER OF MASTER PAGE Pin
Christian Graus21-Aug-08 0:33
protectorChristian Graus21-Aug-08 0:33 
AnswerRe: HOW CAN I PLACE A HTML PAGE IN CONTENT PLACE HOLDER OF MASTER PAGE Pin
Nirandas21-Aug-08 2:45
Nirandas21-Aug-08 2:45 
QuestionPrint icon is not display in report viewer Pin
Guvera20-Aug-08 23:50
Guvera20-Aug-08 23:50 
AnswerRe: Print icon is not display in report viewer Pin
Blue_Boy21-Aug-08 0:16
Blue_Boy21-Aug-08 0:16 
GeneralRe: Print icon is not display in report viewer Pin
Guvera21-Aug-08 0:36
Guvera21-Aug-08 0:36 

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.