EVENTTARGET EVENTARGUMENT RegisterHiddenField

  • Thread starter Thread starter MeDhanush
  • Start date Start date
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
 
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
 
Back
Top