Solved

ONSERVERCLICK w/ .ascx page - ThanX !

Posted on 2004-04-21
2
458 Views
Last Modified: 2008-02-01
Hi Experts !

I've having problem w/ my ONSERVERCLICK in a <A> Tag.

In my test01.aspx page I reference a .ascx page.

The ONSERVERCLICK resides in the .ascx page like this:

 <A HREF="test01.aspx" ID="First" ONSERVERCLICK="ShowFirstPage" RUNAT="server">
 <IMG SRC="images/firstpage.gif" BORDER="0"></A>


The ShowFirstPage method is in the ascx.vb (code-behind).

  Public Sub ShowFirstPage(ByVal s As System.Object, ByVal e As System.EventArgs)
    Server.Transfer("test01.aspx")
  End Sub

On the bottom left corner fo the IE browser, when the cursor is
over the image it reads: javascript:_doPostBack('test01$First',")

Nothing happens when I click on the image, and it reads:
"Error on page"

How do I get the method ShowFirstPage to trigger when it's being clicked?

If I don't have the .ascx page, and the method is in the .aspx.vb page
it'll work fine.

Any ideas?

I really appeciate your help, and thanks in advance !
0
Comment
Question by:allanau20
2 Comments
 
LVL 5

Author Comment

by:allanau20
ID: 10890922
Hi Experts,

I'm requesting that this question be dropped.

I'll just just a image server control, and have the click event trigger from code-behind.

Thanks.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10891116
Closed, 500 points refunded.
modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
adding text to textboxes based on dropbox choice 13 42
maps stopped work unsure why 7 34
Why doesn't Google directions work? 6 42
Passport Expiry 3 44
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question