473,394 Members | 2,071 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.

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 2922
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****@newsgroups.nospam> wrote in message
news:B7**********************************@microsof t.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.HtmlControls.HtmlAnchor anchor;
Page_Load()
{
switch( anchor.innerText )
{
case originalText;
break;
case modifiedText;
break;
}
}
__________________________________________________ _____________
Client Side:
<a id="anchor" runat="server" href="#"
onClick="javascript:ChangeInnerHtml()"></a>
<script language="JavaScript">

function ChangeInnerHtml()
{
document.getElementById("anchor").innerText = "changedInnerHtml";
document.frmMain.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.public.dotnet.framework.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
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
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
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> ...
4
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...
10
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
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,...
3
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...
4
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...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.