473,833 Members | 2,199 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

modify HTML in code behind

hello,

I would like to modify the content of my html page from the code behind.
But i've got a problem...I know how to get the html from a spécific control
(thanks to FindControl) but what can i do to get all the all HTML page
code?

thanks

Nov 21 '05 #1
4 1514
Philippe,

I think that you would have to explain more what you mean with "all HTML
page code"
A HTML page is nothing more than a format, with in it (in the case of ASPX)
mostly a lot of Javascript. The Javascript code is processed at the client
side.

Cor
Nov 21 '05 #2
ok.

I work in a cms environment.
My aspx page is a template which contains an Htmlplaceholder .
This placeholder contains informations concerning daily cotation.
So I have to change informations in the htmlplaceholder each day.

You will say "why do u use a placeholder so?"....Becaus e i'm obliged to use
this specific template with this specific placeholder..;o ( .

Normally a placeholder is used for static information.I know.

So my idea was to modify the content of the page in the render method.To
modify the content of the page, I have to get the html stream.
I know how to do that for a particular control...For exemple the content of
my placeholder.

Ask me more informations if my request is not understandable ;o)

philippe



"Cor Ligthert" <no************ @planet.nl> a écrit dans le message de
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Philippe,

I think that you would have to explain more what you mean with "all HTML
page code"
A HTML page is nothing more than a format, with in it (in the case of ASPX) mostly a lot of Javascript. The Javascript code is processed at the client
side.

Cor

Nov 21 '05 #3
Philippe,

I find this one of the worst documentated parts of Net. However maybe is
this what you are looking for. (You have to go further on the pages to see
what it is). It is possible to get rid of that HTML, however I never found
any official documentation about that and I am myself in a way with that in
the try on error method.

http://msdn.microsoft.com/library/de...sEvalTopic.asp

Cor
Nov 21 '05 #4
Thanks a lot for your help.
But i think that my error is more linked to a CMS using...


"Cor Ligthert" <no************ @planet.nl> a écrit dans le message de
news:ek******** ******@TK2MSFTN GP12.phx.gbl...
Philippe,

I find this one of the worst documentated parts of Net. However maybe is
this what you are looking for. (You have to go further on the pages to see
what it is). It is possible to get rid of that HTML, however I never found
any official documentation about that and I am myself in a way with that in the try on error method.

http://msdn.microsoft.com/library/de...sEvalTopic.asp
Cor

Nov 21 '05 #5

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

Similar topics

1
1737
by: Hartmut Dippon | last post by:
Hello, does anybody know how I can access and modify properties of my frameset within my code behind class, or is that not possible at all? I tried to find anything in the internet about this issue without any success. Can anybody give me a light on this issue? Thanks Hartmut
12
1737
by: SStory | last post by:
Doing pages for contract..... If I make an ASPX file that does certain things, how simple would it be for a person who know nothing about it to modify the user interface without bothering the ASPX interaction? How would I best build such pages. Many people of course don't want a page that they can't modify at all without programmer intervention. I think ASPX does this. Just curious to hear some comments on the subject from more...
4
1929
by: VR | last post by:
Hi. I have an ASP.NET web page, with a logo written in plain HTML. One of the tags is an image that should read either "sign on" or "sign off" depending on whether a user has been authenticated: <a href="javascript:void(FollowLink('SignOn'));"> <IMG src="/graphics/TopSignOn.gif" name="TopSignOn"> </a>
6
1211
by: darrel | last post by:
I've asked this a few times and gotten answers, but I'm still missing a piece of the puzzle. Here's what I have: - page.aspx - title tag - usercontrol.aspx - usercontrol.aspx.vb
6
5528
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp; DataBinder.Eval(Container.DataItem,"StoreEmail") &amp; "&amp;Subject=" &amp; DataBinder.Eval(Container.DataItem,"ProductName") ....
3
1458
by: aaa | last post by:
I fail to see the connection between the code behind and the raw HTML of the ASPX page how do you get variables and functions to communicate with each other? I cannot get this to even fire: <script Language=C# runat=Server> public int myfunc() { int blah = 1;
1
3173
by: Fabrice | last post by:
Hello Is it possible to modify CommandArgument property of a LinkButton from vb class (code behind). So, this is my control in my .aspx page : <asp:LinkButton id="strTd" OnCommand="lnkButtonClick" enableviewstate="False" CssClass="Detail" Text="Text" runat="server"></asp:LinkButton>
2
2512
by: Steve Franks | last post by:
What is the proper/best way to dynamically change the HTML written out to the browser based on the value from a variable in a code behind page? For instance, I have test.aspx.vb as a code behind page. In this code behind's Page_Load event which sets a boolean called useAlternateStyle to true or false based on business logic. Now from my main page (test.aspx) I want to either write out HTML that sets the style sheet to "mainStyle.css"...
5
4483
by: Martin Bischoff | last post by:
Hi, is it possible to modify the values of a SqlDataSource's select parameters in the code behind before the select command is executed? Example: I have an SqlDataSource with a ControlParameter <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:XYZ %>"
0
10500
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
10543
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
10213
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...
0
9323
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7753
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...
0
6951
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();...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4422
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
2
3972
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.