473,809 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to get client control(html) value in server side(c#)?

nirmalsingh
218 New Member
hai all,

i want to get client control value in server side code(c#) i am using asp.net 2005.
can anybody help with sample code?
thanx in advance.

With Lov
-Nirmal
Nov 5 '07 #1
3 4065
kunal pawar
297 Contributor
Hi Nirmal,

U can make tht HTML control as server control Using Runat="server"

Or if u want after submiting page, u can do it using Request Object
Nov 5 '07 #2
nirmalsingh
218 New Member
Hi Nirmal,

U can make tht HTML control as server control Using Runat="server"

Or if u want after submiting page, u can do it using Request Object
it works fine by ur idea, thanx a lot. then,
i want to do client side validation, if it satisfies, it needed to be post else the form should not be refreshed. how to do this?
Nov 5 '07 #3
urstop
12 New Member
You can use validations controls that will validate the data and will post only when the data entered meets the requirements.

If the requirement is not met , the validation controls display a error message to the user.

Regards,
UrStop
Nov 5 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1476
by: Jack | last post by:
Hello, <%@ Language=VBScript %> <% dim a a=10 'I want b=a at this place %> <Script language=VBScript> dim b </Script>
7
1648
by: Quentin Huo | last post by:
Hi: I created a web-form user control. And in client-site, there is a link which will create a Input element object when it is clicked. <script language=javascript> ....... var nameInput = document.createElement("input"); nameInput.setAttribute("id", "authorname");
6
3329
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 the value of myVar. I need to know how to get the value of myVar from the script up to the server. Specifically, I'd like to have the following happen when the user clicks a button in the browser: 1. The client-side script executes (and...
4
2342
by: kimberly.walker | last post by:
Im having a bit of a problem here, what I want to do is a user types in data in a text box then I need to pass that data to the client side. The problem Im having is I can't seem to get the value from the text box be it a regular asp.net text box or even when I assign a value in a hidden textbox I still can't seem to get the value. I thought using: document.getElementbyID("Client_ID").innerText would get the value but its not. Any help...
5
1677
by: thisis | last post by:
Hi All, Hi All, (this is not the same topic as the my previous topic) What objects/methods/properties does VBScript offer for: Assuring/guarantee/make certain that ASP/VBSCript an ELEMENT - e.g. <img ... / - was FULLY Loaded into web Browser
13
3833
by: HockeyFan | last post by:
I'm not sure how to exactly ask this, but expect that it's a Javascript solution. However, I'll ask the question and maybe someone can point me to some existing code that will do what I need. I have an Asp.Net app that's in 2.0 framework. I have a page that is sort of a storefront sort of page that has a product, a quantity and a button for "Add To Cart" and one for "Add To Wishlist". I'd like to disable those two buttons if the...
2
2185
by: Kevin Humphreys | last post by:
Hi There, Is it possible to retrieve a client side control value using server VB.NET? Thanks, Kevin.
11
4893
by: Jeff | last post by:
Hello everyone. I've searched through the archives here, and it seems that questions similar to this one have come up in the past, but I was hoping that I could pick your Pythonic brains a bit. Here's a broad overview of what I need to do: cross-platform, client- side GUI apps that interact with a server backed by a database. I'd also like the possibility of having a web interface for small portions of the app. It will be a fairly...
1
1709
nirmalsingh
by: nirmalsingh | last post by:
hai all, how to take client control value in javascript and assign it to server side control? and i need that server side control value in code behind(c#) to save it. how to do this? Thanx in advance Regards Nirmal
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10637
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10379
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.