473,406 Members | 2,356 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,406 software developers and data experts.

Client-side scripting on server control

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
Nov 19 '05 #1
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

Nov 19 '05 #2

"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


Nov 19 '05 #3
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



Nov 19 '05 #4
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
>>
>>
>
>



Nov 19 '05 #5
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
>>
>>
>
>



Nov 19 '05 #6
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
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 19 '05 #7
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
>>
>>
>
>



Nov 19 '05 #8

"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
>>
>>
>
>



Nov 19 '05 #9
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


Nov 19 '05 #10

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

Similar topics

1
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...
2
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...
5
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...
11
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...
2
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....
11
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...
1
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
3
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...
4
MMcCarthy
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...
11
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...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
agi2029
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,...
0
isladogs
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...

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.