Showing posts with label dynamically. Show all posts
Showing posts with label dynamically. Show all posts

Thursday, March 29, 2012

Set checkboxs to be checked dynamically

hi,
I retrieve checkbox ids from a querystring on a page. Now I need to set the checkboxs to be checked on that page retrieving the ids from the querystring. How do I go about it?

Need some working code please

-vjI tired this...but no luck!!!!


dim ctrl as New HtmlInputCheckBox()
cur_choiceArray = split(request.QueryString("edit_item"), "," )
for i = Lbound(cur_choiceArray) to Ubound(cur_choiceArray)
ctrl = CType(cur_choiceArray(i), HtmlInputCheckBox)
ctrl.Checked=True
next

WHat am i doing wrong here?!
hi rveejay,

you could try like this:

Dim MyControlName As String = Request.QueryString("id")
CType(Me.FindControl(MyControlName), CheckBox).Checked = True

Regards
Richard Bean

Set connection string of table adapter dynamically

Hello .
I am stucked with the following problem and hope you can help me :
- My ASP.NET 2.0 application has one master database .
- This master database has a Databases table with list of children
databases .
- All children databases have the same schema ( only the data is
different ) .
My application connects to the Master database first (
connection String of this database should be read from the C:\WINDOWS
\XXX.INI file).
Login web page will present drop-down list of sub-databases ( which
will be
retrieved from the Master database ) and then will connect to
specified sub-database and will display data
from this database in a GridView .
I would like to be able to bind this GridView to the Data Source
Objects , to edit all columns during design time , and to set the
connection string of corresponding table adapter programmatically
during run-time .
How can I do this ?
I found several references to the connection string ( for example ,
via appSettings) , but I got an error message that this is read only
parameter .
Please advice .
Thanks in advance for your help ,
Orit Chanukov .Keep it in a session variable.
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Orit" <oritc123@.gmail.com> wrote in message
news:1183138531.120152.59480@.a26g2000pre.googlegroups.com...
> Hello .
> I am stucked with the following problem and hope you can help me :
> - My ASP.NET 2.0 application has one master database .
> - This master database has a Databases table with list of children
> databases .
> - All children databases have the same schema ( only the data is
> different ) .
> My application connects to the Master database first (
> connection String of this database should be read from the C:\WINDOWS
> \XXX.INI file).
> Login web page will present drop-down list of sub-databases ( which
> will be
> retrieved from the Master database ) and then will connect to
> specified sub-database and will display data
> from this database in a GridView .
> I would like to be able to bind this GridView to the Data Source
> Objects , to edit all columns during design time , and to set the
> connection string of corresponding table adapter programmatically
> during run-time .
> How can I do this ?
> I found several references to the connection string ( for example ,
> via appSettings) , but I got an error message that this is read only
> parameter .
> Please advice .
> Thanks in advance for your help ,
> Orit Chanukov .
>

Set connection string of table adapter dynamically

Hello .

I am stucked with the following problem and hope you can help me :

-My ASP.NET 2.0 application has one master database .
-This master database has a Databases table with list of children
databases .
-All children databases have the same schema ( only the data is
different ) .
My application connects to the Master database first (
connection String of this database should be read from the C:\WINDOWS
\XXX.INI file).
Login web page will present drop-down list of sub-databases ( which
will be
retrieved from the Master database ) and then will connect to
specified sub-database and will display data
from this database in a GridView .
I would like to be able to bind this GridView to the Data Source
Objects , to edit all columns during design time , and to set the
connection string of corresponding table adapter programmatically
during run-time .
How can I do this ?
I found several references to the connection string ( for example ,
via appSettings) , but I got an error message that this is read only
parameter .
Please advice .
Thanks in advance for your help ,
Orit Chanukov .Keep it in a session variable.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Orit" <oritc123@.gmail.comwrote in message
news:1183138531.120152.59480@.a26g2000pre.googlegro ups.com...

Quote:

Originally Posted by

