Thanks for your response Tdar,
If there're any further question or anything else we can help, please feel
free to post here.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: detailsview asp.net 2 and insert confirmation
| thread-index: AcXi+8zWJnYxnOaRT5mkOhq/peO/RQ==
| X-WBNR-Posting-Host: 65.35.95.187
| From: "=?Utf-8?B?VGRhclRkYXI=?=" <>
| References: <712A03A7-E91F-4EF8-B69A->
<>
| Subject: RE: detailsview asp.net 2 and insert confirmation
| Date: Sun, 6 Nov 2005 09:59:15 -0800
| Lines: 94
| Message-ID: <75D96551-11E7-4E14-A3C7->
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:11722
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
|
| Ah ok,
| Humm much like before, so doing it in vb was like this

and this works
| already thanks)
|
| Protected Sub DetailsView1_ItemInserted(ByVal Sender As Object, ByVal e
As
| System.Web.UI.WebControls.DetailsViewInsertedEvent Args) Handles
| DetailsView1.ItemInserted
|
| Me.Label1.Text = "We have recived your request, thank you."
| End Sub
|
| anyways it works, Thanks.
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Hi Tdar,
| >
| > Welcome to ASPNET newsgroup.
| > From your description , you're using the DetailsView control to perform
| > insert operation (set detaulMode as "Insert") and is wondering how to
make
| > a notify info or redirect the user to another page after successfully
| > inserted a new record, yes?
| >
| > As for this, I think we can consider using the DetailsView control's
| > ItemInserted event, this event is fired after a new record is
successfully
| > inserted. So we can just put or post processing code in the
ItemInserted
| > event handler like:
| >
| >
| > protected void DetailsView1_ItemInserted(object sender,
| > DetailsViewInsertedEventArgs e)
| > {
| > lblMessage.Text = "You've successfully inserted the new
record!";
| >
| > // or Response.Redirect( new page url...);
| > }
| >
| > Hope helps. Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure!
www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| > --------------------
| > | Thread-Topic: detailsview asp.net 2 and insert confirmation
| > | thread-index: AcXhaFP/Ng9qnjQuShCKLQA62gCXSQ==
| > | X-WBNR-Posting-Host: 24.73.223.27
| > | From: "=?Utf-8?B?VGRhclRkYXI=?=" <>
| > | Subject: detailsview asp.net 2 and insert confirmation
| > | Date: Fri, 4 Nov 2005 09:51:05 -0800
| > | Lines: 16
| > | Message-ID: <712A03A7-E91F-4EF8-B69A->
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet.webcontro ls:11684
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
| > |
| > | Hi,
| > | using a detailsview and sql, setting the details view to insert as
the
| > | primary
| > | view, after someone inserts the data they want to I would like to do
| > something
| > |
| > | eather A:
| > |
| > | have that page show "Your Request has been Processed"
| > |
| > | or B:
| > | Rediret them to another page
| > |
| > | after they click the insert button on the detailsview asp.net 2
control.
| > |
| > | Tdar
| > |
| > |
| >
| >
|