Google

How to use Dynamic Skin in Asp.net

Written on:September 12, 2011
Comments
Add One
<%@ Page Language="C#" Theme="DynamicSkin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org
/TR/xhtml11/DTD/xhtml11.dtd">
<script runat="server">

    protected void Page_PreInit(object sender, EventArgs e)
    {
        if (Request["skin"] != null)
        {
            switch (Request["skin"])
            {
                case "professional":
                    grdMovies.SkinID = "Professional";
                    break;
                case "colorful":
                    grdMovies.SkinID = "Colorful";
                    break;
            }
        }
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Show Dynamic Skin</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

    <asp:GridView
        id="grdMovies"
        DataSourceID="srcMovies"
        Runat="server" />

     <asp:SqlDataSource
        id="srcMovies"
        ConnectionString="<%$ ConnectionStrings:Movies %>"
        SelectCommand="SELECT Id,Title,Director FROM Movies"
        Runat="server" />

    <hr />

    <a href="showdynamicskin.aspx?skin=professional">Professional</a>
    &nbsp;|&nbsp;
    <a href="showdynamicskin.aspx?skin=colorful">Colorful</a>

    </div>
    </form>
</body>
</html>

Introduction to Hyper Text Markup Language – HTML

Written on:September 10, 2011
Introduction to Hyper Text Markup Language – HTML

Introduction: It is a simple language to design and develop web pages. It also supports multimedia and document links. Web page: Web is a collection of files known as web pages. It contain hyperlinks to link other web pages. Uniform Resource Locator: It is the primary naming scheme which is used to identify web resources. URL is a standard method used to identify any resource. Mostly use of services, host…

Read more...

How to use Dynamic Theme in Asp.net

Written on:September 6, 2011
How to use Dynamic Theme in Asp.net

<%@ Page Language=”C#” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd” <script runat=”server”> protected void Page_PreInit(object sender, EventArgs e) { if (Request["theme"] != null) { switch (Request["theme"]) { case “Green”: Profile.userTheme = “GreenTheme”; break; case “Pink”: Profile.userTheme = “PinkTheme”; break; } } Theme = Profile.userTheme; } </script> <html xmlns=”http://www.w3.org/1999/xhtml” > <head runat=”server”> <title>Dynamic Theme</title> </head> <body> <form id=”form1″ runat=”server”> <div class=”content”> <h1>Dynamic Theme</h1> Please select a Theme: <ul> <li>…

Read more...

How to set Class Path Step by Step in Java

Written on:August 28, 2011
How to set Class Path Step by Step in Java

Class Path Steps: Right Click my computer icon After select properties After, This will be opened “System properties” wizard                      

Read more...

How to use Layout Managers in Java

Written on:August 27, 2011
How to use Layout Managers in Java

Introduction to LayoutManagers The layout manger classes are a set of class that implements the Java.awt.LayoutManager interface. The layout manager is an object that controls the size and position (layout) of components inside a Container object. Basic LayoutManagers FlowLayout BorderLayout GridLayout GridBagLayout CardLayout FlowLayout The flow layout is the default layout manager for all Panel objects and applets. It places the panel components in rows according to the width of the…

Read more...