Click here to Skip to main content
16,005,316 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: get hyperlink id in codebehind Pin
Vasudevan Deepak Kumar10-Feb-09 3:01
Vasudevan Deepak Kumar10-Feb-09 3:01 
Questionhtml tag Pin
arkiboys10-Feb-09 2:34
arkiboys10-Feb-09 2:34 
AnswerRe: html tag Pin
Vasudevan Deepak Kumar10-Feb-09 2:47
Vasudevan Deepak Kumar10-Feb-09 2:47 
GeneralRe: html tag Pin
arkiboys10-Feb-09 2:50
arkiboys10-Feb-09 2:50 
QuestionPage Request Manager Error Pin
support synthesys10-Feb-09 2:03
support synthesys10-Feb-09 2:03 
Questionwhen stored procudere fire error how can i handle it? Pin
keyur satyadev10-Feb-09 2:00
keyur satyadev10-Feb-09 2:00 
AnswerRe: when stored procudere fire error how can i handle it? Pin
support synthesys10-Feb-09 2:04
support synthesys10-Feb-09 2:04 
QuestionPostback to new record instead of first record Pin
bjh2910-Feb-09 1:52
bjh2910-Feb-09 1:52 
I have several aspx forms in which I would like to change the postback behavior. The forms allow for paging and when I enter a new record the form posts back to the first record in the set instead of the record I just entered. Is there a way to change this? When I edit a record it posts back to the record I just editted. I would like the same behavior for a new record as well because several of my forms have a "sub-form" where I need to enter additional info and paging thru the records is a pain, or worse, I put the subform info with the wrong record. Below is the code from one of my forms. TIA - BJH

<asp:formview id="FormView1" runat="server" datakeynames="LocationID" datasourceid="FacilitySqlDataSource" allowpaging="True" xmlns:asp="#unknown"><br />
        <edititemtemplate><br />
        <table><br />
        <tr><br />
            <td><br />
            LocationID:<br />
            </td><br />
            <td><br />
            <asp:label id="LocationIDLabel" runat="server" text="<%# Eval("LocationID") %>"><br />
            </asp:label><br /><br />
            </td><br />
        </tr><br />
        <tr><br />
            <td><br />
            LocationName:<br />
            </td><br />
            <td><br />
            <asp:textbox id="LocationNameTextBox" runat="server" text="<%# Bind("LocationName") %>"><br />
            </asp:textbox><br /><br />
            </td><br />
        </tr><br />
        </table><br />
            <br /><br />
            <asp:linkbutton id="UpdateButton" runat="server" causesvalidation="True" commandname="Update"><br />
                Text="Update"><br />
            </asp:linkbutton><br />
            <asp:linkbutton id="UpdateCancelButton" runat="server" causesvalidation="False" commandname="Cancel"><br />
                Text="Cancel"><br />
            </asp:linkbutton><br />
        </edititemtemplate><br />
        <insertitemtemplate><br />
        <table><br />
        <tr><br />
            <td><br />
            LocationID:<br />
            </td><br />
            <td><br />
            <asp:label id="LocationIDLabel" runat="server" text="New"><br />
            </asp:label><br /><br />
            </td><br />
        </tr><br />
        <tr><br />
            <td><br />
            LocationName:<br />
            </td><br />
            <td><br />
            <asp:textbox id="LocationNameTextBox" runat="server" text="<%# Bind("LocationName") %>"><br />
            </asp:textbox><br /><br />
            </td><br />
        </tr><br />
        </table><br />
        <br /><br />
            <asp:linkbutton id="InsertButton" runat="server" causesvalidation="True" commandname="Insert"><br />
                Text="Insert"><br />
            </asp:linkbutton><br />
            <asp:linkbutton id="InsertCancelButton" runat="server" causesvalidation="False" commandname="Cancel"><br />
                Text="Cancel"><br />
            </asp:linkbutton><br />
        </insertitemtemplate><br />
        <itemtemplate><br />
        <table><br />
        <tr><br />
            <td><br />
            LocationID:<br />
            </td><br />
            <td><br />
            <asp:label id="LocationIDLabel" runat="server" text="<%# Eval("LocationID") %>"><br />
            </asp:label><br /><br />
            </td><br />
        </tr><br />
        <tr><br />
            <td><br />
            LocationName:<br />
            </td><br />
            <td><br />
            <asp:label id="LocationNameLabel" runat="server" text="<%# Bind("LocationName") %>"><br />
            </asp:label><br /><br />
            </td><br />
        </tr><br />
        </table><br />
            <br /><br />
            <asp:linkbutton id="EditButton" runat="server" causesvalidation="False" commandname="Edit"><br />
                Text="Edit"><br />
            </asp:linkbutton><br />
            <asp:linkbutton id="NewButton" runat="server" causesvalidation="False" commandname="New"><br />
                Text="New"><br />
            </asp:linkbutton><br />
        </itemtemplate><br />
    	</asp:formview>

Questionre:How to perform grid view operations like select,update delete from database in asp.net 2.0? Pin
keyur satyadev10-Feb-09 1:30
keyur satyadev10-Feb-09 1:30 
AnswerRe: re:How to perform grid view operations like select,update delete from database in asp.net 2.0? Pin
Vimalsoft(Pty) Ltd10-Feb-09 3:44
professionalVimalsoft(Pty) Ltd10-Feb-09 3:44 
AnswerRe: opening excel document Pin
keyur satyadev10-Feb-09 1:25
keyur satyadev10-Feb-09 1:25 
GeneralRe: opening excel document Pin
kulandaivel_mca200710-Feb-09 1:33
kulandaivel_mca200710-Feb-09 1:33 
GeneralRe: opening excel document Pin
_AK_10-Feb-09 1:36
_AK_10-Feb-09 1:36 
GeneralRe: opening excel document Pin
anujbanka178410-Feb-09 1:54
anujbanka178410-Feb-09 1:54 
QuestionAdding row to datatable programmatically Pin
Paul McGann10-Feb-09 1:22
professionalPaul McGann10-Feb-09 1:22 
AnswerRe: Adding row to datatable programmatically Pin
_AK_10-Feb-09 1:40
_AK_10-Feb-09 1:40 
GeneralRe: Adding row to datatable programmatically Pin
Paul McGann10-Feb-09 2:15
professionalPaul McGann10-Feb-09 2:15 
AnswerRe: Adding row to datatable programmatically Pin
Kaushal Arora10-Feb-09 17:59
Kaushal Arora10-Feb-09 17:59 
QuestionHOW TO OPEN FILE. Pin
anujbanka178410-Feb-09 1:20
anujbanka178410-Feb-09 1:20 
AnswerRe: HOW TO OPEN FILE. Pin
Vasudevan Deepak Kumar10-Feb-09 2:46
Vasudevan Deepak Kumar10-Feb-09 2:46 
AnswerRe: HOW TO OPEN FILE. Pin
Ranjit Viswakumar10-Feb-09 16:39
Ranjit Viswakumar10-Feb-09 16:39 
QuestionNetwork printing Pin
Armandt__10-Feb-09 1:05
Armandt__10-Feb-09 1:05 
AnswerRe: Network printing Pin
Armandt__11-Feb-09 20:05
Armandt__11-Feb-09 20:05 
Questionopening excel document Pin
kulandaivel_mca200710-Feb-09 1:04
kulandaivel_mca200710-Feb-09 1:04 
AnswerRe: opening excel document Pin
support synthesys10-Feb-09 2:06
support synthesys10-Feb-09 2:06 

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.