473,385 Members | 1,396 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,385 software developers and data experts.

Inserting HTML into a page based on conditions

RSH

I have a custom WebControl that I created. The template is used sitewide.
I would like to use this template for every page but there are instances
when blocks of HTML need to be displayed only in certain instances.

How do i go about doing the following:

If page = "MainPage" then

<table><tr><td>This is the main page</td></tr</table>

end if

Thanks!
Ron
Apr 26 '06 #1
1 891
If page = "MainPage" then

Response.Write ("<table><tr><td>This is the main page</td></tr</table>")

end if

"RSH" <wa*************@yahoo.com> wrote in message
news:O9**************@TK2MSFTNGP02.phx.gbl...

I have a custom WebControl that I created. The template is used sitewide.
I would like to use this template for every page but there are instances
when blocks of HTML need to be displayed only in certain instances.

How do i go about doing the following:

If page = "MainPage" then

<table><tr><td>This is the main page</td></tr</table>

end if

Thanks!
Ron

Apr 26 '06 #2

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

Similar topics

3
by: Geoff | last post by:
I have been asked to add postal rates to a web page shopping cart checkout procedure. After contacting the post office I discovered that they used XML to receive postal rate requests and send back...
6
by: Raqueeb Hassan | last post by:
Hello There! Have you guys tried inserting variables in mySQL tables? Do I have to use 'quote' as we had been doing to insert strings? mysql> INSERT INTO occurrence (word_id,page_id) VALUES...
3
by: vikram | last post by:
How can i get html generated by a web server control in the code behid page itself. i want to store the html in some variable for some purpose. is it possible.
1
by: paul.hester | last post by:
Hi all, I'm trying to display the a Page variable's value in the Text property of a CheckBox control in the aspx file: <asp:CheckBox ID="agreeTerms" Text="I agree to the <%# this.SiteName %>...
7
by: petermichaux | last post by:
Hi, I have tried the following based on suggestions of the best way to insert JavaScript into a page. This is instead of using eval(). Unfortunately IE says "unexpected call to property or...
2
by: sad2891 | last post by:
Would anyone know what exactly is causing the program to freeze when running this? Any tips on how i might get this to work would be appreciated too. I am just trying to take information from one...
3
by: veerapureddy | last post by:
Hai everybody, i like to insert some records into database from html form by entering data.my problem is how can i check , whether a record is available in database about a particular...
2
by: John Gordon | last post by:
I'm developing a web application that needs a semi-persistent way to store information. I've looked at some options such as writing entries to a database table or creating small textfiles, but...
5
by: rando1000 | last post by:
Okay, here's my situation. I need to loop through a file, inserting records based on a number field (in order) and if the character in a certain field = "##", I need to insert a blank record. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.