Does ASP.Net still recognize the global.asa file?
ASP.Net does not recognize the standard ASP global.asa file. Instead it uses a file named global.asax with the same – plus additional – functionality.
Where can I get information on Cookies in ASP.NET
Refer Mike Pope’s article Basics of Cookies in ASP.NET
How to concatenate and display 2 fields in a dropdownlist
Method1 ‘Select FirstName + ’ ’ + LastName as fullname from Employees’ then use ’fullname’ as the datatextfield for the dropdownlist Method2 Dim newColumn As New DataColumn() With newColumn .ColumnName = ‘fullname’ .DataType = System.Type.GetType(‘System.String’) .Expression = ‘LastName+’ ’+FirstName’ End With ds.Tables(0).Columns.Add(newColumn) ddlName.DataTextField = ‘FullName’ ddlName.DataValueField = ’employeeid’ ddlName.DataSource = ds.Tables(0).DefaultView ddlName.DataBind() C# DataColumn newColumn =new DataColumn(); newColumn.ColumnName = ‘fullname’; newColumn.DataType = System.Type.GetType(‘System.String’); newColumn.Expression = ‘LastName+’ ’+FirstName’; ds.Tables[0].Columns.Add(newColumn); DropDownList1.DataTextField = ‘FullName’; DropDownList1.DataValueField = ’employeeid’; DropDownList1.DataSource = ds.Tables[0].DefaultView; DropDownList1.DataBind();
How can I reference simple DLL which contains one class but has no namespace assigned to it in an .aspx page
You don’t need a namespace to reference it; anything in the bin folder is implicitly in the same namespace as the page being compiled. So if your class looks like this: Public Class MyClass1 Public Sub New() End Sub public Function getTheName(byval strval as string) as string Return ‘Hello’ + strval End function End Class VB.NET Dim mc As New MyClass1 Response.Write(mc.getTheName) C# MyClass1 mc = new MyClass1(); Response.Write(mc.getTheName);
How can I to divide the .aspx page to different parts with different functionality in a neat and organized manner. Is there any control that can do that?
You can use Panel controls, which render as HTML div elements. You can then show or hide the panels by enabling/disabling them. In addition, you can specify different formatting options for different Panels/divs using manual formatting or CSS styles.