943,604 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 799
  • ASP.NET RSS
Apr 9th, 2008
0

Event Handler

Expand Post »
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 9:12 pm. Reason: No need for bold text...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ABDUL HAYEE is offline Offline
5 posts
since Jan 2005
Apr 9th, 2008
0

Re: Event Handler

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.
Team Colleague
Reputation Points: 14
Solved Threads: 29
Posting Whiz in Training
ericstenson is offline Offline
293 posts
since Dec 2007
Apr 10th, 2008
0

Re: Event Handler

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 9:13 pm. Reason: No need for bold text
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ABDUL HAYEE is offline Offline
5 posts
since Jan 2005
Apr 10th, 2008
0

Re: Event Handler

no, you turn the image into an imagebutton. it isn't complicated, crude or difficult
Team Colleague
Reputation Points: 14
Solved Threads: 29
Posting Whiz in Training
ericstenson is offline Offline
293 posts
since Dec 2007
Apr 11th, 2008
0

Re: Event Handler

it doesnt sound like you need anything more complicated then a image wrapped in a link to your page.

ASP.NET Syntax (Toggle Plain Text)
  1. <a href="homepage2"><img /></a>
Reputation Points: 23
Solved Threads: 16
Posting Whiz in Training
plazmo is offline Offline
206 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Textarea Value
Next Thread in ASP.NET Forum Timeline: Object reference not set to an instance of an object.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC