Almost all parts of ASP.NET scripts are information processors. They take data values input by users or extracted from files and databases and convert that data to information through processing routines. At the same time, scripts can arrange and style to information through processing routines. At the same time, scripts can arrange and style the output for differing routines. At the same time, scripts can arrange and style the output for differing visual effects. They can create XHML code for delivery to the browser, and they would style the information for dramatic effect.
Browser-based DHTML means are described through the following button that changes its visual characteristics when clicked. In this case, CSS property settings are applied to the button under local script control.
document.getElementById(“Button”).style.backgroundColor = “#FF0033”
document.getElementById(“Button”).style.color = “#FFF000”
document.getElementById(“Button”).style.fontFamily = “comic sans ms”
document.getElementById(“Button”).value = “Thank You”
<input id=”Button” type=”button” value=”Click Me” onclick=”ChangeFormat ()”
Dynamic Server CSS Styling
The similar style changes can be made to happen with a server script. The necessity is which the button requires to be a server control to create it accessible by the script.
Sub Change_Format (Src As Object, Args As EventArgs)
Button.Style(“background-color”) = “#FF0033”
Button.Style(“color”) = “#FFFF00”
Button.Style(“font-family”) = “comic sans ms”
Button.Text = “Thanking You”
<asp:Button id=”MyButton” Text=”Click Me” Runat=”Server”
Style=”background-color:#F0F0F0; color:#990000″ OnClick=”Change_Format”/>
Latest posts by Sandeep Shankar (see all)
- Important Ranking Signals To Float High On Search Engines List - November 23, 2019
- Reach your target audience through search engine marketing services - November 23, 2019
- Key Factors for Successful Ecommerce SEO - November 15, 2019