Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

XML
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="FirmusJobportal.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>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form runat="server">
    <div class="page">
        <div class="header">
            <div class="title">
                <h1>
                    Welcome To Fuoco.co.in
                </h1>
            </div>
            <div class="loginDisplay">
                <asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
                    <AnonymousTemplate>
                        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
                        [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ]
                    </LoggedInTemplate>
                </asp:LoginView>
            </div>
        </div>
        <div class="main">
            <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
        </div>
        <div class="clear">
        </div>
         <table class="style1">
        <tr>
            <td class="style2">
                <asp:Image ID="Image1" runat="server" Height="101px" ImageUrl="~/Hydrangeas.jpg"
                    Width="231px" />
            </td>

        </tr>
        <tr>
            <td class="style2">
                Travel to your mail account</td>
            <td>
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click"
                    Text="Candidate" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;The candidate track form</td>
            <td>
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click"
                    Text="Candidate Track Form" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;The company track form</td>
            <td>
                <asp:Button ID="Button3" runat="server" onclick="Button3_Click"
                    Text="Company Track form" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </div>
    <div class="footer">

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



code behind .cs

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FirmusJobportal
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            Server.Transfer("gmail.com");

        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Response.Redirect("studentReg.aspx");
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Response.Redirect("CompanyRegistration.aspx");
        }

    }
}
Posted
Updated 26-Feb-13 21:49pm
v2
Comments
Orcun Iyigun 27-Feb-13 3:43am    
What is the exception where do you get it?? Give us more details.
If you have any problem, then ask...
We are not going to research your code and find out the issues without knowing what to find.

So, please be specific while asking questions.
If you are facing any difficulty with this code, then just ask.
RDBurmon 27-Feb-13 4:12am    
And error is ......
To be continued..

1 solution

I guess you got the answer for this question here - we have done the following page kindly rectify r aspx page and code for that[^].

Thanks...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900