Combine JavaScript and VB Codebehind in the same code

  • Thread starter Thread starter GL
  • Start date Start date
G

GL

Hi,

I am desperatly seeking a way to keep my current working jscript
event-handling routines (e.g. onmouseover etc), while sending onclick
event to be handled by a routine in the codebehind of the aspx form.

No matter what I tried, no matter how much I looked in the Internet,
it did not worked.

Is there a fundemental problem in this?
Any ideas? Please?

Thanks !!
GL
 
Hi GL,
That should normaly not give any problem, you can paste the javascript code
into your aspx page or nicer, use the attributes methode into your aspx.vb
class.

(You can not use text you fill in labels and things like that, but data that
you put in a textbox using javascript will be posted back also).

\\\
Private sub onload ....................................................
TextBox1.Attributes("onblur") = "javascript:alert('Hello! Focus lost from
text box!!');"
end sub
///
I am desperatly seeking a way to keep my current working jscript
event-handling routines (e.g. onmouseover etc), while sending onclick
event to be handled by a routine in the codebehind of the aspx form.

I hope this helps a little bit?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top