Hello .
>
I am stucked with the following problem and hope you can help me :
>
- My ASP.NET 2.0 application has one master database .
- This master database has a Databases table with list of children
databases .
- All children databases have the same schema ( only the data is
different ) .
My application connects to the Master database first (
connection String of this database should be read from the C:\WINDOWS
\XXX.INI file).
Login web page will present drop-down list of sub-databases ( which
will be
retrieved from the Master database ) and then will connect to
specified sub-database and will display data
from this database in a GridView .
I would like to be able to bind this GridView to the Data Source
Objects , to edit all columns during design time , and to set the
connection string of corresponding table adapter programmatically
during run-time .
How can I do this ?
I found several references to the connection string ( for example ,
via appSettings) , but I got an error message that this is read only
parameter .
Please advice .
Thanks in advance for your help ,
Orit Chanukov .
>

Thursday, March 22, 2012

Set href for <link tag

I need to dynamically set the href attribute for the <link> tag at run time
for my pages. I thought I saw code using the asp:placeholder to give the
code-behind a place to update the html control with a specific href setting.
Any ideas?
ThanksThis sets technique sets the Title programmatically but you might be able to
rejig it to do a <link>
http://authors.aspalliance.com/kenc/faq5.aspx
"Robert Strickland" <bstrickland@.comporium.net> wrote in message
news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
>I need to dynamically set the href attribute for the <link> tag at run time
> for my pages. I thought I saw code using the asp:placeholder to give the
> code-behind a place to update the html control with a specific href
> setting.
> Any ideas?
> Thanks
>
Hi,
Give the <link> tag id="lnk" (can be anything) and runat=server attributes.
From code-behind, use the Attributes property, like normal server-side
controls, to add attribute values:
lnk.Attributes.Add ("rel", "stylesheet")
lnk.Attributes.Add ("href", "primary.css")
HTH.
"Robert Strickland" <bstrickland@.comporium.net> wrote in message
news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
I need to dynamically set the href attribute for the <link> tag at run time
for my pages. I thought I saw code using the asp:placeholder to give the
code-behind a place to update the html control with a specific href setting.
Any ideas?
Thanks
thanks
"Shiva" <shiva_sm@.online.excite.com> wrote in message
news:#SjXjlliEHA.356@.tk2msftngp13.phx.gbl...
> Hi,
> Give the <link> tag id="lnk" (can be anything) and runat=server
attributes.
> From code-behind, use the Attributes property, like normal server-side
> controls, to add attribute values:
> lnk.Attributes.Add ("rel", "stylesheet")
> lnk.Attributes.Add ("href", "primary.css")
> HTH.
> "Robert Strickland" <bstrickland@.comporium.net> wrote in message
> news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
> I need to dynamically set the href attribute for the <link> tag at run
time
> for my pages. I thought I saw code using the asp:placeholder to give the
> code-behind a place to update the html control with a specific href
setting.
> Any ideas?
> Thanks
>
>
Thanks
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> wrote in message
news:#TdPDLliEHA.636@.TK2MSFTNGP12.phx.gbl...
> This sets technique sets the Title programmatically but you might be able
to
> rejig it to do a <link>
> http://authors.aspalliance.com/kenc/faq5.aspx
> "Robert Strickland" <bstrickland@.comporium.net> wrote in message
> news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
time
>

Set href for <link tag

I need to dynamically set the href attribute for the <link> tag at run time
for my pages. I thought I saw code using the asp:placeholder to give the
code-behind a place to update the html control with a specific href setting.

Any ideas?

ThanksThis sets technique sets the Title programmatically but you might be able to
rejig it to do a <link
http://authors.aspalliance.com/kenc/faq5.aspx

"Robert Strickland" <bstrickland@.comporium.net> wrote in message
news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
>I need to dynamically set the href attribute for the <link> tag at run time
> for my pages. I thought I saw code using the asp:placeholder to give the
> code-behind a place to update the html control with a specific href
> setting.
> Any ideas?
> Thanks
Hi,
Give the <link> tag id="lnk" (can be anything) and runat=server attributes.
From code-behind, use the Attributes property, like normal server-side
controls, to add attribute values:

