What is the difference between Absolute vs Relative URLs

Absolute /Fully Qualified URLs: Contain all information necessary for the browser(or other client program) to locate the resource named in the URL This includes protocol moniker used( i.e http://, ftp://..etc..), Server’s Domain name or IP address and the file path Absolute URL looks as http://localhost/syncfusion/page1.aspx Relative URLs: Only provide information necessary to locate a resource relative to the current document(document relative) or current server or domain(root relative) Document relative URL – page1.aspx Root Relative URL – /syncfusion/Admin/pagelog.aspx

How to use a single DataReader associated with two different tables to databind two different listbox controls

VB.NET Dim cn As SqlConnection Dim cmd As SqlCommand Dim dr As SqlDataReader cn = New SqlConnection('Server=localhost;uid=sa;database=northwind;pwd=') cmd = New SqlCommand('select * from products;select * from categories', cn) cn.Open() dr = cmd.ExecuteReader() ListBox1.DataSource = dr ListBox1.DataTextField = 'productname' ListBox1.DataBind() dr.NextResult() ListBox2.DataSource = dr ListBox2.DataTextField = 'categoryname' ListBox2.DataBind() C# SqlConnection cn; SqlCommand cmd; SqlDataReader dr; cn = new SqlConnection('Server=localhost;uid=sa;database=northwind;pwd='); cmd= new SqlCommand ('select * from products;select * from categories', cn); cn.Open(); dr = cmd.ExecuteReader(); ListBox1.DataSource = dr; ListBox1.DataTextField = 'productname'; ListBox1.DataBind(); dr.NextResult(); ListBox2.DataSource = dr; ListBox2.DataTextField = 'categoryname'; ListBox2.DataBind();

How to save a file in the client machine

The browser will not allow you to save a file directly to a client machine. You could however do a Response.Redirect(‘http://server/filename’); which would send the file back to the browser, at which point the user would be prompted to save / open the file.