Ask a Question related to ASP.NET General, Design and Development.
-
exshige #1
Calling a function in codebehind from the html side of the aspx?
I read from some book that you can actually on any tag in the html page put
a onClick or something and assign it with the sub/function name that is in
the codebehind. I tried but it say name undefined.
I am trying to make a rollover effect using codebehind. I have a <a> tag
that onmouseover will call a sub in codebehind to change a <asp:image> image
url.
How come i can see a lot of "on" events of the <a> in the html side but when
i declare it in the codebehind and i can only access only a few of them?
thanks.
exshige Guest
-
Calling an Ascx from w/i Aspx codebehind
I have an aspx that I would like to "dynamically" display a user control on. When the user clicks (LinkButton) on "Find Existing Trip" within the... -
Reach UserControl from ASPX codebehind?
Hi, I created a usercontrol and dropped it onto my aspx... But from CodeBehind of that aspx I can't reach to that UserControl...I just want to... -
Help! Having trouble calling codebehind function from repeater results!
Hi, I have a data repeater that is returning a list of events. One of the things I want to do is give the user a way to edit or delete an event.... -
Controls with a client side onLoad function or seting a cursor server side
Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or... -
textbox value not getting to the asp.vb codebehind code from the html layer.
Hi, do you set the textbox to default value in page_load. if so use Page.IspPostback to disable this setting on postback. Natty Gur, CTO... -
Steve C. Orr, MCSD #2
Re: Calling a function in codebehind from the html side of the aspx?
It seems you misinterpreted the book that you read.
You don't want the page to post back every time the mouse moves over an
image. The performance would be terrible.
You want to call client side code such as javascript to do this, not your
code behind. And yes, you would use the (client side) onMouseOver event to
call your javascript function.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"exshige" <exshige@yahoo.no.spam.com> wrote in message
news:3f0a3df7$1_1@news.tm.net.my...put> I read from some book that you can actually on any tag in the html pageimage> a onClick or something and assign it with the sub/function name that is in
> the codebehind. I tried but it say name undefined.
>
> I am trying to make a rollover effect using codebehind. I have a <a> tag
> that onmouseover will call a sub in codebehind to change a <asp:image>when> url.
>
> How come i can see a lot of "on" events of the <a> in the html side but> i declare it in the codebehind and i can only access only a few of them?
>
> thanks.
>
>
Steve C. Orr, MCSD Guest
-
exshige #3
Re: Calling a function in codebehind from the html side of the aspx?
hmm.. thanks.. i actually did thought of using js to do that like the old
days.. but again, i thought maybe i could create something that is totally
vb based... i tried to put the code from codebehind together with the html
page under the script tag but it won't let me reference to other controls on
the page inside that sub or function.
i get what u mean.. well, i guess i have no choice but to use js.
thanks.
"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
news:#XsllARRDHA.2676@TK2MSFTNGP10.phx.gbl...to> It seems you misinterpreted the book that you read.
>
> You don't want the page to post back every time the mouse moves over an
> image. The performance would be terrible.
>
> You want to call client side code such as javascript to do this, not your
> code behind. And yes, you would use the (client side) onMouseOver eventin> call your javascript function.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> [url]http://Steve.Orr.net[/url]
>
>
> "exshige" <exshige@yahoo.no.spam.com> wrote in message
> news:3f0a3df7$1_1@news.tm.net.my...> put> > I read from some book that you can actually on any tag in the html page> > a onClick or something and assign it with the sub/function name that isthem?> image> > the codebehind. I tried but it say name undefined.
> >
> > I am trying to make a rollover effect using codebehind. I have a <a> tag
> > that onmouseover will call a sub in codebehind to change a <asp:image>> when> > url.
> >
> > How come i can see a lot of "on" events of the <a> in the html side but> > i declare it in the codebehind and i can only access only a few of>> >
> > thanks.
> >
> >
>
exshige Guest



Reply With Quote

