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.getEl ementsByTagName ("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...an d now when post back happens, i want
to show the items that were added as well??
Request for an urgent reply!!!!
Thanks in advance 4 1792
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.
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.
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.
Sorry about the extra posts. Google groups is not working too well.
Maybe someone here can help them out :) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 roundtrip to the server.
The codebehind seems to be unaware of select box members
populated via javascript. So, I'm having to create my own
state management solution, (i.e. rewriting the VIEWSTATE
mechanism) to persist the state of these select...
|
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 TextBox controls render
greyed-out, and I can see the values in the TextBox controls....this is what
I expected.
I submit again, the Panel is enabled during the PostBack. All of the
TextBox controls within the Panel are now enabled, however,...
|
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 being updated by some other process through remoting.
When the page loads, I init the tree, and in my browser I can see the
initialized tree.
The problem is that every time that I receive update to tree from the
remote process,
|
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 function that runs and successfully populates label in the 2nd
column. Everything is fine at this point and working the way it should.
i do a getElementById to get the status label and then i set its innerHTML
and again it works fine.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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,...
|
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...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |