Click here to Skip to main content
15,919,479 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionGridView with Javascript Pin
.NET- India 20-Jan-10 18:43
.NET- India 20-Jan-10 18:43 
AnswerRe: GridView with Javascript Pin
SeMartens20-Jan-10 20:21
SeMartens20-Jan-10 20:21 
QuestionGridView Row Selection Pin
Illegal Operation20-Jan-10 12:19
Illegal Operation20-Jan-10 12:19 
AnswerRe: GridView Row Selection Pin
Pranay Rana20-Jan-10 17:38
professionalPranay Rana20-Jan-10 17:38 
AnswerRe: GridView Row Selection Pin
April Fans24-Jan-10 16:21
April Fans24-Jan-10 16:21 
QuestionFailed to update database "C:\BCPORTAL\APP_DATA\BCANCER.MDF" because the database is read-only. Pin
ceiral20-Jan-10 10:11
ceiral20-Jan-10 10:11 
AnswerRe: Failed to update database "C:\BCPORTAL\APP_DATA\BCANCER.MDF" because the database is read-only. Pin
kadaoui el mehdi21-Jan-10 8:21
kadaoui el mehdi21-Jan-10 8:21 
QuestionHow to implement asp.net AJAX ReorderList list? Pin
jhTom20-Jan-10 9:18
jhTom20-Jan-10 9:18 
I have followed this [^] and also posted on the asp.net AJAX forum but so far no one seems to know why it's not working for me.

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div class="reorderListDemo">
                            <ajaxToolkit:ReorderList ID="rdlPhotos" runat="server" 
                                SortOrderField="position"
                                DataSourceID="sqlPhotos" 
                                DataKeyField="photoID" 
                                PostBackOnReorder="true" 
                                CallbackCssStyle="callbackStyle"
                                DragHandleAlignment="Left" 
                                ItemInsertLocation="Beginning">
                                <ItemTemplate>
                                    <div class="itemArea">
                                        <asp:Image ID="imgImage" runat="server" ImageUrl='<%# String.Format("{0}{1}", Eval("filepath"), Eval("filename")) %>'
                                            Width="150px" />
                                    </div>
                                </ItemTemplate>
                                <ReorderTemplate>
                                    <asp:Panel ID="pnlReorder" runat="server" CssClass="reorderCue" />
                                </ReorderTemplate>
                                <DragHandleTemplate>
                                    <div class="dragHandle">
                                    </div>
                                </DragHandleTemplate>
                            </ajaxToolkit:ReorderList>
                        </div>
                        <asp:SqlDataSource ID="sqlPhotos" runat="server" ConnectionString="<%$ ConnectionStrings:classNotesConnStr %>"
                            DeleteCommand="DELETE FROM [classNotesPhoto] WHERE [photoID] = @photoID" InsertCommand="INSERT INTO [classNotesPhoto] ([albumID], [fileName], [filePath], [caption], [profilePhoto], [albumPhoto], [description], [position], [certify], [dateInsert]) VALUES (@albumID, @fileName, @filePath, @caption, @profilePhoto, @albumPhoto, @description, @position, @certify, @dateInsert)"
                            SelectCommand="SELECT * FROM [classNotesPhoto] WHERE ([albumID] = @albumID) ORDER BY [position]"
                            UpdateCommand="UPDATE [classNotesPhoto] SET [albumID] = @albumID, [fileName] = @fileName, [filePath] = @filePath, [caption] = @caption, [profilePhoto] = @profilePhoto, [albumPhoto] = @albumPhoto, [description] = @description, [position] = @position, [certify] = @certify, [dateInsert] = @dateInsert WHERE [photoID] = @photoID">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="albumID" QueryStringField="album" Type="Int32" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="photoID" Type="Int32" />
                            </DeleteParameters>
                            <InsertParameters>
                                <asp:Parameter Name="albumID" Type="Int32" />
                                <asp:Parameter Name="fileName" Type="String" />
                                <asp:Parameter Name="filePath" Type="String" />
                                <asp:Parameter Name="caption" Type="String" />
                                <asp:Parameter Name="profilePhoto" Type="Boolean" />
                                <asp:Parameter Name="albumPhoto" Type="Boolean" />
                                <asp:Parameter Name="description" Type="String" />
                                <asp:Parameter Name="position" Type="Int32" />
                                <asp:Parameter Name="certify" Type="Boolean" />
                                <asp:Parameter DbType="DateTime" Name="dateInsert" />
                            </InsertParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="albumID" Type="Int32" />
                                <asp:Parameter Name="fileName" Type="String" />
                                <asp:Parameter Name="filePath" Type="String" />
                                <asp:Parameter Name="caption" Type="String" />
                                <asp:Parameter Name="profilePhoto" Type="Boolean" />
                                <asp:Parameter Name="albumPhoto" Type="Boolean" />
                                <asp:Parameter Name="description" Type="String" />
                                <asp:Parameter Name="position" Type="Int32" />
                                <asp:Parameter Name="certify" Type="Boolean" />
                                <asp:Parameter DbType="DateTime" Name="dateInsert" />
                                <asp:Parameter Name="photoID" Type="Int32" />
                            </UpdateParameters>
                        </asp:SqlDataSource>
                    </ContentTemplate>
                </asp:UpdatePanel>

