EVENTTARGET EVENTARGUMENT RegisterHiddenField

M

MeDhanush

Can sb pl tell me

When & how do you use
i) RegisterHiddenField()
ii) Hidden field EVENTTARGET
iii) Hidden fieldEVENTARGUMENT
I noticed ii) and iii) in the form.

Any docs pointing to this info

TIA
Kishore
 
N

Natty Gur

Hi,

RegisterHiddenField can be used from code behind to dynamically add
hidden field to the HTML form. You can use it to save data that will be
send to server.

EVENTTARGET and EVENTARGUMENT are good samples. asp.net use them to hold
the name of the control that is generating post back and to send
argument, usually the name of event if control got more then one server
side event. Java script fills those fields and ASP.NET knows which
control event to rise.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top