Microsoft
Software
Hardware
Network
Question : asp.net I need to know how to auto step or goto the next url or page after clicking on enter.
I have a form once the forms is filled in and the user clicks on the entry button, I need a way to programmatically goto the next page
as of now I have an Enter Button and below it I have a Image Button that says goto !~ nextpage
--------------
<asp:TemplateField ShowHeader="False">
<InsertItemTemplate><br />
<asp:Button ID="Button1" runat="server" CausesValidation="True"
CommandName="Insert" Text="Enter" />
<asp:Button ID="Button2" runat="server" CausesValidation="False"
CommandName="Cancel" Text="Reset" />
</InsertItemTemplate>
</asp:TemplateField>
</Fields>
</asp:DetailsView>
<br />
<br />
<asp:Hyperlink ID="Hyperlink1" Visible="true" ImageUrl="~/images1/insert
-pictures.
gif" Runat="server" NavigateUrl="~/User/defaul
t.aspx">
</asp:Hyperlink>
-------------
if put a response.redirect("~/image
s1/insert-
pictures.g
if") at the end of this sub....
this will not work
..I need to know where i can insert this somewhere at the end of the SqlDatasouce1 ???
Protected Sub SqlDataSource1_Selecting(B
yVal sender As Object, ByVal e As System.Web.UI.WebControls.
SqlDataSou
rceCommand
EventArgs)
Handles SqlDataSource1.Inserting
' Get a reference to the currently logged on user
Dim currentUser As MembershipUser = Membership.GetUser()
' Determine the currently logged on user's UserId value
Dim currentUserId As Guid = CType(currentUser.Provider
UserKey, Guid)
' Assign the currently logged on user's UserId to the @UserId parameter
e.Command.Parameters("@Use
rId").Valu
e = currentUserId
response.redirect("~/image
s1/insert-
pictures.g
if") ....
this will not work
End Sub
Answer : asp.net I need to know how to auto step or goto the next url or page after clicking on enter.
What you can do is make an event attached to the detailsview e.g. OnItemUpdated, there you can set
Response.Redirect("~/page.
aspx");
Random Solutions
RAID1 in MAX OSx
VMware FT for Intel Xeon 5650 Chipset on Dell R610
Get-Eventlog -> Export-CSV long eventmessages -> problem
VBA Excel - selecting Control Toolbox/Image
Virtualizing SQL
Dns issue logging onto domain
Trouble setting treeview width
MSiSCSI Timeout - Event ID 103 - 2003 server hanging connected to CX4-120
Quickr..How do I edit the tabs on the home page of my place? I want to add a tab
Exchange database backup failing with Arcserve v15