User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 374,179 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,456 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 313 | Replies: 4
Reply
Join Date: Jan 2005
Posts: 5
Reputation: ABDUL HAYEE is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ABDUL HAYEE ABDUL HAYEE is offline Offline
Newbie Poster

Event Handler

  #1  
Apr 9th, 2008
Hello,
I am facing problem with event handling.
Most elementary used to be …………. “Click any where on the Form “

But the problem is , that with VB.NET , the Page_Load , form1_Load , MyBase_Load , Me_Load ……………………. None of these events has an Onclick event . Every thing has to be handled through a button_Click event.

I an interested , that single click , directly on the home page , which is an JPG image , may direct me to another page of the site , ( say Login ) .

Please help me with this event handling problem , or suggest some alternative for redirecting without a link button.

Thanks.

Abdul Hayee.
Last edited by peter_budo : Apr 11th, 2008 at 8:12 pm. Reason: No need for bold text...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 286
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Event Handler

  #2  
Apr 9th, 2008
If you homepage is simply a jped, create an image button and set the image url as your jpg. you can also use an image map and map different regions to different pages.
--
"Dummy."
Reply With Quote  
Join Date: Jan 2005
Posts: 5
Reputation: ABDUL HAYEE is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ABDUL HAYEE ABDUL HAYEE is offline Offline
Newbie Poster

Re: Event Handler

  #3  
Apr 10th, 2008
Hello !
Thanks for reply .
I just want , to work without any controls ..............

Just click any where on the Form/Page , that is what a web page is.

A solution came to my mind.
1. make a large button of the From size ,
2. make the property transparent.
3. add a button_click event.

But it looks too crude .
There must be some nicer way

Clicking any where is so common a feature .
I do not know why it is not on web sites.

I am still searching on other engines.
Let me know if you find one.

Regards,
Abdul Hayee.
Last edited by peter_budo : Apr 11th, 2008 at 8:13 pm. Reason: No need for bold text
Reply With Quote  
Join Date: Dec 2007
Posts: 286
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Event Handler

  #4  
Apr 10th, 2008
no, you turn the image into an imagebutton. it isn't complicated, crude or difficult
--
"Dummy."
Reply With Quote  
Join Date: Aug 2005
Location: Ohio
Posts: 204
Reputation: plazmo is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: Event Handler

  #5  
Apr 11th, 2008
it doesnt sound like you need anything more complicated then a image wrapped in a link to your page.

<a href="homepage2"><img /></a>
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 4:35 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC