give Target="_blank"
<asp:HyperLinkField Target="_blank" />
Online Home
give Target="_blank"
<asp:HyperLinkField Target="_blank" />
public class File1
{
public string FileName { get; set; }
}
List<File1> Files = new List<File1>();
if (Directory.GetFiles(Server.MapPath("/uploads/")).Count() > 0)
{
foreach (var item in Directory.GetFiles(Server.MapPath("/uploads/")))
{
Files.Add(new File1 { FileName = item });
Response.Write(item);
grdTest.DataSource = Files;
grdTest.DataBind();
}
}
Response.Write(Request.PhysicalApplicationPath ); //output C:\Users\Yash User\Documents\Visual Studio 2012\WebSites\YashWebsiteWebForm\
Response.Write(Request.PhysicalPath + Environment.NewLine); // output C:\Users\Yash User\Documents\Visual Studio 2012\WebSites\YashWebsiteWebForm\Default3.aspx
Response.Write(Request.RawUrl ); //output /Default3.aspx
Response.Write(Request.Url); // output http://localhost:49730/Default3.aspx
Server.MapPath (""); //output C:\Users\Yash User\Documents\Visual Studio 2012\WebSites\YashWebsiteWebForm
> Open Sql server management studio
> Right click on editor and click on "Design query in editor"
> And right click in that to change insert update or delete query.
SELECT [Date]
,[SchemeNo] ,[Commission]
INTO test3
FROM PolicyDetails