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: 20 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:













creating colection for object

image dimensions

can you run old asp and .net in tandem?

combining web.config files

problems with reading ansi text file...

ssl page issues

sqlcommand error

syndicationfeed and gmail feed atom 3.0 problem

pet shop microsoft

sending email to various users when date is due (auto)

ppc engine?

menu building from file system

how to use a custom class?

getting server's local time

how to save profile properties in cookie?

recording voice in asp.net 2.0 application

lf advice to write an app that displays data changed weekly

making a tag using &

panel height (pls read on)

saving an email copy when sending mail using mailmessage

could not load the assembly 'app_web_dqk773cr'. make sure that it is compiled before accessing the page.

how to check for identical values in a column and join them?

using a wildcard mapping for integrating asp.net security with classic asp…

help c# snippet. causing a global error.

simple script to login

capture date and time

selectsinglenode with namespacemanager

zipping file with asp.net c#

registration with email confirmation page problem

setting up a .net web server

slideshow in asp.net web matrix starter kit

updating database

unique filtered data by logged on user

asp.net to html

i am not allowed to change the names of my server controls!! :(

help getting started

problems with ascx file not displaying its info

is possible to use menu bar written in javascript in asp.net?

simple input form

datagrid hyperlinkcolumn

need help with .net remoting

anyone have an idea....

financial.net

html and javascript inside the c# function

accessing a sub with parameters from an imagebutton

added upload button dynamically

system.unauthorizedaccessexception: access is denied

google adsense code is not working in .aspx

c# with asp.net

if textbox1.text = "" then

   
  Privacy | Contact Us
All Times Are GMT