lnk.Attributes.Add ("rel", "stylesheet")
lnk.Attributes.Add ("href", "primary.css")

HTH.

"Robert Strickland" <bstrickland@.comporium.net> wrote in message
news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
I need to dynamically set the href attribute for the <link> tag at run time
for my pages. I thought I saw code using the asp:placeholder to give the
code-behind a place to update the html control with a specific href setting.

Any ideas?

Thanks
Thanks

"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@.sympatico.ca> wrote in message
news:#TdPDLliEHA.636@.TK2MSFTNGP12.phx.gbl...
> This sets technique sets the Title programmatically but you might be able
to
> rejig it to do a <link>
> http://authors.aspalliance.com/kenc/faq5.aspx
> "Robert Strickland" <bstrickland@.comporium.net> wrote in message
> news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
> >I need to dynamically set the href attribute for the <link> tag at run
time
> > for my pages. I thought I saw code using the asp:placeholder to give the
> > code-behind a place to update the html control with a specific href
> > setting.
> > Any ideas?
> > Thanks
thanks

"Shiva" <shiva_sm@.online.excite.com> wrote in message
news:#SjXjlliEHA.356@.tk2msftngp13.phx.gbl...
> Hi,
> Give the <link> tag id="lnk" (can be anything) and runat=server
attributes.
> From code-behind, use the Attributes property, like normal server-side
> controls, to add attribute values:
> lnk.Attributes.Add ("rel", "stylesheet")
> lnk.Attributes.Add ("href", "primary.css")
> HTH.
> "Robert Strickland" <bstrickland@.comporium.net> wrote in message
> news:eoYrcOkiEHA.356@.tk2msftngp13.phx.gbl...
> I need to dynamically set the href attribute for the <link> tag at run
time
> for my pages. I thought I saw code using the asp:placeholder to give the
> code-behind a place to update the html control with a specific href
setting.
> Any ideas?
> Thanks

set image url programmatically for image control

I have a print page that uses an image control to display an image that is saved in a directory that is dynamically created upon a session start. I have the path readily available for the image control...but I am failing to get the image to display in the image control...

what is the syntax to properly set the url for an image control programmatically in the code behind?

the control is named printImage

thanks in advance

Eric

printImage.src=


printImage.ImageUrl = "your URL";

simple as that.


I am not getting the .src in intellisense for the control - is there a namespace/directive that I am missing?


ekeefauver:

I am not getting the .src in intellisense for the control - is there a namespace/directive that I am missing?

Nope, it's just, that property is called "ImageUrl" and not "src".


doesn't seem to work for me...do I somehow need to refresh the control after setting the URL to the image?

the path to the image is: C:\Documents and Settings\dekeefau\My Documents\Visual Studio 2005\WebSites\CMAT_FINAL\sessions\sd_ewwewtjwy23b5vnrmxm1mffz\print\theimage.bmp

which is stored in a string variable


No, there is no need to refresh the control. Perhaps the path you are using is not valid? Try using Server.MapPath() function with the relative path to the image in question.

Example:

Image is in the /Images subfolder of the application and its name is MyImage.gif

Then the code to display this image would be:

printImage.ImageUrl = Server.MapPath("~/Images/MyImage.gif");

set meta:resourcekey at runtime

Hi,

how do you set the meta:resourcekey of a dynamically generated control? If I create a new label onInit, how do i set "lblTest.Text" to it?

Thanks

Hello,

You can add the Text property and set its value to:

myLabel.Text = GetLocalResourceObject("Label1.Text");

Does this help?

Regards


Cheers :)

This is one of the methods you can use to do the Localization programmatically!

You also have another method for the Global resources as well!

Regards

Tuesday, March 13, 2012

Set Page Title in code behind

