Click here to Skip to main content
16,008,469 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Timer Control Pin
~V~8-Jun-08 23:12
~V~8-Jun-08 23:12 
GeneralRe: Timer Control Pin
Parwej Ahamad8-Jun-08 23:17
professionalParwej Ahamad8-Jun-08 23:17 
GeneralRe: Timer Control Pin
N a v a n e e t h8-Jun-08 23:20
N a v a n e e t h8-Jun-08 23:20 
AnswerRe: Timer Control Pin
Syed Ali Raza8-Jun-08 23:21
Syed Ali Raza8-Jun-08 23:21 
AnswerRe: Timer Control Pin
~V~8-Jun-08 23:58
~V~8-Jun-08 23:58 
QuestionInclude master page at run time Pin
J Liang8-Jun-08 22:27
J Liang8-Jun-08 22:27 
AnswerRe: Include master page at run time Pin
Parwej Ahamad8-Jun-08 22:42
professionalParwej Ahamad8-Jun-08 22:42 
GeneralRe: Include master page at run time Pin
J Liang8-Jun-08 22:51
J Liang8-Jun-08 22:51 
Here's the aspx page

<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="E06-Employee.aspx.cs" Inherits="E04_Employee" %>]]>

<![CDATA[<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>]]>



<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>E06-Employee</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:scriptmanager id="ScriptManager1" runat="server">
        </asp:scriptmanager>
        <asp:textbox id="txtCompId" runat="server" visible="False"></asp:textbox>
        <cc1:tabcontainer id="TabContainer1" runat="server" activetabindex="0" font-names="Arial">
            font-size="Small"><cc1:tabpanel runat="server" headertext="TabPanel1" id="TabPanel1"><contenttemplate>
<br /><asp:button id="btnNewEmp" runat="server" text="New Employee"></asp:button><br />
<asp:gridview id="GridView1" runat="server" font-names="Arial" font-size="Small" datakeynames="empId,lup_CompanycpyId" autogeneratecolumns="False" emptydatatext="There are no data records to display." datasourceid="SqlEmployee" allowpaging="True" allowsorting="True" pagesize="20" width="753px" backcolor="White" bordercolor="#E7E7FF" borderstyle="None" borderwidth="1px" cellpadding="3" gridlines="Horizontal" onrowdatabound="GridView1_RowDataBound">
<footerstyle backcolor="#B5C7DE" forecolor="#4A3C8C"></footerstyle>
<columns>
<asp:boundfield readonly="True" datafield="empId" visible="False" sortexpression="empId" headertext="empId"></asp:boundfield>
    <asp:hyperlinkfield datanavigateurlfields="empId,lup_CompanycpyId" datanavigateurlformatstring="~/E0601-NewEmployee.aspx?empid={0}&compid={1}&update=1">
        DataTextField="empName" HeaderText="Name" NavigateUrl="~/E0601-NewEmployee.aspx?empid={0}&update=1&compid={1}&option=employee"
        SortExpression="empName" Target="_blank" />
