Html Control

S

Soma

Hi,
I have a C# application where I have a client side html input:
<input name="CalText" type="text" id="CalText" />
Is there anyway I can acces the value of this control from server side
inside my C#code? (please note I don't want to have runat=server
for the input control)


Thanks
 
E

Evertjan.

=?Utf-8?B?U29tYQ==?= wrote on 10 aug 2007 in
microsoft.public.inetserver.asp.general:
Hi,
I have a C# application where I have a client side html input:
<input name="CalText" type="text" id="CalText" />
Is there anyway I can acces the value of this control from server side
inside my C#code? (please note I don't want to have runat=server
for the input control)

A server, being a server, does only what the client askes.
So no, the server cannot "access" a client html structure.
 
B

Bob Barrows [MVP]

Soma said:
Hi,
I have a C# application

There was no way for you to know it (except maybe by browsing through some
of the previous questions in this newsgroup before posting yours - always a
recommended practice) , but this is a classic asp newsgroup. ASP.Net bears
very little resemblance to classic ASP so, while you may be lucky enough to
find a dotnet-knowledgeable person here who can answer your question, you
can eliminate the luck factor by posting your question to a group where
those dotnet-knowledgeable people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
where I have a client side html input:
<input name="CalText" type="text" id="CalText" />
Is there anyway I can acces the value of this control from server side
inside my C#code? (please note I don't want to have runat=server
for the input control)
Of course not! At least, not without submitting the value contained in that
text box to the server-side code (perhaps using Ajax)
 
B

Bob Barrows [MVP]

Soma said:
Hi,
I have a C# application where I have a client side html input:
<input name="CalText" type="text" id="CalText" />
Is there anyway I can acces the value of this control from server side
inside my C#code? (please note I don't want to have runat=server
for the input control)
I should add that as long as the element has a name and is contained within
a FORM element which is submitted to the server-side page, the value
contained by the element will be part of the Request and accessible either
via the Querystring or Form collection depending on which type of submission
was done.
 
E

Evertjan.

Bob Lehmann wrote on 11 aug 2007 in
microsoft.public.inetserver.asp.general:

Perhaps too much typing?

He could perhaps be happy using:

<%
' ;-)
%>
 
S

soma

Hi

I got assignment that integrating calendar control (our Client providing
control).
For implementation its require (Textbox) html control. To get textbox value
in server side. I spent lot of time of this stuff still hung out issue.

I put this stuff in dotnet forum


Thank you for your valuable feedback and suggestions.
 

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

No members online now.

Forum statistics

Threads
474,091
Messages
2,570,604
Members
47,223
Latest member
smithjens316

Latest Threads

Top