In my code behind page, I want to dynamically set the page title of my page
(the one that shows on IE's toolbar). How do I do that?

- NevynASP.NET 1.1

in webform:
...
<title ID="HtmlTitle" runat="server></title>
...

in codebehind:
...
protected GenericHtmlControl HtmlTitle;
...
void Page_Load(...){
this.HtmlTitle.Value = "blabla";
...

--Daniel Fisher(lennybacon)

"Nevyn Twyll" <astian@.hotmail.com> wrote in message
news:%23axxS0kgFHA.2560@.TK2MSFTNGP10.phx.gbl...
> In my code behind page, I want to dynamically set the page title of my
> page (the one that shows on IE's toolbar). How do I do that?
>
> - Nevyn
I can't find GenericHtmlControl in the ASP.NET 1.1 docs or autocomplete.

Help?

"Daniel Fisher(lennybacon)" <info@.removethis.lennybacon.com> wrote in
message news:Onljv5kgFHA.2156@.TK2MSFTNGP14.phx.gbl...
> ASP.NET 1.1
> in webform:
> ...
> <title ID="HtmlTitle" runat="server></title>
> ...
> in codebehind:
> ...
> protected GenericHtmlControl HtmlTitle;
> ...
> void Page_Load(...){
> this.HtmlTitle.Value = "blabla";
> ...
> --Daniel Fisher(lennybacon)
> "Nevyn Twyll" <astian@.hotmail.com> wrote in message
> news:%23axxS0kgFHA.2560@.TK2MSFTNGP10.phx.gbl...
>> In my code behind page, I want to dynamically set the page title of my
>> page (the one that shows on IE's toolbar). How do I do that?
>>
>>
>> - Nevyn
>>
Ah. Did you mean HtmlGenericControl?

Here's what I did that worked

System.Web.UI.HtmlControls.HtmlGenericControl HtmlTitle;

HtmlTitle = (HtmlGenericControl) FindControl("htmltitle");

HtmlTitle.InnerText = "What I want it to say";

"Daniel Fisher(lennybacon)" <info@.removethis.lennybacon.com> wrote in
message news:Onljv5kgFHA.2156@.TK2MSFTNGP14.phx.gbl...
> ASP.NET 1.1
> in webform:
> ...
> <title ID="HtmlTitle" runat="server></title>
> ...
> in codebehind:
> ...
> protected GenericHtmlControl HtmlTitle;
> ...
> void Page_Load(...){
> this.HtmlTitle.Value = "blabla";
> ...
> --Daniel Fisher(lennybacon)
> "Nevyn Twyll" <astian@.hotmail.com> wrote in message
> news:%23axxS0kgFHA.2560@.TK2MSFTNGP10.phx.gbl...
>> In my code behind page, I want to dynamically set the page title of my
>> page (the one that shows on IE's toolbar). How do I do that?
>>
>>
>> - Nevyn
>>
Just a word of caution with this though. Sometimes when you switch between
the designer and the HTML view, the <title> tag is reset such that the
@.runat attribute is removed.

"Daniel Fisher(lennybacon)" <info@.removethis.lennybacon.com> wrote in
message news:Onljv5kgFHA.2156@.TK2MSFTNGP14.phx.gbl...
> ASP.NET 1.1
> in webform:
> ...
> <title ID="HtmlTitle" runat="server></title>
> ...
> in codebehind:
> ...
> protected GenericHtmlControl HtmlTitle;
> ...
> void Page_Load(...){
> this.HtmlTitle.Value = "blabla";
> ...
> --Daniel Fisher(lennybacon)
> "Nevyn Twyll" <astian@.hotmail.com> wrote in message
> news:%23axxS0kgFHA.2560@.TK2MSFTNGP10.phx.gbl...
> > In my code behind page, I want to dynamically set the page title of my
> > page (the one that shows on IE's toolbar). How do I do that?
> > - Nevyn
Maybe because it's called HtmlGenericControl
and not GenericHtmlControl.

See :

http://www.csharpfriends.com/quicks...lGenericControl

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================

"Nevyn Twyll" <astian@.hotmail.com> wrote in message
news:emDf1BlgFHA.1416@.TK2MSFTNGP09.phx.gbl...
>I can't find GenericHtmlControl in the ASP.NET 1.1 docs or autocomplete.
> Help?
>
> "Daniel Fisher(lennybacon)" <info@.removethis.lennybacon.com> wrote in message
> news:Onljv5kgFHA.2156@.TK2MSFTNGP14.phx.gbl...
>> ASP.NET 1.1
>>
>> in webform:
>> ...
>> <title ID="HtmlTitle" runat="server></title>
>> ...
>>
>> in codebehind:
>> ...
>> protected GenericHtmlControl HtmlTitle;
>> ...
>> void Page_Load(...){
>> this.HtmlTitle.Value = "blabla";
>> ...
>>
>> --Daniel Fisher(lennybacon)
>>
>> "Nevyn Twyll" <astian@.hotmail.com> wrote in message
>> news:%23axxS0kgFHA.2560@.TK2MSFTNGP10.phx.gbl...
>>> In my code behind page, I want to dynamically set the page title of my page (the one
>>> that shows on IE's toolbar). How do I do that?
>>>
>>>
>>> - Nevyn
>>>
>>
>>
To get around the IDE rewriting of the <title runat="server".. stuff, I
usually put a literal control inside the title tag.
Like:
<title><asp:Literal runat="Server" id="litTitle"/></title
If you insert this in HTML view, and swap to design view, you get the member
field automagically, and can set it's Text property in ie. Page_Load.. :)

Lars-Erik

"Peter Rilling" <peter@.nospam.rilling.net> wrote in message
news:e0hvkJlgFHA.2840@.tk2msftngp13.phx.gbl...
> Just a word of caution with this though. Sometimes when you switch
> between
> the designer and the HTML view, the <title> tag is reset such that the
> @.runat attribute is removed.
> "Daniel Fisher(lennybacon)" <info@.removethis.lennybacon.com> wrote in
> message news:Onljv5kgFHA.2156@.TK2MSFTNGP14.phx.gbl...
>> ASP.NET 1.1
>>
>> in webform:
>> ...
>> <title ID="HtmlTitle" runat="server></title>
>> ...
>>
>> in codebehind:
>> ...
>> protected GenericHtmlControl HtmlTitle;
>> ...
>> void Page_Load(...){
>> this.HtmlTitle.Value = "blabla";
>> ...
>>
>> --Daniel Fisher(lennybacon)
>>
>> "Nevyn Twyll" <astian@.hotmail.com> wrote in message
>> news:%23axxS0kgFHA.2560@.TK2MSFTNGP10.phx.gbl...
>> > In my code behind page, I want to dynamically set the page title of my
>> > page (the one that shows on IE's toolbar). How do I do that?
>>>> > - Nevyn
>>>
>>

Set Page title dynamically

I would like to make the title of the page change according to invoice #
how can I do this?
didn't see a field on the page property in the code behind file.
Thanks,
ShaneGoogle: "page title"+"ASP.NET"
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> I would like to make the title of the page change according to invoice
#
> how can I do this?
> didn't see a field on the page property in the code behind file.
> Thanks,
> Shane
>
you mean actually search for an answer before asking a question! What =
an amazing concept!
"clintonG" < csgallagher@.REMOVETHISTEXT@.metromilwauke
e.com> wrote in =
message news:e1A6QycQEHA.1312@.TK2MSFTNGP12.phx.gbl...
> Google: "page title"+"ASP.NET"
>=20
> --=20
> <%=3D Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>=20
>=20
>=20
>=20
>=20
>=20
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in =
message
> news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
invoice
> #
>=20
>
You can set the page title through code by adding the runat="server"
attribute to your title tag.
Here's a good example:
http://www.aspalliance.com/kenc/faq5.aspx
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%236OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> I would like to make the title of the page change according to invoice #
> how can I do this?
> didn't see a field on the page property in the code behind file.
> Thanks,
> Shane
>
I didn't want to deprive the guy you know? :-)
<%= Clinton
"Raterus" <raterus@.spam.org> wrote in message
news:#$j3IIdQEHA.2644@.TK2MSFTNGP12.phx.gbl...
you mean actually search for an answer before asking a question! What
an amazing concept!
"clintonG" < csgallagher@.REMOVETHISTEXT@.metromilwauke
e.com> wrote in
message news:e1A6QycQEHA.1312@.TK2MSFTNGP12.phx.gbl...
> Google: "page title"+"ASP.NET"
> --
> <%= Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>
>
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in
message
> news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
invoice
> #
>
Thanks Steve,
That was exactly what I needed. Feel dumb that I didn't think of it.
works great.
thanks again,
Shane
"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:eQkLPPdQEHA.3476@.tk2msftngp13.phx.gbl...
> You can set the page title through code by adding the runat="server"
> attribute to your title tag.
> Here's a good example:
> http://www.aspalliance.com/kenc/faq5.aspx
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
> Hire top-notch developers at http://www.able-consulting.com
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
> news:%236OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
>

Set Page title dynamically

I would like to make the title of the page change according to invoice #

how can I do this?

didn't see a field on the page property in the code behind file.

Thanks,

ShaneGoogle: "page title"+"ASP.NET"

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> I would like to make the title of the page change according to invoice
#
> how can I do this?
> didn't see a field on the page property in the code behind file.
> Thanks,
> Shane
you mean actually search for an answer before asking a question! What an amazing concept!

"clintonG" <csgallagher@.REMOVETHISTEXT@.metromilwaukee.com> wrote in message news:e1A6QycQEHA.1312@.TK2MSFTNGP12.phx.gbl...
> Google: "page title"+"ASP.NET"
>
> --
> <%= Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>
>
>
>
>
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
> news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> > I would like to make the title of the page change according to invoice
> #
> > how can I do this?
> > didn't see a field on the page property in the code behind file.
> > Thanks,
> > Shane
>
You can set the page title through code by adding the runat="server"
attribute to your title tag.
Here's a good example:
http://www.aspalliance.com/kenc/faq5.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%236OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> I would like to make the title of the page change according to invoice #
> how can I do this?
> didn't see a field on the page property in the code behind file.
> Thanks,
> Shane
I didn't want to deprive the guy you know? :-)

<%= Clinton

"Raterus" <raterus@.spam.org> wrote in message
news:#$j3IIdQEHA.2644@.TK2MSFTNGP12.phx.gbl...
you mean actually search for an answer before asking a question! What
an amazing concept!

"clintonG" <csgallagher@.REMOVETHISTEXT@.metromilwaukee.com> wrote in
message news:e1A6QycQEHA.1312@.TK2MSFTNGP12.phx.gbl...
> Google: "page title"+"ASP.NET"
> --
> <%= Clinton Gallagher
> A/E/C Consulting, Web Design, e-Commerce Software Development
> Wauwatosa, Milwaukee County, Wisconsin USA
> NET csgallagher@. REMOVETHISTEXT metromilwaukee.com
> URL http://www.metromilwaukee.com/clintongallagher/
>
>
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in
message
> news:#6OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> > I would like to make the title of the page change according to
invoice
> #
> > how can I do this?
> > didn't see a field on the page property in the code behind file.
> > Thanks,
> > Shane
Thanks Steve,

That was exactly what I needed. Feel dumb that I didn't think of it.

works great.

thanks again,

Shane

"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:eQkLPPdQEHA.3476@.tk2msftngp13.phx.gbl...
> You can set the page title through code by adding the runat="server"
> attribute to your title tag.
> Here's a good example:
> http://www.aspalliance.com/kenc/faq5.aspx
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
> Hire top-notch developers at http://www.able-consulting.com
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
> news:%236OfbicQEHA.3016@.tk2msftngp13.phx.gbl...
> > I would like to make the title of the page change according to invoice #
> > how can I do this?
> > didn't see a field on the page property in the code behind file.
> > Thanks,
> > Shane