<asp:boundfield datafield="empEmpNo" sortexpression="empEmpNo" headertext="Employee No."></asp:boundfield>
<asp:boundfield datafield="empEmail" visible="False" sortexpression="empEmail" headertext="empEmail"></asp:boundfield>
<asp:boundfield datafield="empPwd" visible="False" sortexpression="empPwd" headertext="empPwd"></asp:boundfield>
<asp:boundfield datafield="empJoinDt" visible="False" sortexpression="empJoinDt" headertext="empJoinDt"></asp:boundfield>
<asp:boundfield datafield="empLeaveDt" visible="False" sortexpression="empLeaveDt" headertext="empLeaveDt"></asp:boundfield>
<asp:boundfield datafield="empRpt1" visible="False" sortexpression="empRpt1" headertext="empRpt1"></asp:boundfield>
<asp:boundfield datafield="empRpt2" visible="False" sortexpression="empRpt2" headertext="empRpt2"></asp:boundfield>
<asp:checkboxfield datafield="empStat" sortexpression="empStat" headertext="Active/Inactive"></asp:checkboxfield>
<asp:boundfield datafield="empTitle" sortexpression="empTitle" headertext="Title"></asp:boundfield>
<asp:boundfield datafield="empUrl" visible="False" sortexpression="empUrl" headertext="empUrl"></asp:boundfield>
    <asp:templatefield headertext="Department" sortexpression="lup_DeptdptId">
        <edititemtemplate>
            <asp:textbox id="TextBox1" runat="server" text=""><![CDATA[<%# Bind("lup_DeptdptId") %>]]>'></asp:textbox>
        </edititemtemplate>
        <itemtemplate>
            <asp:label id="Label1" runat="server" text=""><![CDATA[<%# Bind("lup_DeptdptId") %>]]>' Visible="False"></asp:label>
            <asp:label id="lblDept" runat="server"></asp:label>
        </itemtemplate>
    </asp:templatefield>
    <asp:templatefield headertext="Status" sortexpression="lup_StaffStatsstId">
        <edititemtemplate>
            <asp:textbox id="TextBox2" runat="server" text=""><![CDATA[<%# Bind("lup_StaffStatsstId") %>]]>'></asp:textbox>
        </edititemtemplate>
        <itemtemplate>
            <asp:label id="Label2" runat="server" text=""><![CDATA[<%# Bind("lup_StaffStatsstId") %>]]>' Visible="False"></asp:label>
            <asp:label id="lblStat" runat="server"></asp:label>
        </itemtemplate>
    </asp:templatefield>
    <asp:templatefield headertext="Leave Group" sortexpression="lup_SalaryGrpsgpId">
        <edititemtemplate>
            <asp:textbox id="TextBox3" runat="server" text=""><![CDATA[<%# Bind("lup_SalaryGrpsgpId") %>]]>'></asp:textbox>
        </edititemtemplate>
        <itemtemplate>
            <asp:label id="Label3" runat="server" text=""><![CDATA[<%# Bind("lup_SalaryGrpsgpId") %>]]>' Visible="False"></asp:label>
            <asp:label id="lblLeaveGrp" runat="server"></asp:label>
        </itemtemplate>
    </asp:templatefield>
<asp:boundfield datafield="lup_CompanycpyId" visible="False" sortexpression="lup_CompanycpyId" headertext="lup_CompanycpyId"></asp:boundfield>
<asp:boundfield datafield="lup_ApproveTypeapvId" visible="False" sortexpression="lup_ApproveTypeapvId" headertext="lup_ApproveTypeapvId"></asp:boundfield>
    <asp:templatefield showheader="False">
        <itemtemplate>
            <asp:linkbutton id="LinkButton1" runat="server" causesvalidation="False" commandname="Delete">
                Text="Delete" OnClientClick="javascript:return confirm('Are you sure you want to delete this record?');"></asp:linkbutton>
        </itemtemplate>
    </asp:templatefield>
</asp:hyperlinkfield></columns>

<rowstyle backcolor="#E7E7FF" forecolor="#4A3C8C"></rowstyle>

<selectedrowstyle backcolor="#738A9C" forecolor="#F7F7F7" font-bold="True"></selectedrowstyle>

<pagerstyle backcolor="#E7E7FF" forecolor="#4A3C8C" horizontalalign="Right"></pagerstyle>

<headerstyle backcolor="#4A3C8C" forecolor="#F7F7F7" font-bold="True" horizontalalign="Left"></headerstyle>

<alternatingrowstyle backcolor="#F7F7F7"></alternatingrowstyle>
</asp:gridview>
                 
</contenttemplate>
<headertemplate>
Employee List
</headertemplate>
</cc1:tabpanel>
</cc1:tabcontainer>
        <asp:button id="btnBack" runat="server" text="Back" />
        <asp:button id="btnDone" runat="server" text="Done" onclick="btnDone_Click" width="98px" /><br />
        <asp:sqldatasource id="SqlEmployee" runat="server" connectionstring=""><![CDATA[<%$ ConnectionStrings:connString %>]]>"
            DeleteCommand="DELETE FROM [emp_Employee] WHERE [empId] = @empId" InsertCommand="INSERT INTO [emp_Employee] ([empId], [empName], [empEmail], [empPwd], [empEmpNo], [empJoinDt], [empLeaveDt], [empRpt1], [empRpt2], [empStat], [empTitle], [empUrl], [lup_DeptdptId], [lup_StaffStatsstId], [lup_SalaryGrpsgpId], [lup_CompanycpyId], [lup_ApproveTypeapvId]) VALUES (@empId, @empName, @empEmail, @empPwd, @empEmpNo, @empJoinDt, @empLeaveDt, @empRpt1, @empRpt2, @empStat, @empTitle, @empUrl, @lup_DeptdptId, @lup_StaffStatsstId, @lup_SalaryGrpsgpId, @lup_CompanycpyId, @lup_ApproveTypeapvId)"
            ProviderName="<%$ ConnectionStrings:connString.ProviderName %>" SelectCommand="E06GetEmployee"
            UpdateCommand="UPDATE [emp_Employee] SET [empName] = @empName, [empEmail] = @empEmail, [empPwd] = @empPwd, [empEmpNo] = @empEmpNo, [empJoinDt] = @empJoinDt, [empLeaveDt] = @empLeaveDt, [empRpt1] = @empRpt1, [empRpt2] = @empRpt2, [empStat] = @empStat, [empTitle] = @empTitle, [empUrl] = @empUrl, [lup_DeptdptId] = @lup_DeptdptId, [lup_StaffStatsstId] = @lup_StaffStatsstId, [lup_SalaryGrpsgpId] = @lup_SalaryGrpsgpId, [lup_CompanycpyId] = @lup_CompanycpyId, [lup_ApproveTypeapvId] = @lup_ApproveTypeapvId WHERE [empId] = @empId" SelectCommandType="StoredProcedure">
            <insertparameters>
                <asp:parameter name="empId" type="Int32" />
                <asp:parameter name="empName" type="String" />
                <asp:parameter name="empEmail" type="String" />
                <asp:parameter name="empPwd" type="String" />
                <asp:parameter name="empEmpNo" type="String" />
                <asp:parameter name="empJoinDt" type="DateTime" />
                <asp:parameter name="empLeaveDt" type="DateTime" />
                <asp:parameter name="empRpt1" type="Int32" />
                <asp:parameter name="empRpt2" type="Int32" />
                <asp:parameter name="empStat" type="Boolean" />
                <asp:parameter name="empTitle" type="String" />
                <asp:parameter name="empUrl" type="String" />
                <asp:parameter name="lup_DeptdptId" type="Int32" />
                <asp:parameter name="lup_StaffStatsstId" type="Int32" />
                <asp:parameter name="lup_SalaryGrpsgpId" type="Int32" />
                <asp:parameter name="lup_CompanycpyId" type="Int32" />
                <asp:parameter name="lup_ApproveTypeapvId" type="Int32" />
            </insertparameters>
            <updateparameters>
                <asp:parameter name="empName" type="String" />
                <asp:parameter name="empEmail" type="String" />
                <asp:parameter name="empPwd" type="String" />
                <asp:parameter name="empEmpNo" type="String" />
                <asp:parameter name="empJoinDt" type="DateTime" />
                <asp:parameter name="empLeaveDt" type="DateTime" />
                <asp:parameter name="empRpt1" type="Int32" />
                <asp:parameter name="empRpt2" type="Int32" />
                <asp:parameter name="empStat" type="Boolean" />
                <asp:parameter name="empTitle" type="String" />
                <asp:parameter name="empUrl" type="String" />
                <asp:parameter name="lup_DeptdptId" type="Int32" />
                <asp:parameter name="lup_StaffStatsstId" type="Int32" />
                <asp:parameter name="lup_SalaryGrpsgpId" type="Int32" />
                <asp:parameter name="lup_CompanycpyId" type="Int32" />
                <asp:parameter name="lup_ApproveTypeapvId" type="Int32" />
                <asp:parameter name="empId" type="Int32" />
            </updateparameters>
            <deleteparameters>
                <asp:parameter name="empId" type="Int32" />
            </deleteparameters>
            <selectparameters>
                <asp:controlparameter controlid="txtCompId" name="lup_CompanycpyId" propertyname="Text">
                    Type="Int32" />
            </asp:controlparameter></selectparameters>
        </asp:sqldatasource>
         </div>
    </form>
</body>
</html>

AnswerRe: Include master page at run time Pin
N a v a n e e t h8-Jun-08 22:51
N a v a n e e t h8-Jun-08 22:51 
GeneralRe: Include master page at run time Pin
J Liang8-Jun-08 23:00
J Liang8-Jun-08 23:00 
GeneralRe: Include master page at run time Pin
N a v a n e e t h8-Jun-08 23:17
N a v a n e e t h8-Jun-08 23:17 
GeneralRe: Include master page at run time Pin
sidbaruah8-Jun-08 23:52
sidbaruah8-Jun-08 23:52 
GeneralRe: Include master page at run time Pin
J Liang9-Jun-08 0:02
J Liang9-Jun-08 0:02 
GeneralRe: Include master page at run time Pin
sidbaruah9-Jun-08 0:23
sidbaruah9-Jun-08 0:23 
GeneralRe: Include master page at run time Pin
J Liang9-Jun-08 0:29
J Liang9-Jun-08 0:29 
Questionprint Excel file from ASP.NET Pin
acroitoriu8-Jun-08 22:12
acroitoriu8-Jun-08 22:12 
QuestionNeed to change the css class of the selected node of the tree view Pin
jophinmichael8-Jun-08 21:46
jophinmichael8-Jun-08 21:46 
AnswerRe: Need to change the css class of the selected node of the tree view Pin
eyeseetee8-Jun-08 21:52
eyeseetee8-Jun-08 21:52 
Questionhow to fill events in dropdownlist by clicking particular date in calendar [modified] Pin
ursmalathi8-Jun-08 21:23
ursmalathi8-Jun-08 21:23 
AnswerRe: how to fill events in dropdownlist by clicking particular date in calendar Pin
eyeseetee8-Jun-08 21:49
eyeseetee8-Jun-08 21:49 
Questionasp.net application link problem Pin
meetshums8-Jun-08 21:20
meetshums8-Jun-08 21:20 
AnswerRe: asp.net application link problem Pin
eyeseetee8-Jun-08 21:47
eyeseetee8-Jun-08 21:47 
GeneralRe: asp.net application link problem Pin
meetshums9-Jun-08 22:00
meetshums9-Jun-08 22:00 
AnswerRe: asp.net application link problem Pin
N a v a n e e t h8-Jun-08 22:56
N a v a n e e t h8-Jun-08 22:56 
GeneralRe: asp.net application link problem Pin
meetshums9-Jun-08 22:02
meetshums9-Jun-08 22:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.