Hi All,
I am using menu control in user control and then user control in master page. All my content controls are based on the the master page. In IIS i had set the virula folder to root foleder where all the related pages are palced and set the defalut page set to ContentPages/Main.aspx.
Ex.
Root folder:
c:\TestWebSite
User Controls are in:
c:\TestWebSite\UserControls\mainmenu.ascx -- Contains the menu control
menu items data is provided by XML file.
Master Page is in :
c:\TestWebSite\MasterPage\MainMaster.master
Content pages are in:
c:\TestWebSite\ContentPages\firstTest.Aspx
In IIS I had set the virtual folder "TestWeb" mapped to c:\TestWebSite
And the default page is set ContentPages/firstTest.aspx
http://localhost/TestWeb , When I put this url "firtsTest.aspx" page will be serverd properly but when I click on menu item it doesn't take me to any pages. it gives error because the ursl it puts
http://localhost/TestWeb/secondpage.aspx it supposed to http://localhost/TestWeb/ContentPages/secondpage.aspx. I had specified the in xml like
"~/ContentPages/secondpage.aspx" . I dont why it is happening
Anybody has any idea why it is happening.? Thank you all in advance.