Posted on: 3/22/2011 9:52:01 AM | Views : 2057

Hi, Am building an dll which contains a function called geturl(Uri myuri), Uri as parameter. Basically i want to get the url of the page which calls this function(function is located on DLL). I have used the below code, but am not sure the page url can be overrided //In default.aspx //class declaration myclass mc = new myclass(); Uri ur = Request.Url; string str = mc.geturl(ur) //In DLL public string geturl(Uri myuri) { Uri MyUrl = myuri; string requrl = MyUrl.AbsoluteUri.ToString(); return requrl; } So my question is can the Uri on the default.aspx be assigned with custom url as http://www.google.com instead of http://localhost/test/default.aspx Thanks in advance, plz help Regards, Navin ...

Go to the complete details ...