Cookie with subkeys looks like this: HttpCookie myCookie = new HttpCookie(“MainCookie”); myCookie.Values.Add(“Email”, myDr["Email"].ToString()); myCookie.Values.Add(“User_Id”, myDr["Id"].ToString()); myCookie.Values.Add(“First_Name”, myDr["firstname"].ToString()); myCookie.Values.Add(“Last_Name”, myDr["lastname"].ToString()); myCookie.Expires = DateTime.Now.AddYears(1); Response.Cookies.Add(myCookie);
[Read more →]
I am doing ASP.Net programming (using C#) these few days and I am thinking of a way to display interactive contents without post back the page. For example, there are two DropDownList, cboCategory and cboProduct respectively. If user clicked on cboCategory, all related products under the selected category will be displayed in cboProduct. In normal [...]
[Read more →]
Today one of my colleagues experienced an issue when installing SQL Server 2005 Express Edition on her PC. It simply spends hours on “Setting File Security…” screen. After googling around, finally found this solution: http://support.microsoft.com/?kbid=910070 It appears that if you work in domain, the installation will do some verification on the domain user. A workaround [...]
[Read more →]
Another friends of mine is having problem viewing ASPX website. Whenever she typed in an URL, “Server Application Unavailable” is shown. Checked everything is okay. The IIS is configured to use .Net Framework 2.0 and the web application is created. I even added localhost as a trusted site. Googled it and returned not much help. [...]
[Read more →]
It took me one day in troubleshooting “error: 40 – Could not open a connection to SQL Server” error whenever I attempt to connect to Management Studio Express (MSE) or sqlcmd. I tried the solution suggested on Internet and eventually landed on the following solution:
[Read more →]