I need to place a piece of text into a page but the specific text is not
known at the time of the build. How can the webmaster define a string that
gets inserted into the page ** without modifying the aspx page **. I'm
thinking along the lines of a .txt file or something that can be
"#included" . The text wouldn't change (hardly ever) once it is defined by
the webmaster. Sorry if this is a dumb question.
Thanks!
-- Alan 4 1020
You can sotre the text anywhere you like - File, Database, System Registry,
to name just a few persistent mediums. However, using a server-siode include
is generally not a good OOP practice to use. Try using a Label or
PlaceHolder instead.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Alan Pretre" <no@spam> wrote in message
news:#E******** *****@TK2MSFTNG P10.phx.gbl... I need to place a piece of text into a page but the specific text is not known at the time of the build. How can the webmaster define a string
that gets inserted into the page ** without modifying the aspx page **. I'm thinking along the lines of a .txt file or something that can be "#included" . The text wouldn't change (hardly ever) once it is defined by the webmaster. Sorry if this is a dumb question.
Thanks!
-- Alan
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:OP******** ******@TK2MSFTN GP09.phx.gbl... You can sotre the text anywhere you like - File, Database, System
Registry, to name just a few persistent mediums. However, using a server-siode
include is generally not a good OOP practice to use. Try using a Label or PlaceHolder instead.
Thanks. That's what I'm getting at. How can I put it in a text file or
something on the site and have the label fetch it in? My only requirement
is that the text not reside in the aspx page.
-- Alan
Never mind I'll put it in web.config.
Thanks.
-- Alan
You put a label in the page. In the Page_Load event handler you assign the
Text property of the label from your source.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Alan Pretre" <no@spam> wrote in message
news:ue******** ******@TK2MSFTN GP09.phx.gbl... "Kevin Spencer" <ke***@takempis .com> wrote in message news:OP******** ******@TK2MSFTN GP09.phx.gbl... You can sotre the text anywhere you like - File, Database, System Registry, to name just a few persistent mediums. However, using a server-siode include is generally not a good OOP practice to use. Try using a Label or PlaceHolder instead.
Thanks. That's what I'm getting at. How can I put it in a text file or something on the site and have the label fetch it in? My only requirement is that the text not reside in the aspx page.
-- Alan
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rameshika |
last post by:
Hi All
How can I select a particular row in a datagrid.Where when the user double clicks the data in that row should appear in the corresponding text boxes in runtime
And how can the user insert,delete and edit fields in a datagrid at runtime
Please be kind enough to help me
Thanks
Rameshika
|
by: Chris Fink |
last post by:
I have setup an Oracle table which contains a blob field. How do I insert
data into this field using C# and ADO.net?
|
by: Subra Mallampalli |
last post by:
Hi,
I am trying to use <runtime> section within the web.config file. However,
the contents of the <runtime> section seem to be ignored. What am i missing
here? Is <runtime> section not used by web apps?
Any help is greatly appreciated.
Thanks,
|
by: Guadala Harry |
last post by:
In an ASCX, I have a Literal control into which I inject a
at runtime.
litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID);
This works great as long as the contains just client-side
HTML, CSS, etc.
What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
|
by: Sirisha |
last post by:
Hi,
I am inserting values into databse using sqlserver stored
procedures. i wrote stored preocedure,but in codebehind file(.vb file)
i dont know how to pass the parameters, i got error message like this
"System.Data.SqlClient.SqlException: Procedure or Function 'sp_insert'
expects parameter '@TestId', which was not supplied. at...
| |
by: Sirisha |
last post by:
Hi,
I am inserting values into databse using sqlserver stored
procedures. i wrote stored preocedure,but in codebehind file(.vb
file)
i dont know how to pass the parameters, i got error message like this
"System.Data.SqlClient.SqlException: Procedure or Function
'sp_insert'
expects parameter '@TestId', which was not supplied. at...
|
by: =?Utf-8?B?bXBhaW5l?= |
last post by:
Hello,
I am completely lost as to why I can't update a DropDownList inside a
DetailsView after I perform an insert into an object datasource. I tried to
simply it down to the core demostration:
default.aspx:
|
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...
|
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. ...
|
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...
|
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...
| |
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |