How do I get the full url of the page I am on in C#

Here is a list I normally refer to for this type of information: Request.ApplicationPath : /virtual_dir Request.CurrentExecutionFilePath : /virtual_dir/webapp/page.aspx Request.FilePath : /virtual_dir/webapp/page.aspx Request.Path : /virtual_dir/webapp/page.aspx Request.PhysicalApplicationPath : d:\Inetpub\wwwroot\virtual_dir\ Request.QueryString : /virtual_dir/webapp/page.aspx?q=qvalue Request.Url.AbsolutePath : /virtual_dir/webapp/page.aspx Request.Url.AbsoluteUri : http://localhost:2000/virtual_dir/webapp/page.aspx?q=qvalue Request.Url.Host : localhost Request.Url.Authority : localhost:80 Request.Url.LocalPath : /virtual_dir/webapp/page.aspx Request.Url.PathAndQuery : /virtual_dir/webapp/page.aspx?q=qvalue Request.Url.Port : 80 Request.Url.Query : ?q=qvalue … Read more

What is the difference between a User Control Library and a Custom Control Library?

In practice custom controls are something you implement on the code level while you can use XAML for user controls. The custom controls extend one of the WPF control base classes and provide additional functionality through code so all the added logic and representation must be implemented inside the code. A user control is technically … Read more

“The Controls collection cannot be modified because the control contains code blocks”

First, start the code block with <%# instead of <%= : <head id=”head1″ runat=”server”> <title>My Page</title> <link href=”https://stackoverflow.com/questions/778952/css/common.css” rel=”stylesheet” type=”text/css” /> <script type=”text/javascript” src=”<%# ResolveUrl(“~/javascript/leesUtils.js”) %>”></script> </head> This changes the code block from a Response.Write code block to a databinding expression. Since <%# … %> databinding expressions aren’t code blocks, the CLR won’t complain. Then … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)