404 - File or directory not found

Posted by Shoyeb under Regular Expressions on 7/23/2011 | Points: 10 | Views : 2921 | Status : [Member] | Replies : 1
Hi All,

i am using this code for navigation url

if (SupplierCount > 5)
{
_HomePageFeatureSupplers.CountSuppliers = "..more";
_HomePageFeatureSupplers.MoreUrl = "~/MoreSearch/SearchMoreSupplier.aspx?CityId=" + CityId ;

//_HomePageFeatureSupplers.MoreUrl = "http://www.designbureauindia.com/";
}
it runs correctly on local but on server

http://landlordpeople.com/FileNotFound.htm?aspxerrorpath=/MoreSearch/SearchMoreSupplier.aspx
file not found erroe shows.

what is the problem




Responses

Posted by: SheoNarayan on: 7/23/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
What is your "_HomePageFeatureSupplers", is this asp:HyperLink control? If yes there is no property called MoreUrl in it.

Try to browse "http://landlordpeople.com/MoreSearch/SearchMoreSupplier.aspx?CityId=555", is that working? If yes, remove "~" from the url you are specifying and try again.

Hope this should work.

Thanks


Regards,
Sheo Narayan
http://www.dotnetfunda.com

Shoyeb, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response