473,320 Members | 2,071 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,320 software developers and data experts.

Read client side value from server side in VB.NEt

Joh
I have a vb.net application where I have a client side html input:
<td><input name="CurrentUserStatus" type="text" id="UserStatus" /></
td>

Is there anyway I can acces the value of this control from server side
inside my vb.net code? (please note I don't want to have runat=server
for the input control)

Aug 2 '07 #1
3 2938
Yes, of course. It will just come through as a Form value.

======================================
David McCarter [Microsoft VB.NET MVP]
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485
"Joh" wrote:
I have a vb.net application where I have a client side html input:
<td><input name="CurrentUserStatus" type="text" id="UserStatus" /></
td>

Is there anyway I can acces the value of this control from server side
inside my vb.net code? (please note I don't want to have runat=server
for the input control)

Aug 2 '07 #2
Ofcourse if you perform a client side submit , you can read the value in the
request object ( request.form("CurrentUserStatus") )

If you mean without perfoming a postback at all , well even then there are
ways however this requires some scripting
hth

Michel
"dotNetDave" <do********@discussions.microsoft.comschreef in bericht
news:50**********************************@microsof t.com...
Yes, of course. It will just come through as a Form value.

======================================
David McCarter [Microsoft VB.NET MVP]
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485
"Joh" wrote:
>I have a vb.net application where I have a client side html input:
<td><input name="CurrentUserStatus" type="text" id="UserStatus" /></
td>

Is there anyway I can acces the value of this control from server side
inside my vb.net code? (please note I don't want to have runat=server
for the input control)


Aug 2 '07 #3
Joh
On 2 Aug, 22:01, "Michel Posseth [MCP]" <M...@posseth.comwrote:
Ofcourse if you perform a client side submit , you can read the value in the
request object ( request.form("CurrentUserStatus") )

If you mean without perfoming a postback at all , well even then there are
ways however this requires some scripting

hth

Michel

"dotNetDave" <dotNetD...@discussions.microsoft.comschreef in berichtnews:50**********************************@m icrosoft.com...
Yes, of course. It will just come through as a Form value.
======================================
David McCarter [Microsoft VB.NET MVP]
www.vsdntips.com
VSDN Tips & Tricks .NET Coding Standards available at:
www.cafepress.com/vsdntips.20412485
"Joh" wrote:
I have a vb.net application where I have a client side html input:
<td><input name="CurrentUserStatus" type="text" id="UserStatus" /></
td>
Is there anyway I can acces the value of this control from server side
inside my vb.net code? (please note I don't want to have runat=server
for the input control)- Dölj citerad text -

- Visa citerad text -
Thanks for your answers. And yes, I would like to do it without a
postback. What would that scripting look like?

Aug 4 '07 #4

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

Similar topics

9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
4
by: Marcel Brekelmans | last post by:
Hi, This is my situation: My ISP doesn't allow me the execute server-code. So, no ASP or otherwise.As a small compensation, they run some CGI scripts that we can use. With one of these...
4
by: Sue | last post by:
ASP.NET web application, data grid with several fields (Labels), table below the datagrid with several textboxes and dropdown lookup tables. When a user clicks on the "Select" button in datagrid,...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
6
by: Guadala Harry | last post by:
I have some client-side JavaScript that, among other things, calculates the value of a variable (myVar). On the server I have a stored procedure that needs to somehow receive as an input parameter...
8
by: Mike Fellows | last post by:
Ok, im not sure if this is at all possible and if it is how i go about it is beyond me i have a piece of client side code that requires a piece of data from the server side (an ID number in this...
2
by: Guadala Harry | last post by:
In an aspx file I have declared a hidden field like this: <input id="hTestVal" type=hidden value="-1" runat="server"> Defined in the code-behind like this: protected...
6
by: Julius Fenata | last post by:
Dear all, I have created client-side scripting to trigger event onChange from code-behind, like this: DropDownList1.Attributes = "GenerateArticleID()"; At the script on Windows Form, I...
10
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.