473,385 Members | 1,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Html Control

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

Aug 10 '07 #1
7 1594
=?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.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 10 '07 #2
Soma wrote:
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)

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 10 '07 #3
Soma wrote:
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.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 10 '07 #4
try your question here:

public.dotnet.framework.aspnet
"Soma" <so**@discussions.microsoft.comwrote in message news:66**********************************@microsof t.com...
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

Aug 10 '07 #5
>please note I don't want to have runat=server

Why not?

Bob Lehmann

"Soma" <so**@discussions.microsoft.comwrote in message
news:66**********************************@microsof t.com...
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

Aug 10 '07 #6
Bob Lehmann wrote on 11 aug 2007 in
microsoft.public.inetserver.asp.general:
>>please note I don't want to have runat=server

Why not?
Perhaps too much typing?

He could perhaps be happy using:

<%
' ;-)
%>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 11 '07 #7
Hi
>please note I don't want to have runat=server
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.
>>try your question here:
>>public.dotnet.framework.aspnet
I put this stuff in dotnet forum
Thank you for your valuable feedback and suggestions.
Aug 13 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David | last post by:
Sorry about the previous question. The thing I am really trying to do is collecting HTML id's on a given form. As you may know, ASP.NET control ids do not necessarily match html control names...
6
by: darrel | last post by:
I've asked this a few times and gotten answers, but I'm still missing a piece of the puzzle. Here's what I have: - page.aspx - title tag - usercontrol.aspx - usercontrol.aspx.vb
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
6
by: Prakash | last post by:
I am using HTML controls in my page i want to Programatically apply CSS for that controls as that of contorol.CSS="cssname" for Web Control. How to do it?. Thanks in Advance Prakash.V
1
by: amjad | last post by:
Hi is there any way to assing database value to html control like txtaspcontrol.text=myvalue; same to html text control txthtmltextcontrol.text=myvalue through asp.net form i am using asp.net 1.1
11
by: saurabh | last post by:
Can anybody tell me how to change the value of an html control from the c#.... eg i hv one asp.net radio button control and one html hidden variable... so on page load in case the radio button is...
2
by: Bob | last post by:
Hi, in aspx file, i defined this: <input id="Button2" type="button" value="button" runat="server" onclick="klik()"/> This 'onclick' event is a clientclick (starting the Javascript function...
2
by: Bhuwan Bhaskar | last post by:
Hi, I am new to asp.net. I want to know that, HTML and Web form control can work in same way example, using "runat = Server" attribute, html control can also executed at server, then what is the...
3
by: tinique | last post by:
How can I call a HTML textbox in .aspx.vb code?? E.g. : <input id="Frequency" type="text" style="width: 44px" /> Thanks!
7
by: royal ludhiana | last post by:
hi all, I want to pass the value from a html control(input...text) to asp.net control(textbox). And this should happen...whenever the html control receives a value(don't want to use a button click...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
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...
0
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.