Why do I get the error message ‘BC30451: Name ‘ConfigurationSettings’ is not declared’?
This is because you have not added namespace System.Configuration
What is a parser error?
Its basically a syntax error in your ASPX page. It happens when your code is inconvertible for the part of ASP.NET that transforms your code into an executable.
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 to use absolute positioning for controls in a web page in VS2005?
To get the items absolutely positioned navigate through the menu as below and set Tools -> Options -> HTML Designer -> CSS Positioning -> Check the CheckBox positioning->Select Absolutely positioned to absolutely positioned.
How can you apply skin styles to button?
Apply Skin Styles to webcontrols(Textbox,button) private Style CreateStyle(Color backClr, Color foreClr, int borderWidth, string fntName, int fntSize, bool fntBold, bool fntItalic /*Youcanaddmoreparameters to the method */) { Style s = new Style(); s.BackColor = backClr; s.ForeColor = foreClr; s.BorderWidth = borderWidth; s.Font.Name = fntName; s.Font.Size = fntSize; s.Font.Bold = fntBold; s.Font.Italic = fntItalic; return s; } // This method applies a Style object to a WebControl private void SetControlStyle(System.Web.UI.WebControls.WebControl ctrl,Style s) { ctrl.ApplyStyle(s); } private void Button1_Click(object sender, System.EventArgs e) { Style st = CreateStyle(Color.Green, Color.Yellow, 3,'Verdana', 10, true, true); SetControlStyle(TextBox1, st); st = CreateStyle(Color.Red, Color.Black, 2,'Verdana', 12, true, true); SetControlStyle(Button1, st); }