Click here to Skip to main content
16,005,121 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to write this code in C# Pin
Caio Kinzel Filho21-Sep-08 20:53
Caio Kinzel Filho21-Sep-08 20:53 
GeneralRe: how to write this code in C# Pin
Piyush Vardhan Singh21-Sep-08 21:22
Piyush Vardhan Singh21-Sep-08 21:22 
GeneralRe: how to write this code in C# Pin
Abhishek Sur21-Sep-08 22:24
professionalAbhishek Sur21-Sep-08 22:24 
GeneralRe: how to write this code in C# Pin
Caio Kinzel Filho22-Sep-08 3:41
Caio Kinzel Filho22-Sep-08 3:41 
QuestionHorizontal and vertical centering of a Update panel progress bar in a page. How? Pin
G Nathan21-Sep-08 20:12
G Nathan21-Sep-08 20:12 
QuestionCall a perl script (.pl file) from asp.net Pin
giri_jazz21-Sep-08 20:01
giri_jazz21-Sep-08 20:01 
Questionasp.net web application on Linux server Pin
UD(IA)21-Sep-08 19:52
UD(IA)21-Sep-08 19:52 
AnswerRe: asp.net web application on Linux server Pin
Caio Kinzel Filho21-Sep-08 20:07
Caio Kinzel Filho21-Sep-08 20:07 
GeneralRe: asp.net web application on Linux server Pin
UD(IA)22-Sep-08 0:54
UD(IA)22-Sep-08 0:54 
GeneralRe: asp.net web application on Linux server Pin
Caio Kinzel Filho22-Sep-08 3:46
Caio Kinzel Filho22-Sep-08 3:46 
Questionhow to validate the text enter in the textbox after entering the complete in text in the textbox Pin
lakshmichawala21-Sep-08 18:51
lakshmichawala21-Sep-08 18:51 
AnswerRe: how to validate the text enter in the textbox after entering the complete in text in the textbox Pin
Caio Kinzel Filho21-Sep-08 20:29
Caio Kinzel Filho21-Sep-08 20:29 
GeneralRe: how to validate the text enter in the textbox after entering the complete in text in the textbox Pin
lakshmichawala21-Sep-08 21:09
lakshmichawala21-Sep-08 21:09 
GeneralRe: how to validate the text enter in the textbox after entering the complete in text in the textbox Pin
balaji.t21-Sep-08 22:49
balaji.t21-Sep-08 22:49 
Questionhow this Request.send work (XMLHttpRequest ) Pin
Member 465900121-Sep-08 18:40
Member 465900121-Sep-08 18:40 
AnswerRe: how this Request.send work (XMLHttpRequest ) Pin
Steve Echols21-Sep-08 19:03
Steve Echols21-Sep-08 19:03 
GeneralRe: how this Request.send work (XMLHttpRequest ) Pin
Member 465900121-Sep-08 20:02
Member 465900121-Sep-08 20:02 
QuestionHow to display a "Eval"-type expression in a Page.Header.Title attribute? Pin
Nostrom021-Sep-08 15:26
Nostrom021-Sep-08 15:26 
Hello,
I have been reading about setting dynamic page titles in ASP.NET 2.0, in order to modify the "catalog.aspx" page of my web application. Most of the articles on this subject, however, seem to be describing somewhat complicated solutions for creating dynamic site maps, whereas I would just like to set the title of my catalog.aspx page to the name of the current category or product in my catalog.
Although I can see how to set the title property in code like so:

Sub Page_Load()<br />
Page.Header.Title = "The current time is: " & DateTime.Now.ToString()<br />
End Sub


...I can't figure out how to dump the contents of a <%# Container.Name %> -type container into this statement.
I am using a 3rd-party shopping cart package (DotNetCart), that displays categories and products on the http://www.mywebsite.com/catalog.aspx page in typical catalog fashion:

http://www.mywebsite.com/catalog.aspx?CategoryID=200 (The category named "Handbags")

http://www.mywebsite.com/catalog.aspx?CategoryID=200&ItemID=13 (The category named "Handbags", and the item "Canvas Handbag")

In the above examples, I'd like to have the page title change to "My Website: Handbags" and "My Website: Canvas Handbag" respectively.

The third-party vendor's catalog control looks sort of like this (extra tags and declarative controls omitted):

<dotnetCART:DisplayCatalog><br />
	<CategoryTemplate><br />
		<%#Container.Image%><br />
		<%# Container.Name %><br />
	</CategoryTemplate><br />
	<ItemDetailsTemplate><br />
		<%#Container.Name%><br />
		<%#Container.ItemID%><br />
		<%#Container.Price%><br />
	</ItemDetailsTemplate><br />
</dotnetCART:DisplayCatalog>


How would I go about displaying the catalog control's Category and ItemDetails' Names in my page title attribute? Thanks for any advice.
AnswerRe: How to display a "Eval"-type expression in a Page.Header.Title attribute? Pin
Steve Echols21-Sep-08 19:08
Steve Echols21-Sep-08 19:08 
QuestionRegarding authorization for more than 100 roles Pin
bitsbuilt21-Sep-08 9:54
bitsbuilt21-Sep-08 9:54 
Questionset ctrlKey value dynamically in Javascript, ASP.NET Pin
Raja Narendra Reddy21-Sep-08 8:27
Raja Narendra Reddy21-Sep-08 8:27 
AnswerRe: set ctrlKey value dynamically in Javascript, ASP.NET Pin
Perspx21-Sep-08 8:50
Perspx21-Sep-08 8:50 
Questionquery string problem........................ Pin
shaina223121-Sep-08 2:38
shaina223121-Sep-08 2:38 
AnswerRe: query string problem........................ Pin
shaina223121-Sep-08 3:13
shaina223121-Sep-08 3:13 
GeneralRe: query string problem........................ Pin
Guffa21-Sep-08 11:36
Guffa21-Sep-08 11:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.