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

Persisting Label/Select Box Control values changed from client side during Postback

Hi,
I have a datagrid(within a user control) that has label controls. I
have added hidden fields in the datagrid alongwitht the label control.
I do some client side editing with javascript and somehow want to reset
the label value through javascript? I could grab the id of the row that
had the label in it (now converted to a span at client side) by
accessing the corresponding hidden field with it.
var hdnLabel = rowHandle.getElementsByTagName("input");
for(var i = 0 ; i < hdnLabel.length ; i++)
{
if(hdnLabel[i].type == "hidden")
{
hdnLabel[i].value = "Some Value";
}
}

After setting this value, postback happens. Now how do i somehow
associate the value of this particular hidden variable with the label
that I want to reset at client side. At server side, i am unable to
find a wayto identify my hidden variable(since there is one per row
with clientIDs) say through Request.Form[????]. And if i grab that
value somehow where do i specify this value to my label??
I am facing a smilar problem with my dropdown in datagrid. I add List
items to it through javascript...and now when post back happens, i want
to show the items that were added as well??

Request for an urgent reply!!!!

Thanks in advance

Dec 7 '05 #1
4 1782
KJ
Hmm, I'm not sure if I understand correctly, but, perhaps you might
consider adding the new values to ViewState, then, after postback, pull
them from there again. But, as I said, I'm not sure I understand the
scenario.

Dec 8 '05 #2
KJ
Hmm, I'm not sure if I understand correctly, but, perhaps you might
consider adding the new values to ViewState, then, after postback, pull
them from there again. But, as I said, I'm not sure I understand the
scenario.

Dec 8 '05 #3
KJ
Hmm, I'm not sure if I understand correctly, but, perhaps you might
consider adding the new values to ViewState, then, after postback, pull
them from there again. But, as I said, I'm not sure I understand the
scenario.

Dec 8 '05 #4
KJ
Sorry about the extra posts. Google groups is not working too well.
Maybe someone here can help them out :)

Dec 8 '05 #5

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

Similar topics

5
by: Allan M. | last post by:
I have a series of select boxes that must be populated client side, because they interact with each other. The design specification calls for these boxes to be updated without having to make a...
5
by: Robert Phillips | last post by:
I have a Panel control containing a few TextBox controls. The Panel is originally enabled, I enter data into the TextBox controls. When I submit, the Panel is disabled during the PostBack and the...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
2
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm in a gridview edit row that has a DropDownList in one column and a status Label in the 2nd column. When i changed the value in the dropdownlist, there's a client-side javascirpt...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.