As soon as I drop the item, it will automatically go back to its original position/order.

Any suggestion is much appreciated.
QuestionRe: How to implement asp.net AJAX ReorderList list? Pin
jhTom21-Jan-10 3:59
jhTom21-Jan-10 3:59 
QuestionIs there a right & wrong way of working with dbml files? Pin
Goalie3520-Jan-10 8:36
Goalie3520-Jan-10 8:36 
AnswerRe: Is there a right & wrong way of working with dbml files? Pin
Manas Bhardwaj20-Jan-10 9:43
professionalManas Bhardwaj20-Jan-10 9:43 
QuestionTo: Smitha Vijayan Pin
Daniel Cohen Gindi20-Jan-10 8:06
Daniel Cohen Gindi20-Jan-10 8:06 
AnswerRe: To: Smitha Vijayan Pin
Brij20-Jan-10 8:17
mentorBrij20-Jan-10 8:17 
GeneralRe: To: Smitha Vijayan Pin
Daniel Cohen Gindi20-Jan-10 12:26
Daniel Cohen Gindi20-Jan-10 12:26 
GeneralRe: To: Smitha Vijayan Pin
Not Active20-Jan-10 15:42
mentorNot Active20-Jan-10 15:42 
GeneralRe: To: Smitha Vijayan Pin
Daniel Cohen Gindi20-Jan-10 22:26
Daniel Cohen Gindi20-Jan-10 22:26 
AnswerRe: To: Smitha Vijayan Pin
loyal ginger21-Jan-10 5:39
loyal ginger21-Jan-10 5:39 
GeneralRe: To: Smitha Vijayan Pin
Daniel Cohen Gindi21-Jan-10 5:42
Daniel Cohen Gindi21-Jan-10 5:42 
Generalproblem of assembly in my Asp.net webapplication Pin
nilesh_chile20-Jan-10 6:59
nilesh_chile20-Jan-10 6:59 
GeneralRe: problem of assembly in my Asp.net webapplication Pin
Estys20-Jan-10 7:07
Estys20-Jan-10 7:07 
GeneralRe: problem of assembly in my Asp.net webapplication Pin
thatraja20-Jan-10 7:49
professionalthatraja20-Jan-10 7:49 
GeneralRe: problem of assembly in my Asp.net webapplication Pin
Estys20-Jan-10 9:48
Estys20-Jan-10 9:48 
GeneralRe: problem of assembly in my Asp.net webapplication Pin
thatraja21-Jan-10 1:25
professionalthatraja21-Jan-10 1:25 
GeneralRe: problem of assembly in my Asp.net webapplication Pin
Estys21-Jan-10 2:11
Estys21-Jan-10 2:11 
Questionasp.net, images Pin
shy boi20-Jan-10 5:22
shy boi20-Jan-10 5:22 

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.