473,394 Members | 1,821 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,394 software developers and data experts.

Client Side changes not refecting server side label

I have a server side label and text box
From the client side I am changing the value of the ASP.NET labe
using the innerText property of the label.
When I try to access the label from the server side I am getting the old valu
of the label which was initially populated before calling the java script function .
Can anyone tell me what is going wrong

Regards
Srini
Nov 18 '05 #1
3 2331
Hi Srini

If you understand how data is sent to the server when you submit is form on
a page, you will realise that the form elements (<input>,<select>) is sent
as a querystring or as name-value pairs.

labels are not form elements and this is not send/postedback to the server.

what you may do is have a hidden form element and update it with the same
value as u set ur label to and access the hidden form element in your
server.

hope that helps
--
Cheers!
Rajiv. R
Rajspace.Org

"Srini" <rs*************@hotmail.com> wrote in message
news:02**********************************@microsof t.com...
I have a server side label and text box.
From the client side I am changing the value of the ASP.NET label
using the innerText property of the label.
When I try to access the label from the server side I am getting the old value of the label which was initially populated before calling the java script function . Can anyone tell me what is going wrong.

Regards,
Srini

Nov 18 '05 #2
Hi Ajax,

Could you elaborate?

--
Cheers!
Rajiv. R
Rajspace.Org

"Ajax" <aj****@yahoo.com> wrote in message
news:48**********************************@microsof t.com...
I'm agree with the hidden control solution for the label problem but I

still have the same problem with the select.
Nov 18 '05 #3
Sorry,
I have 2 listbox server controls in my page and I want to interchange items between them. One solution could be make the interchange in the server, another could be make it in the client. When I tried to achieved client solution I made the changes in "select" that result from the "listbox" on the server, and when a post was made it I got the original listbox without any of changes I made

Thanks for your attention.
Nov 18 '05 #4

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

Similar topics

5
by: JT | last post by:
im trying to use the following code to log whenever a user clicks through this particlular message box - however, this currently logs regardless of whether or not the message box was clicked - im...
9
by: Carter Smith | last post by:
http://www.icarusindie.com/wiki/index.php/Server-Side_Javascript_Check Sample source included This method requires that your pages are PHP enabled and you have mySQL. Although I suppose you...
1
by: Bin Song, MCP | last post by:
Hi all I got a strange problem In my webform, I have a server-side Button "btnDisable" to save some data and enable or disable all other fields in this form based on the data. The logic is: on...
3
by: Dustin II. | last post by:
Hi, I have an ASP.NET solution, and the ASPX page I have a form , I want to copy some of the data from that form to the clipboard, I am using the below script the script works fine when I use a...
4
by: Mortar | last post by:
i have a server side button which 1st needs to run some client side script for form checking. I got this working from the attributes thing. Then, if all is valid client side, i need to call the...
1
by: Ben | last post by:
I have a button that runs some server code when clicked. Is it possible to also have it run some client side java script? The setup is i have a tree menu in the left frame and the data in the...
7
controlbox
by: controlbox | last post by:
I have recently inplemented some drop-down lists (combos) on a page where one is dynamically populated according to the selection of another using the microsoft ajax extensions. I had to set...
1
by: praveenkumarvpk | last post by:
Suggest me to store client side images to server side Folder using JSP or Struts Please Help me to find the solution Thank You!
4
by: anonymousstar | last post by:
Hi, I was wondering if I can get some help with changing client side javascript to server side javascript. I have a survey connected to an Enterprise Manager SQL database. My code works and the...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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...

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.