I do have some projects that written in Classic ASP. I come accross the case that need to draw NewLine in Classic ASP.
Response.Write (vbCrLf) solve my problem
Web application Sharing including ASP, ASP.NET 1.0 (C#) AND ASP.NET 2.0 (C#) MS SQL 2005 Server, Life, Travelling
I do have some projects that written in Classic ASP. I come accross the case that need to draw NewLine in Classic ASP.
Response.Write (vbCrLf) solve my problem
I backup a database called RatePosts from production server and restored it on my development machine. When I tried to access the diagram I received the following message:
Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of theDatabase Properties dialog box or the ALTER AUTHORIZATION statement to setthe database owner to a valid login, then add the database diagram support objects.
To solve that, open a new query and run query below
ALTER AUTHORIZATION ON DATABASE::DatabaseName TO [ComputerName\Administrator];
In my case, my database name: RatePosts, machine name: AppDev05
ALTER AUTHORIZATION ON DATABASE::RatePosts TO [AppDev05\Administrator];
Done. Problem solved.
I have a checkbox name Checkbox2 runat server, if we try to get value by calling ID= Checkbox2 using javascipt, javascript error: Object not found, this is because server side ID is different with the client side ID. Client side ID for this object is Checkbox2.ClientID.
For example, i need to pass Checkbox2 value to a javascript function during page load, this is what i do.
protected void Page_Load(object sender, EventArgs e)
{
Page.RegisterStartupScript("Onload", "<script language='javascript'>fnCheck('" + Checkbox2.ClientID +"');</script>");
}
fnCheck is a javascript function that i already define some where.
Now you go to check your log file size reduce and back to around 500Kbyte.
Done.