473,595 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access innerHTML on serverside

Hello,

Is there any way where, from server side, I can access the innerHTML value
of a control (Hyperlink/Label) which is modified at the client side ?
I wish to read the changed InnerHtml on the server side. Can I really do this?

any help will be appretiated.

--
Thanks
nLella
Oct 18 '05 #1
3 2941
The only way would be to submit it to the server. The server has no
connecttion to the data once its been submitted to the client. You can
probably make the submission more transparent to the end user via AJAX.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"nLella" <nL****@newsgro ups.nospam> wrote in message
news:B7******** *************** ***********@mic rosoft.com...
Hello,

Is there any way where, from server side, I can access the innerHTML
value
of a control (Hyperlink/Label) which is modified at the client side ?
I wish to read the changed InnerHtml on the server side. Can I really do
this?

any help will be appretiated.

--
Thanks
nLella

Oct 18 '05 #2
Thank you for the reply John.
I have tried submmiting the form. Even after submitting the form all I can
see is the original innerHtml value of the control, not the modified one. Is
there some thing I am missing here?

This is a draft of my code.
_______________ _______________ _______________ _______________ ______
Server Side:

protected System.Web.UI.H tmlControls.Htm lAnchor anchor;
Page_Load()
{
switch( anchor.innerTex t )
{
case originalText;
break;
case modifiedText;
break;
}
}
_______________ _______________ _______________ _______________ ___
Client Side:
<a id="anchor" runat="server" href="#"
onClick="JavaSc ript:ChangeInne rHtml()"></a>
<script language="JavaS cript">

function ChangeInnerHtml ()
{
document.getEle mentById("ancho r").innerTex t = "changedInnerHt ml";
document.frmMai n.submit();
}
</script>

_______________ _______________ _______________ _______________ _________
--
Thanks
nLella

Oct 19 '05 #3
Hi nLella,

As far as I know, this cannot be done, because when posting back, the
labels are not included. Only the values like textbox values will be post
back. I suggest you try to post in microsoft.publi c.dotnet.framew ork.aspnet
for more information.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Oct 21 '05 #4

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

Similar topics

2
1259
by: Jason Morehouse | last post by:
Hello, I want to access an element by passing part of the name to the function... eg: function show_files(item,data) { document.getElementById('row-' + item).innerHTML = data; }
1
57474
by: anonieko | last post by:
This example applies to javascript, table, cells, rows > > How do you access rows and columns of a HTML table? > > > <script language="javascript"> alert('start');
6
5237
by: Jon Davis | last post by:
I recently learned how to do an <OBJECT> alternative to <IFRAME> in current browsers using: <object id="extendedhtml" type="text/html" data="otherpage.html" width="250" height="400"></object> My question is how do I access the document DOM of this object in Javascript? For example, "alert(extendedhtml.innerHTML);" doesn't work and produces an unknown error. I'd like to both read and write to the document's body element's innerHTML...
4
2658
by: SJ Mo2 | last post by:
I have several Access databases that I want to publish (or make available) through our web-pages. The problem...our web server is on a Linux-Apache machine while our Access db is obviously on a Windows (2000) machine...all on the same network. Short of rebuilding my databse on MySQL/etc is there any way to "point" a PHP web application through the Linux webserver to the Access db on the Windows box?
10
2052
by: JHB | last post by:
Hi. How is it possible to load raw text from an Internet page (html-format), to MS-Access? My questions are: How to connect to the page?
11
4977
by: trinitypete | last post by:
Hi all, I have a user control that uses control literal to build a heading with a link, and a div containing links below. As the link heading is hit, I want to change the style of the div, making it visible or not. Yep you guessed it, expanding tree type functionality. The header has an onclick event onclick='Doexpandcollapse
3
354
by: nLella | last post by:
Hello, Is there any way where, from server side, I can access the innerHTML value of a control (Hyperlink/Label) which is modified at the client side ? I wish to read the changed InnerHtml on the server side. Can I really do this? any help will be appretiated. -- Thanks
4
4745
by: omlac | last post by:
im creating controls using javascript, and i would like to retrieve the values of the controls in code behind(vb.net/c#) . My vb.net below is not returning them, Odata is a div but i added the runat = "server" property. Would anyone know what im doing wrong. Dim ctr As System.Web.UI.Control ' Web.System.Web.UI.Control For Each ctr In oData.Controls Windows.Forms.MessageBox.Show(ctr.ID) Next ctr and the...
6
27045
ssnaik84
by: ssnaik84 | last post by:
Hello, I have a HTMLDivElement. I checked its innerHTML property. It has a hidden element (in innerHTML). How I can access the hidden element? For example, fbPartnerName is the HTMLDivElement
0
7957
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, 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...
0
8262
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
8379
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
8020
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
8252
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...
1
5839
isladogs
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...
1
2391
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
1
1491
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1226
bsmnconsultancy
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...

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.