PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

ASP->ASP.NET conversion of document.title and document.getElementById - C# newbie.

 
 
Frank Nero
Guest
Posts: n/a
 
      28th May 2004
In my ASP HTML code I have:

<SCRIPT language=JavaScript>
<!--
function DispTitle()
{
document.title = "New Title";
...
document.getElememtByID("par1").innerHTML = "New Text of the
Paragraph";
}
//-->
</SCRIPT>

How to acomplish the same effects inside C# code-behind function?
Does System.Web.UI:Page class can do that?
How to access any element of the page (document) from C# ?

Thank you in advance,

Frank.




 
Reply With Quote
 
 
 
 
Mohamoss
Guest
Posts: n/a
 
      30th May 2004
hi
all elements inside the page are objects of the
System.Web.UI.WebControls namespace , they have all kind of prosperities
that you can access from he code behind page . they are all listed ( you
can reference them this way also ) into the controls collection of the Page
Object (page.Controls).
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I show the document title bar on a microsoft word document? David D. Microsoft Word Document Management 1 1st Mar 2010 06:12 AM
document.getElementById(sender.controltovalidate) attributes DaveyP Microsoft ASP .NET 1 18th Apr 2008 01:21 PM
how to get/set textbox values client side document.getElementByID =?Utf-8?B?QW5kcmUgUmFuaWVyaQ==?= Microsoft ASP .NET 1 21st Aug 2006 04:31 PM
ASP.NET equivallent to document.getElementById Ferret Face Microsoft ASP .NET 3 4th Oct 2005 06:46 PM
Re: document.getElementById find nothing Franck Microsoft ASP .NET 0 25th Aug 2005 11:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:15 AM.