CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 12/18/2003 3:58:37 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 14 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"drago100" <>
NewsGroup User
programming hyperlink12/18/2003 3:58:37 PM

0

I'm new to ASP.Net. I would like to create a server control button 'Continue' which will execute some code then execute a hyperlink to a new web page. How do you program the 'Hyperlink' control into code using .Net Professional. I'm not that familiar to html. I do Visual Basic.
"icSimon" <>
NewsGroup User
Re: programming hyperlink12/18/2003 4:12:47 PM

0

The Hyperlink control does not have a server side click event but you could use a link button like this:


<asp:LinkButton id="LinkButton1" runat="server">Continue</asp:LinkButton>


then in your code behind


Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
'run your code here
'then
Server.Transfer("NextPage.aspx")

End Sub



Simon
"KChapman" <>
NewsGroup User
Re: programming hyperlink12/18/2003 4:20:38 PM

0

You can use asp.net redirect, instead of a hyperlink.
"icSimon" <>
NewsGroup User
Re: programming hyperlink12/18/2003 4:41:59 PM

0

Yes Response.Redirect("NextPage.aspx") would also work but Server.Transfer avoids an additional postback.

Useful comparison of the methods here http://www.ondotnet.com/pub/a/dotnet/2003/04/07/aspnetnav.html?page=last&x-showcontent=off

Simon

"drago100" <>
NewsGroup User
Re: programming hyperlink12/19/2003 1:20:18 PM

0

Thank you. Your idea works beautifully. Two web pages are now linked the way I needed them.
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:













authentication/authorization

authenticate with ldap

login works but bypass and get to "secure" areas just by typing in urls

can i use sliding expiration to session if i self-implemnted authentication?

signout/logout problem

immediate help in asp.net link button

user authentication using a group in vb.net

microsoft approved??

use existing login control with role and membership provider

serializationexception when casting context.user to my custom principal object

user.identity? shows after log out....

can we set the format of autogeneratedpassword password?

smart client vsto excel security issue

specify users table for membership provider

windows principle security working in c#.net windows application, but not on asp.net web application with c#.net as code behind

authentication

web.config - do sub-directories inherit permissions?

problem when creating user in microsoft visual web developer 2005

active directory authentication as well as impersonation

access based on roles not working

execute dll in medium trust

integrated windows authentication

what's this cookie name and its value?

trusted connections and windows authentication using domain groups

protect files from direct access from browser

advantage/disadvantage to storing membership/role info in a seperate db

this application was precompiled with personalization turned off

login page not rendering correctly

custom membershipprovider

site on network share

how to secure folders within application???

question about memberships and if i can us a login without db

questions about getuser function of a custom provider

connect to ms sql windows authentication through a constant domain user

can't redirect anonymous users to registration

can't download the file after install windows xp service pack 2

iidentity&iprinciple

profile vs session in terms of performance

custom membership provider exception problems

problem changing a users profile info

change role management database name

how to configure passwordrecoverycontrol to show password on screen instead of emailing it.

not able to write to a file using asp.net

objwebrequest and 401

4apps, 1membership *help!*

search class for provideruserkey

moving databases could not find the specified membership provider.

how to change the "failure text" in (asp:changepassword)

login control

using web.config to control downloads

   
  Privacy | Contact Us
All Times Are GMT