Hi all
Is it possible to have client-side scripts executed from server controls, I
have a BulletList control and when they click on an item in the list I need
some javascript to be executed.
Thanks
Kev 9 1091
Kev,
You need to attach client-side events to the control. You need to understand
what HTML elements the control renders as and how to get to the elements
from server code.
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message
news:da**********@newsfeed.th.ifl.net... Hi all
Is it possible to have client-side scripts executed from server controls,
I have a BulletList control and when they click on an item in the list I
need some javascript to be executed.
Thanks Kev
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Kev,
You need to attach client-side events to the control. You need to understand what HTML elements the control renders as and how to get to the elements from server code.
Do you have any examples or guidance for me on achieving that?
Thanks
Kev "Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... Hi all
Is it possible to have client-side scripts executed from server controls, I have a BulletList control and when they click on an item in the list I need some javascript to be executed.
Thanks Kev
What is a BulletList control? Is it your custom control?
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message
news:da**********@newsfeed.th.ifl.net... "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Kev,
You need to attach client-side events to the control. You need to understand what HTML elements the control renders as and how to get to the elements from server code.
Do you have any examples or guidance for me on achieving that?
Thanks Kev
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... Hi all
Is it possible to have client-side scripts executed from server
controls, I have a BulletList control and when they click on an item in the list I need some javascript to be executed.
Thanks Kev
No, it's a v2.0 control.
Kev
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ef**************@TK2MSFTNGP14.phx.gbl... What is a BulletList control? Is it your custom control?
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... > Kev, > > You need to attach client-side events to the control. You need to > understand > what HTML elements the control renders as and how to get to the > elements > from server code.
Do you have any examples or guidance for me on achieving that?
Thanks Kev
> > "Mantorok" <no**@tiscali.co.uk> wrote in message > news:da**********@newsfeed.th.ifl.net... >> Hi all >> >> Is it possible to have client-side scripts executed from server controls, > I >> have a BulletList control and when they click on an item in the list I > need >> some javascript to be executed. >> >> Thanks >> Kev >> >> > >
Look at Attributes property. You need to know what client event you want to
handle and set the attribute for this event to the name of a javascript
function that will handle it.:
myList.Attributes["<client event>"]="handleTheEvent();";
Again, you need to find out what html tag the BulletedList is rendered as
and what event you need to handle for this tag.
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message
news:da**********@newsfeed.th.ifl.net... No, it's a v2.0 control.
Kev
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ef**************@TK2MSFTNGP14.phx.gbl... What is a BulletList control? Is it your custom control?
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... > Kev, > > You need to attach client-side events to the control. You need to > understand > what HTML elements the control renders as and how to get to the > elements > from server code.
Do you have any examples or guidance for me on achieving that?
Thanks Kev
> > "Mantorok" <no**@tiscali.co.uk> wrote in message > news:da**********@newsfeed.th.ifl.net... >> Hi all >> >> Is it possible to have client-side scripts executed from server
controls, > I >> have a BulletList control and when they click on an item in the list
I > need >> some javascript to be executed. >> >> Thanks >> Kev >> >> > >
Aha, thank you, i'll give that a go.
Kev
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Op**************@TK2MSFTNGP10.phx.gbl... Look at Attributes property. You need to know what client event you want to handle and set the attribute for this event to the name of a javascript function that will handle it.:
myList.Attributes["<client event>"]="handleTheEvent();";
Again, you need to find out what html tag the BulletedList is rendered as and what event you need to handle for this tag.
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... No, it's a v2.0 control.
Kev
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ef**************@TK2MSFTNGP14.phx.gbl... > What is a BulletList control? Is it your custom control? > > Eliyahu > > "Mantorok" <no**@tiscali.co.uk> wrote in message > news:da**********@newsfeed.th.ifl.net... >> >> "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message >> news:%2****************@tk2msftngp13.phx.gbl... >> > Kev, >> > >> > You need to attach client-side events to the control. You need to >> > understand >> > what HTML elements the control renders as and how to get to the >> > elements >> > from server code. >> >> Do you have any examples or guidance for me on achieving that? >> >> Thanks >> Kev >> >> > >> > "Mantorok" <no**@tiscali.co.uk> wrote in message >> > news:da**********@newsfeed.th.ifl.net... >> >> Hi all >> >> >> >> Is it possible to have client-side scripts executed from server > controls, >> > I >> >> have a BulletList control and when they click on an item in the >> >> list I >> > need >> >> some javascript to be executed. >> >> >> >> Thanks >> >> Kev >> >> >> >> >> > >> > >> >> > >
re: it's a v2.0 control.
Is it ? I can't find it in my 2.0 documentation,
nor on the online msdn2 docs. Would you post an online reference ?
I know it's a Display mode for the <asp:ValidationSummary control :
DisplayMode="BulletList | List ( but that works in v 1.1, too )
or, more properly, it's one of the Members of the DisplayMode
Enumeration ( the others are "List" and "SingleParagraph ).
I thought it could be a control which Dino Esposito authored : http://www.code-magazine.com/article...0309051&page=2
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... No, it's a v2.0 control.
Kev
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ef**************@TK2MSFTNGP14.phx.gbl... What is a BulletList control? Is it your custom control?
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... "Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... > Kev, > > You need to attach client-side events to the control. You need to > understand > what HTML elements the control renders as and how to get to the elements > from server code.
Do you have any examples or guidance for me on achieving that?
Thanks Kev
> > "Mantorok" <no**@tiscali.co.uk> wrote in message > news:da**********@newsfeed.th.ifl.net... >> Hi all >> >> Is it possible to have client-side scripts executed from server
controls, > I >> have a BulletList control and when they click on an item in the list I > need >> some javascript to be executed. >> >> Thanks >> Kev >> >> > >
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e3**************@TK2MSFTNGP14.phx.gbl... re: it's a v2.0 control. Is it ? I can't find it in my 2.0 documentation, nor on the online msdn2 docs. Would you post an online reference ?
I know it's a Display mode for the <asp:ValidationSummary control : DisplayMode="BulletList | List ( but that works in v 1.1, too ) or, more properly, it's one of the Members of the DisplayMode Enumeration ( the others are "List" and "SingleParagraph ).
I thought it could be a control which Dino Esposito authored : http://www.code-magazine.com/article...0309051&page=2
Oops, I meant BulletedList....
Kev
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... ======================
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... No, it's a v2.0 control.
Kev
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ef**************@TK2MSFTNGP14.phx.gbl... What is a BulletList control? Is it your custom control?
Eliyahu
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net...
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl... > Kev, > > You need to attach client-side events to the control. You need to > understand > what HTML elements the control renders as and how to get to the > elements > from server code.
Do you have any examples or guidance for me on achieving that?
Thanks Kev
> > "Mantorok" <no**@tiscali.co.uk> wrote in message > news:da**********@newsfeed.th.ifl.net... >> Hi all >> >> Is it possible to have client-side scripts executed from server controls, > I >> have a BulletList control and when they click on an item in the list >> I > need >> some javascript to be executed. >> >> Thanks >> Kev >> >> > >
Ahh, the mystery unravels!
I was scratching my head on that one... ;-)
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
"Mantorok" <no**@tiscali.co.uk> wrote in message news:da**********@newsfeed.th.ifl.net... "Juan T. Llibre" <no***********@nowhere.com> wrote in message news:e3**************@TK2MSFTNGP14.phx.gbl... re: it's a v2.0 control.
Is it ? I can't find it in my 2.0 documentation, nor on the online msdn2 docs. Would you post an online reference ?
I know it's a Display mode for the <asp:ValidationSummary control : DisplayMode="BulletList | List ( but that works in v 1.1, too ) or, more properly, it's one of the Members of the DisplayMode Enumeration ( the others are "List" and "SingleParagraph ).
I thought it could be a control which Dino Esposito authored : http://www.code-magazine.com/article...0309051&page=2
Oops, I meant BulletedList....
Kev This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Justin Stockton |
last post by:
I recently upgraded from ActivePython 2.2.2 to ActivePython 2.3.2 and
I'm running into an issue importing the win32com.client module.
Before installing the new version, I made sure to properly...
|
by: Rhino |
last post by:
I am trying to verify that I correctly understand something I saw in the DB2
Information Center.
I am running DB2 Personal Edition V8.2.1 on Windows. I came across the
following in the Info...
|
by: Paul H |
last post by:
How do you folks get a reliable and complete brief of what is required
before development starts?
I am forever going back to a client once a project has started saying "Hang
on, now that I've...
|
by: pshindle |
last post by:
We have several machines currently running the DB2 V7 Run-time Client
that we would like to actually be running the App Dev Client. To
'upgrade' (within the same version) this client software can...
|
by: J Huntley Palmer |
last post by:
I am having a horrific time integrating uw-imap's c-client for imap
support in php. The problem is a whole bunch of "Text relocation remains
referenced against symbol" errors during
linking....
|
by: Wayne |
last post by:
I am a one man enterprise and have been asked by a prospective client
what happens to their database regarding ongoing changes etc if I get
hit by a bus.
Obviously my databases are distributed...
|
by: WebServiceSecurity |
last post by:
The issue involves the following technologies: -
1. .NET 2.0 Framework
2. WSE2.0 (WS-Security)
3. X.509 certificates
4. BEA Weblogic 8.1.5
|
by: rjha94 |
last post by:
Hi
I just installed the runtime client on my windows machine. when i go
inside the SQLLIB\bin folder i can see db2.exe. is it possible to use
this db2 bundled with runtime client for command line...
|
by: MMcCarthy |
last post by:
http://bytes.com/images/howtos/projectscope_blocks.jpgAs a freelance IT consultant for over 10 years, I’ve come to appreciate well defined project scopes. A project scope is a common understanding...
|
by: Bill Davy |
last post by:
I am trying to edit Contacts in Outlook. This is so I can transfer numbers
from my address book which is an Excel spreadsheet to my mobile phone. I
came across the following snippet of code which...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |