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

How to synchronize Label1.text between Client Script & Code Behind?

Hi all,

How to synchronize Label1.text between:
document.getElementById("Label1").innerText (at Client Script) & Label1.text
(Code Behind).

I mean, I have assign new value to Label1 in Client Script, i.e.:

document.getElementById("Label1").innerText = "ABC"

How to get "ABC" value from Code Behind, i.e. I want to add new value to my
database:

clsTable myTable = new clsTable();
myTable.InsertArticle(Label1.Text); // Not Working...

How to solve this problem?

Thx,
Julius F
Nov 19 '05 #1
1 2577
Hi Julius,

You have to pass the new value from client to server separately, the Label
element won't do it for you. There is a number of ways for doing this, most
common one is via a hidden <input> element.

Eliyahu

"Julius Fenata" <id****@gmx.net> wrote in message
news:ek**************@tk2msftngp13.phx.gbl...
Hi all,

How to synchronize Label1.text between:
document.getElementById("Label1").innerText (at Client Script) & Label1.text (Code Behind).

I mean, I have assign new value to Label1 in Client Script, i.e.:

document.getElementById("Label1").innerText = "ABC"

How to get "ABC" value from Code Behind, i.e. I want to add new value to my database:

clsTable myTable = new clsTable();
myTable.InsertArticle(Label1.Text); // Not Working...

How to solve this problem?

Thx,
Julius F

Nov 19 '05 #2

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

Similar topics

11
by: alex | last post by:
Hi, I am looking for a way to populate an HTML table from an external local text file which looks like this: DATE/TIME LAT. LON. DEPTH. ML....
1
by: Art | last post by:
I have an ASP page split up with three different frames. One of the frames takes long time to load (due to long running function) and the first two are loaded before the most important one - loaded...
0
by: Do Re Mi chel La Si Do | last post by:
Open-Office 2.0 bêta-2 français pour Windows (en fait, la 1.9.125 ) est sortie. Vous la trouverez là : ...
5
by: Chung | last post by:
Hi All, Can anyone tell me how can I call a client script (javascript) from Code behind server code (c#)? Chung
1
by: Asha | last post by:
greetings, i want to populate a datagrid with data from the db and this requires a post back and code behind do its job. after the datagrid is being populated, i want the client side to execute...
3
by: SimonZ | last post by:
In ASP.NET 1.0 all client ID's of controls run at server were the same as the rendered ones on the client. In ASP.NET 2.0 the client id of server control is different on server than on the...
1
by: Joel Barsotti | last post by:
Is there anything builtin to ASP.net that allows you to tie a text box to a button so when you press enter in the text box it emulates clicking a near by button. I've coded up some client side...
0
by: nzkks | last post by:
Hi, I am using these: ASP.Net 2.0, VB.Net, Visual Studio 2005, SQL Server 2005 In a asp.net page, I have two multiview controls each has 2 views & its corresponding 2 menu items named Metric &...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.