Hello Arun,
   
  Thanks very much for your warm regards.
  It is really my pleasure if this help is of such a worth to you.
   
  As you asked for it, I'm from Pakistan.
   
  And for your information __EVENTTARGET will contain the name of  any server 
control which caused postback.
   
  Regards
  Shahzad

Arun Arora <[EMAIL PROTECTED]> wrote:
          Hello Shahzad Bhai,

THANKS A MILLION, TRILLION, i cannot thank you enough but THANKS A TON. You 
have saved me a lot of lines of code.....it works like a dream....perfect!!!

so __EVENTTARGET is fired for all the server controls on which the Autopostback 
is enabled?? or is it only for the listitem type of controls??

Where are you from Shahzad Bhai?

Thanks again and warm regards,

Arun Arora

muhammad shahzad <[EMAIL PROTECTED]> wrote:
Hello Arun,

I'm very much clear about your problem now and i have devised a solution for 
you and have posted at my blog so other people will also be able to get benefit 
from it. 

Please try it and let me know if it works in your case 

http://codesmithdotnet.blogspot.com/2006/09/which-control-caused-postback-in.html

Regards
Shahzad

Arun Arora <[EMAIL PROTECTED]> wrote:
Hello Shahzad Bhai,

Shukriya for the prompt reply,

but this.checkboxlist1.selectedvalue gives the value of the first checkbox 
only. the value does not change if you check the checkbox after that...
my problem is that...... i want to insert or remove an entry from a table that 
pertains to the particular checkbox that i checked......suppose i have 5 items 
in my checkboxlist and i have enabled autopostback.....if i check the 2nd 
checkbox i wnat only this value which is the current value to be inserted or 
removed from the table.......after this if i check 3rd one...then i want that 
value to be inserted or removed from the table......

i hope i have been able to explain my problem!!

i await your comments upon this.

Thank you and AllahHafiz

Arun Arora

muhammad shahzad <[EMAIL PROTECTED]> wrote:
Hi Arun,

Why don't you try this

this.CheckBoxList1.SelectedValue

Regards
Shahzad

Arun <[EMAIL PROTECTED]> wrote:
Hi, All,

I am having problem with the checkboxlist in my project.....i have a 
checkboxlist and i have enables autopostback on it.....i want to get 
the selectedvalue of the checkbox that caused postback.....i am not 
able to get it.

please help!!!

Thanks in advance!

Arun Arora

Make your life successful.
http://aboutsuccess.blogspot.com/

All About Microsoft.Net Technologies! 
http://codesmithdotnet.blogspot.com/

Send instant messages to your online friends http://uk.messenger.yahoo.com 

---------------------------------
Want to be your own boss? Learn how on Yahoo! Small Business. 

Make your life successful.
http://aboutsuccess.blogspot.com/

All About Microsoft.Net Technologies! 
http://codesmithdotnet.blogspot.com/

Send instant messages to your online friends http://uk.messenger.yahoo.com 

[Non-text portions of this message have been removed]


---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2ยข/min or less.

[Non-text portions of this message have been removed]



         


Make your life successful.
http://aboutsuccess.blogspot.com/
   
  All About Microsoft.Net Technologies! 
http://codesmithdotnet.blogspot.com/


 Send instant messages to your online friends http://uk.messenger.yahoo.com 

[Non-text portions of this message have been removed]





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNet2/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AspNet2/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to