|
Try Culture Settings (HI-IN)
|
|
|
|
|
hi i am using sitemappath control in my website.i have some pages in common like:
home>>stonecollection>>ProductStone>>Cart>>...
home>>newarrivals>>ProductStone>>Cart>>...
i use the following sitemap file:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
<siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
<siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>
but i got error:multiple nodes with same url found.
when i remove the sitemapnode with url productstone.aspx and cart.aspx from one of the parent node
the problem is solved but i want sitemap in above pattern.tell me what to do.....
thank's
|
|
|
|
|
Hi
The problem with this control is that you cannot use same page for multiple nodes.
As in your case are using ProductStone.aspx multiple times
|
|
|
|
|
what shud i do then...is there any other way..
|
|
|
|
|
Yes, You can use dummy query string or # with the url. That will resolve your issue !!
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
try like this..!
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="Default2.aspx" title="Home" description="This is Home Page.">
<siteMapNode url="Stones.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
<siteMapNode url="Newarrivals.aspx" title="stones" description="Refine stones page">
<siteMapNode url="ProductStone.aspx?ssd=asd" title="ProductStone" description="Product Stone page">
<siteMapNode url="Cart.aspx?ssd=asd" title="Cart" description="Cart page"></siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMapNode>
</siteMap>
For More info of Menu Control refer this link..!
Menu Control Selected Item Color Change Depending on Selection [^]
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Dear All,
I want to use best caching tech for getting,
dynamic data from server
for exmple my server hosting stock values and values will change always
and thier are alot of hits on server with hight traffic ,
i want to use caching to improve the performance,and not get unchanged values??
i will use web service to consume values..
Yes. CreatiVity withOuT limiTs
modified on Friday, December 25, 2009 12:06 PM
|
|
|
|
|
You have a quick read on this article. This may give you a good idea,
Exploring Caching in ASP.NET[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thanks for link
but i want for updatable data to be cached??
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
Amr M. K. wrote: but i want for updatable data to be cached??
Yes, you can easily do that. You can use CacheDapendency with the data. When ever the source of the cached data will change cache data will update automatically. From where you are reading the data ? If it is sql server you can easily set dependency with the database server or if you are reading data from file then also you can set the dependency with the file.
Let me know if you need any more help.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
thanks for reply,
I read that you can do it in aspx page
but it will work in web service,,how?
data source from sql server
Yes. CreatiVity withOuT limiTs
|
|
|
|
|
|
Hey guys, I have searched about this on the new and here but I'm still confused, so I'm gonna lay out this and hopefully with your help I can get it over with.
I'm trying to design and implement a 3 layer web application,
I want to fetch the info(fields such as name, email, ... ) for a student from Student table in my database:
(consequently I want to do update, delete and insert as well)
In my DAL class I fetch the record from database and return a dataset:
public DataSetFetchProfile(string UserName)<br />
{ <br />
DataSet ThisDataSet = new DataSet();<br />
ThisAd.SelectCommand = new SqlCommand("Profile_FetchStudentInfo", ThisConnection);<br />
ThisAd.SelectCommand.CommandType = CommandType.StoredProcedure;<br />
ThisAd.SelectCommand.Parameters.Add("@UserName", SqlDbType.NVarChar, 256).Value = UserName;<br />
ThisAd.Fill(ThisDataSet, "StudentT");<br />
return ThisDataSet;<br />
}
and I have this function in my BLL class calling this one:
public DataSet ReturnProfileInfo(string UserName)<br />
{<br />
return ThisStudent.FetchProfile(UserName);<br />
}
There are two things I might do in my presentaion layer (webpage),
1- populate some text boxes (fields of the record which was fetched)
I use the following code:
foreach (DataRow row in ThisDataSet.Tables["StudentT"].Rows)<br />
{<br />
}
2- populate a grid view ( which is easy by assigning its datasourse to the dataset which was returned)
one thing is that the point of having 3 layered is not having any codes related to database, but I have to have a dataset in my page !
I have read a lot that this isn't such a good way of implementing 3 layer architecture, I'm working on my final project and I need something not too much confusing.
I would really appreciate it if you could send me a sample of redirect me to a page ( again as I mentioned before, I 'm looking for something less confusing and easy to implement), so I can finish it and also learn something.
Regards,
K
|
|
|
|
|
You've done the right thing, you can have dataset, datatable or class object (orm) in your page, otherwise you can implement your requirement! Let me ask you something, can you tell me what db you're using by looking at ds, dt or object? No, you can't because that's independent of actual database your ds,dt doesn't know from what type of db they're getting data.
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
Hi,
Can anybody tell me why microsoft office whould not be installed in our web servers , how the office dlls will affect our sites .
|
|
|
|
|
Then why you are not putting those dlls in Server from your client system ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
Thanq for your reply , I just heard that microsoft office should not be installed on the web servers , so wanted to know the reason.
|
|
|
|
|
Hi,
I'm facing an big issue. i have created an small project which is working good in normal environment.
but when it is going in cloud computing, events are not working properly.i have used datalist and itemcommand is used. but its not working.
Please help me as soon as possible. Its very urgent.
I'm waiting for reply.
Thnax in advance.
krishna veer singh
|
|
|
|
|
krishnaveer wrote: but when it is going in cloud computing, events are not working properly.i have used datalist and itemcommand is used. but its not working.
What do you mean by not working ? What environment do you have ?
krishnaveer wrote: Please help me as soon as possible. Its very urgent.
Merry Christmas !!
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Actually i have taken datalist inside datalist. Now on the page load i'm filling the datalist. first time its working fine. but when i click on a button inside datalist, now everything get disappear, means datalist is not loading again. This is happening in cloud computing environment.
But the same thing is working fine in normal .net hosting environment.
krishna veer singh
|
|
|
|
|
hii all,
i want to show the navigation path in my website like from which page the user navigated.
eg:home>>default1>>default2>>.....so on.can any body give me idea what shud i do.shud i maintain session or is there any other way....thank's
Regard's
parikshit
|
|
|
|
|
|
|
depends on your requirement. you can also bind the simple repeater at there.
it known as bread-cums.
Regards
Keyur Satyadev
|
|
|
|
|
you can do the path yourself in the page which you need to show to the user.
|
|
|
|