473,320 Members | 1,904 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.

Retrieving client side control value using servre VB.NET

Hi There,
Is it possible to retrieve a client side control value using server VB.NET?

Thanks,
Kevin.
Nov 29 '06 #1
2 2166
Yes. As a simple and brief example - If you have a textbox defined
with the name "htmlTextBox", then you can access that server side the
same way you would in classic asp.
<input type="text" name="htmlTextBox" value="fred" />
Request("htmlTextBox")

I generally find it easier to include runat="server" in the html
definition and then just access the controls like I would any other
serverside control.
<input type="text" runat="server" id="htmlTextBox" value="fred" />

Then in code you would define the variable like so.
Dim htmlTextBox As System.Web.UI.HtmlControls.HtmlInputText

But its up to you and your own preference.

Hope this was helpful.

Kevin Humphreys wrote:
Hi There,
Is it possible to retrieve a client side control value using server VB.NET?

Thanks,
Kevin.
Nov 29 '06 #2
use the classical document.getElementById(_id of your control_).

It is possible that you'll have to create the javascript method at the
client side. In this case, take a look at Page.ClientScripts object and the
ClientID property of the control to get its actual name at the client side

Steve

"Kevin Humphreys" <kh********@hotmail.coma écrit dans le message de news:
%2****************@TK2MSFTNGP06.phx.gbl...
Hi There,
Is it possible to retrieve a client side control value using server
VB.NET?

Thanks,
Kevin.

Nov 29 '06 #3

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

Similar topics

0
by: Yaseen | last post by:
I am not sure if someone can help me, but please bare with me for a second... My problem is to retreive the Client's Printer Collection for a web application and then print to the client's default...
5
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an...
1
by: Jim Hammond | last post by:
I can get data from a client-side assembly to the server in two manual steps, but I need to be able to do it in one step. Step 1: The user presses the manually coded "Step 1" button, which calls...
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...
4
by: Barb | last post by:
I have a user control as my Save button for my page. When the Save button is clicked, I want some client-side validation to take place from a javascript function in the page, and then I'd like the...
3
by: David Davis | last post by:
I cannot get a web user control to validation client-side using a required field validator. It only validates server side. I have a web user control in .net 2.0. I have a single text box on it....
2
by: jupitermoonbeam | last post by:
Hi, I wondered if anyone can help. I have scowered the web and found absolutely nothing that relates to my particular problem and I am pulling my hair out. Basically, I have a scenario where...
5
by: Sanjay Pais | last post by:
I have a table with over 1.3 million rows. I am retrieving only 20 at a time using the with - over clauses In query analyser, the data is retrieved in under a second. When retrieving using 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...
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.