Click here to Skip to main content
15,895,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
QuestionHow to pass a form field value to a storedprocedure in detailsview? Pin
JUNEYT20-Sep-08 23:09
JUNEYT20-Sep-08 23:09 
Questionin javascript when calling any method then Pin
Member 465900120-Sep-08 20:30
Member 465900120-Sep-08 20:30 
AnswerRe: in javascript when calling any method then [modified] Pin
Perspx20-Sep-08 20:45
Perspx20-Sep-08 20:45 
GeneralRe: in javascript when calling any method then Pin
Member 465900120-Sep-08 21:12
Member 465900120-Sep-08 21:12 
GeneralRe: in javascript when calling any method then Pin
Member 465900120-Sep-08 21:36
Member 465900120-Sep-08 21:36 
GeneralRe: in javascript when calling any method then Pin
Perspx20-Sep-08 21:42
Perspx20-Sep-08 21:42 
GeneralRe: in javascript when calling any method then Pin
Member 465900120-Sep-08 21:44
Member 465900120-Sep-08 21:44 
Questionhow to get client IP Pin
bizhanmp20-Sep-08 17:32
bizhanmp20-Sep-08 17:32 
AnswerRe: how to get client IP Pin
Caio Kinzel Filho20-Sep-08 18:07
Caio Kinzel Filho20-Sep-08 18:07 
QuestionHow to subscribe the events for dynamic control?? Pin
coderinhz19-Sep-08 21:51
coderinhz19-Sep-08 21:51 

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.