473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Codebehind stuff..

Is there any way to call a custom made "codebehind" function from
javascript?

Thx.
Nov 17 '05 #1
8 1011
Max
Are you seriously asking if client side script can call a method that has
been compiled on the server? LOL !! You can only use what's on the page --
what's sent to the client man!

-M
"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Is there any way to call a custom made "codebehind" function from
javascript?

Thx.

Nov 17 '05 #2
Ok well, what I need to do is to generate a click event from a Label object.
But can't find one on the server side. Any hint?
"Max" <ma*****@portvista.com> a écrit dans le message de
news:ZS********************@twister.tampabay.rr.co m...
Are you seriously asking if client side script can call a method that has
been compiled on the server? LOL !! You can only use what's on the page -- what's sent to the client man!

-M
"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Is there any way to call a custom made "codebehind" function from
javascript?

Thx.


Nov 17 '05 #3
you need to run the object as a server control with the runat="server"
tag... to get a codebehind method to fire with an event on an object on the
client side..
"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Ok well, what I need to do is to generate a click event from a Label object. But can't find one on the server side. Any hint?
"Max" <ma*****@portvista.com> a écrit dans le message de
news:ZS********************@twister.tampabay.rr.co m...
Are you seriously asking if client side script can call a method that has been compiled on the server? LOL !! You can only use what's on the

page --
what's sent to the client man!

-M
"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Is there any way to call a custom made "codebehind" function from
javascript?

Thx.



Nov 17 '05 #4
Don't think your going to find a Click event for a label. Use a button and
change style so it appears as if it is a label. You can set and read it's
text property just as if it were a label.
Nov 17 '05 #5
How about using a Panel instead of a label? A Panel renders a div tag in the
page, which has a click event.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Ok well, what I need to do is to generate a click event from a Label object. But can't find one on the server side. Any hint?
"Max" <ma*****@portvista.com> a écrit dans le message de
news:ZS********************@twister.tampabay.rr.co m...
Are you seriously asking if client side script can call a method that has been compiled on the server? LOL !! You can only use what's on the

page --
what's sent to the client man!

-M
"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Is there any way to call a custom made "codebehind" function from
javascript?

Thx.



Nov 17 '05 #6
Max
Sorry I'm not thinking as a VS.NET developer. I'm used to coding javascript
by hand! LOL!

-M

"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Is there any way to call a custom made "codebehind" function from
javascript?

Thx.

Nov 17 '05 #7
Thx for the feedback guys!

"Max" <ma*****@portvista.com> a écrit dans le message de
news:zF********************@twister.tampabay.rr.co m...
Sorry I'm not thinking as a VS.NET developer. I'm used to coding javascript by hand! LOL!

-M

"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
> Is there any way to call a custom made "codebehind" function from
> javascript?
>
> Thx.
>


Nov 17 '05 #8
Try a linkbutton.

"+The_Taco+" <do***********@dessausoprin.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Is there any way to call a custom made "codebehind" function from
javascript?

Thx.

Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Graham Allwood | last post by:
I'm reading the Essential ASP.NET book by Fritz onion and he says that when VS.NET creates a new .aspx page for you is uses the codebehind attribute on the Page directive rather than the src...
1
by: Maurice Walmsley | last post by:
hello and thanks I am as green as mold when it comes to asp.net, so please bear with me. I am trying to get an asp.net page with a webform to work using codebehind. My class/routines work...
12
by: A.M | last post by:
Hi, Using VS.NET 2003, If i use SRC page attribute instead of CodeBehind, do i still have intelisence and generally IDE support for that? Thanks, Ali
3
by: nevets2001uk | last post by:
Hi. I've just started my second ASP.NET (VB) app and I'm using codebehind this time. I'm not using visual studio but am instead coding it all in notepad (HTML, ASP.NET and CSS) I'm trying to...
12
by: Karl Hungus | last post by:
If I use a code behind class for an aspx page, what is the best way to get data from the codebehind class into my aspx page? I know about databinding, but is there a more basic way of just...
1
by: Jon | last post by:
hi, "The type or namespace of 'Repeater1' could not be found..." when I try and bind a repeater in the Page_Load event using Repeater1.DataSource = table etc. It's all basic stuff copied from...
2
by: N. Demos | last post by:
I have a user control with code behind of which two instances are created/declared in my aspx page. The aspx page has code behind also, as I need to access methods of the usercontrols on page...
3
by: needin4mation | last post by:
Hi, I have my .aspx page and its .cs codebehind page that Visual Studio created. What if I want to create a function or class in another .cs page but want to use it in the codebehind page. How...
10
by: Benton | last post by:
Hi there, I have a UserControl with a couple of textboxes and a couple of buttons ("Save" and "Cancel"). The Click event for this buttons is in the UserControl's codebehind of course, so here's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.