Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-02-2012, 07:03 PM   PM User | #1
vorl
Regular Coder

 
Join Date: Feb 2005
Posts: 190
Thanks: 25
Thanked 0 Times in 0 Posts
vorl is an unknown quantity at this point
Extract and return string from ClientID

Hi there

I am relatively new to asp.net so please excuse my ignorence. I would know how to do this in php so any help is really appreciated.

In my ascx page, I am currently retrieving values using <%= lblid.ClientID %>

The values that get generated are for example ucBox0_ctl01out_lblid, ucBox0_ctl02out_lblid, ucBox0_ctl03out_lblid etc.

What I want is to actually return values like this:

ucBox0_ctl01out_lblid to ucBox0_ctl00
ucBox0_ctl02out_lblid to ucBox0_ctl01
ucBox0_ctl03out_lblid to ucBox0_ctl02
etc...

So the question is how do I extract the data I need and return it in the format I want?

I was thinking to remove "out_lblid", then extract 01, minus 1 then append it back to the string. Problem is, I have no idea how to do this is asp.net?

Thanks for any help!

Last edited by vorl; 09-02-2012 at 07:06 PM..
vorl is offline   Reply With Quote
Old 09-04-2012, 05:38 PM   PM User | #2
vorl
Regular Coder

 
Join Date: Feb 2005
Posts: 190
Thanks: 25
Thanked 0 Times in 0 Posts
vorl is an unknown quantity at this point
SOLVED using jQuery:

http://www.codingforums.com/showthread.php?t=272184

Thanks anyway
vorl is offline   Reply With Quote
Old 09-12-2012, 05:54 PM   PM User | #3
vnit969
New to the CF scene

 
Join Date: Sep 2012
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
vnit969 is an unknown quantity at this point
you can read posts below to resolve the problem of your
http://stackoverflow.com/questions/8...-in-javascript
vnit969 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Advertisement
Log in to turn off these ads.