Total Pageviews

4 June 2012

How Make menu bar in Site master page in ASP.net

Here I will represent a article in this article we are using some code of asp.net for using site master home page and set the browser Copatibility set for any browser.Hope this article helpfull for you...................




<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Site.master.cs" Inherits="SiteMaster" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <title></title>
    <%--<script language="JavaScript1.1">
<!--

/*
JavaScript Image slideshow:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/

var slideimages=new Array()
var slidelinks=new Array()
function slideshowimages(){
for (i=0;i<slideshowimages.arguments.length;i++){
slideimages[i]=new Image()
slideimages[i].src=slideshowimages.arguments[i]
}
}

function slideshowlinks(){
for (i=0;i<slideshowlinks.arguments.length;i++)
slidelinks[i]=slideshowlinks.arguments[i]
}

function gotoshow(){
if (!window.winslide||winslide.closed)
winslide=window.open(slidelinks[whichlink])
else
winslide.location=slidelinks[whichlink]
winslide.focus()
}

//-->
</script>--%>
    <%--<link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />--%>
    <link href="~/Styles/Style.css" rel="Stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    </asp:ContentPlaceHolder>
    <style type="text/css">
        .main
        {
        }
        .main
        {            height: 19px;
            }
        .style1
        {
            width: 1079px;
        }
        </style>
</head>
<body>
<form runat="server">
    <table class="page" runat="server"><tr><td class="style1">
    <div class="top1 x" align="center">
 
          <p align="left">
<a href="Default.aspx" class="top_home x">Home </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:DropDownList ID="DropDownList1" runat="server" ForeColor="#000015"
                    Width="197px">
                    <asp:ListItem>Select</asp:ListItem>
                    <asp:ListItem>Hindi</asp:ListItem>
                    <asp:ListItem>Spanish</asp:ListItem>
                    <asp:ListItem>Gujrati</asp:ListItem>
                    <asp:ListItem>Bengali</asp:ListItem>
                </asp:DropDownList>
             

&nbsp;<span class="top_on x"><a href="About.aspx" class="top_abo x">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; About Us</a>
<a href="Services.aspx" class="top_all x">Services</a>
<a href="Languages.aspx" class="top_all x">Languages</a>
<a href="quality-measure.aspx" class="top_all x"> Quality Measures</a>
                <a href="Career.aspx" class="top_all x">Careers</a>
                <a href="Odering.aspx" class="top_all x">Odering</a>
<a href="Contactus.aspx" class="top_all x"> Contact Us</a></span>

             </p></div>
             </td></tr>
        <%--<a href="javascript:gotoshow()"><img src="cnt_bbul.jpg" name="slide" border=0
            style="width: 980px; height: 197px"></a>--%>
<%--<script>
<!--

    //configure the paths of the images, plus corresponding target links
    slideshowimages("cnt_bbul.jpg", "cnt_bul.jpg", "cnt_gbul.jpg", "cnt_ibox.jpg", "cnt_ibox1.jpg")
    slideshowlinks("http://food.epicurious.com/run/recipe/view?id=13285", "http://food.epicurious.com/run/recipe/view?id=10092", "http://food.epicurious.com/run/recipe/view?id=100975", "http://food.epicurious.com/run/recipe/view?id=2876", "http://food.epicurious.com/run/recipe/view?id=20010")

    //configure the speed of the slideshow, in miliseconds
    var slideshowspeed = 2000

    var whichlink = 0
    var whichimage = 0
    function slideit() {
        if (!document.images)
            return
        document.images.slide.src = slideimages[whichimage].src
        whichlink = whichimage
        if (whichimage < slideimages.length - 1)
            whichimage++
        else
            whichimage = 0
        setTimeout("slideit()", slideshowspeed)
    }
    slideit()

//-->
</script>--%>
        <tr><td class="style1">
             <div class="main" align="center">
            <asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder>
         
       </div></td></tr><tr><td class="style1">
                <div class="footer">
             
<table class="footer">
<tr>
<td style="height: 16px; width: 990px">
<p class="foo_bg x" align="right">
<a href="#" class="foo_home x">Home</a>
 
<a href="#" class="foo_abo x"> About Us</a>&nbsp;&nbsp;
 
<a href="#" class="foo_abo x"> Services </a>
 
<a href="#" class="foo_abo x"> Solutions  </a>
 
<a href="#" class="foo_abo x"> Quality </a>
 
<a href="#" class="foo_abo x"> Contact</a></p>
</td>
</tr>
</table>
                </div>
       
         </td></tr></table>
  </form>
</body>
</html>

Contact Form

Name

Email *

Message *