Cannot have multiple items selected in a DropDownList.

The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.

string format = “MMMM/dd/yyyy”;

change to

string format = “M/d/yyyy”;

Index and length must refer to a location within the string. Parameter name: length

string fulltext2 = dr["FullText2"].ToString();
Line 282:
Line 283: fulltext2 = fulltext2.Substring(0, 6);
Line 284:
Line 285: if (fulltext2 != “

Session state has created a session id, but cannot save it because the response was already flushed by the application.

This application is currently offline. To enable the application, remove the app_offline.htm file from the application root directory.

Please deleteĀ app_offline.htm from solution explorer

PATINDEX examples MSSQL 2008

SELECT PATINDEX(‘%asd[a-z]%’,Heading)
FROM ITEMS
WHERE IID = 10002;

is too long. Maximum length is 128 SQL 2008

Datetime year in dropdown using c# asp.net

DateTime Past_Year = DateTime.Now;

Past_Year = Past_Year.AddYears(2);

intyear = Past_Year.Year;

for (int i = 1900; i <= intyear; i++)
{
DDL_Year.Items.Add(i.ToString());
}

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

MultiView in Asp.net

runat="server" AutoPostBack="True">
View 1
View 2
View 3



Now showing View #1



Now showing View #2
HyperLink
HyperLink


Now showing View #3


Code
protected void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
{
MultiView1.ActiveViewIndex = Convert.ToInt32(DropDownList1.SelectedValue);

}