Hi.
I am creating a custom control that uses the RegisterHiddenField method to
insert a hidden field on a page. When I tried to see the value of the hidden
field on a trace, I noticed that it does not appear on the Control Tree
section of the trace. I put a normal hidden field on an aspx page and set it
to run as a server control, and the control appears at the trace info. I
have two questions about this:
1) Only server controls can appear at the trace page? Is it possible to make
regular html controls appear at the trace page?
2) Can the RegisterHiddenField method creates a server hidden field, in
order to make it appears at the trace page?
Also, I tried to inspect the value of the hidden field using Request.Params
in the OnInit event of my custom control. It always returns me "", though I
change the value of the field in Javascript. How can I read the value of the
hidden field correctly in my custom control?
TIA,
Erik Cruz 4 1779
> 1) Only server controls can appear at the trace page? Is it possible to
make regular html controls appear at the trace page?
RegisterHiddenField doesn't create a Control. It adds HTML to the page that
renders a hidden form field on the client.
2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page?
No. The server side is unawarae of any non-Control HTML in the page.
How can I read the value of the hidden field correctly in my custom control?
Request.Form("hiddenFormFieldName")
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Erik Cruz" <er******************@antares.com.br> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl... Hi.
I am creating a custom control that uses the RegisterHiddenField method to insert a hidden field on a page. When I tried to see the value of the
hidden field on a trace, I noticed that it does not appear on the Control Tree section of the trace. I put a normal hidden field on an aspx page and set
it to run as a server control, and the control appears at the trace info. I have two questions about this:
1) Only server controls can appear at the trace page? Is it possible to
make regular html controls appear at the trace page? 2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page?
Also, I tried to inspect the value of the hidden field using
Request.Params in the OnInit event of my custom control. It always returns me "", though
I change the value of the field in Javascript. How can I read the value of
the hidden field correctly in my custom control?
TIA, Erik Cruz
> 1) Only server controls can appear at the trace page? Is it possible to
make regular html controls appear at the trace page?
RegisterHiddenField doesn't create a Control. It adds HTML to the page that
renders a hidden form field on the client.
2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page?
No. The server side is unawarae of any non-Control HTML in the page.
How can I read the value of the hidden field correctly in my custom control?
Request.Form("hiddenFormFieldName")
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Erik Cruz" <er******************@antares.com.br> wrote in message
news:OS**************@TK2MSFTNGP12.phx.gbl... Hi.
I am creating a custom control that uses the RegisterHiddenField method to insert a hidden field on a page. When I tried to see the value of the
hidden field on a trace, I noticed that it does not appear on the Control Tree section of the trace. I put a normal hidden field on an aspx page and set
it to run as a server control, and the control appears at the trace info. I have two questions about this:
1) Only server controls can appear at the trace page? Is it possible to
make regular html controls appear at the trace page? 2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page?
Also, I tried to inspect the value of the hidden field using
Request.Params in the OnInit event of my custom control. It always returns me "", though
I change the value of the field in Javascript. How can I read the value of
the hidden field correctly in my custom control?
TIA, Erik Cruz
Hi Kevin.
I could successfuly read the contents of the hidden field using the OnInit
event of my custom control when clicking a button for example. But if I
'refresh' the page I loose the value. What is the difference between
refreshing a page and clicking a button? Aren't they both a submit?
TIA,
Erik Cruz
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eD**************@tk2msftngp13.phx.gbl... 1) Only server controls can appear at the trace page? Is it possible to make regular html controls appear at the trace page?
RegisterHiddenField doesn't create a Control. It adds HTML to the page
that renders a hidden form field on the client.
2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page? No. The server side is unawarae of any non-Control HTML in the page.
How can I read the value of the hidden field correctly in my custom control?
Request.Form("hiddenFormFieldName")
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Erik Cruz" <er******************@antares.com.br> wrote in message news:OS**************@TK2MSFTNGP12.phx.gbl... Hi.
I am creating a custom control that uses the RegisterHiddenField method
to insert a hidden field on a page. When I tried to see the value of the hidden field on a trace, I noticed that it does not appear on the Control Tree section of the trace. I put a normal hidden field on an aspx page and
set it to run as a server control, and the control appears at the trace info. I have two questions about this:
1) Only server controls can appear at the trace page? Is it possible to make regular html controls appear at the trace page? 2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page?
Also, I tried to inspect the value of the hidden field using Request.Params in the OnInit event of my custom control. It always returns me "",
though I change the value of the field in Javascript. How can I read the value of the hidden field correctly in my custom control?
TIA, Erik Cruz
Hi Kevin.
I could successfuly read the contents of the hidden field using the OnInit
event of my custom control when clicking a button for example. But if I
'refresh' the page I loose the value. What is the difference between
refreshing a page and clicking a button? Aren't they both a submit?
TIA,
Erik Cruz
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eD**************@tk2msftngp13.phx.gbl... 1) Only server controls can appear at the trace page? Is it possible to make regular html controls appear at the trace page?
RegisterHiddenField doesn't create a Control. It adds HTML to the page
that renders a hidden form field on the client.
2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page? No. The server side is unawarae of any non-Control HTML in the page.
How can I read the value of the hidden field correctly in my custom control?
Request.Form("hiddenFormFieldName")
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Erik Cruz" <er******************@antares.com.br> wrote in message news:OS**************@TK2MSFTNGP12.phx.gbl... Hi.
I am creating a custom control that uses the RegisterHiddenField method
to insert a hidden field on a page. When I tried to see the value of the hidden field on a trace, I noticed that it does not appear on the Control Tree section of the trace. I put a normal hidden field on an aspx page and
set it to run as a server control, and the control appears at the trace info. I have two questions about this:
1) Only server controls can appear at the trace page? Is it possible to make regular html controls appear at the trace page? 2) Can the RegisterHiddenField method creates a server hidden field, in order to make it appears at the trace page?
Also, I tried to inspect the value of the hidden field using Request.Params in the OnInit event of my custom control. It always returns me "",
though I change the value of the field in Javascript. How can I read the value of the hidden field correctly in my custom control?
TIA, Erik Cruz
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Matthew Wieder |
last post by:
Hi - I wanted to capture the enter button on a form since I have a
datagrid with the first column being a delete button and if someone hits
enter it deletes the first record. I coded:
private...
|
by: MeDhanush |
last post by:
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...
|
by: Erik Cruz |
last post by:
Hi.
I am creating a custom control that uses the RegisterHiddenField method to
insert a hidden field on a page. When I tried to see the value of the hidden
field on a trace, I noticed that it...
|
by: Francis |
last post by:
Hi all,
I am writing a .cs component that sets RegisterHiddenField on the
server side and generates javascript to execute on the client side.
It works when the component is directly in the...
|
by: Cliff Harris |
last post by:
In the Page_Load Event on the page, I register a hidden field using
RegisterHiddenField("myvar", "my value");
Later, in a button event, I want to change the value of that hidden field
that was...
|
by: Dave |
last post by:
Are there any known restrictions on where Page.RegisterHiddenField will work? It seems to only work in the Page_Load event...My code below fails to render it in the page's source
I would like...
|
by: Pete Mahoney |
last post by:
I have a datagrid with a button column that displays some partner
info. i.e. PartnerId, PartnerName ... The button column has a button
that when the user clicks it they are redirected or...
|
by: ashish |
last post by:
If i want to add a hidden field on the page, how can i check whether
that hidden field exists ?
for example if i do
If Page.FindControl("myhiddenfield") Is Nothing Then...
|
by: John Smith |
last post by:
I am having a brain fart today....
How do you set a default button within a User Control? I am using
"Page.RegisterHiddenField("__EVENTTARGET", "btnSubmit")" but it does not
seem to be working...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |