Page Language AutoEventWireup true CodeBehind RandDcreatePage aspx cs

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RandDcreatePage.aspx.cs" Inherits="RandDcreate.RandDcreatePage" EnableViewState="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>New R and D</title>
<link href="Design/RandDCreateDesign.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="Scripts/CreateAndShowDivElement.js"></script>
<script language="javascript" type="text/javascript">
function Assign()
{
ShowDiv();
return;
}
function EnableAssignButton()
{
//debugger
var ddl = document.getElementsByName("ddlAssignTo");
if(ddl != null && ddl.length >0)
{
if(ddl[0].selectedIndex != 0)
{
var btn = document.getElementsByName("btnAssign");
if(btn)
{
btn[0].Enabled = true;
}
return;
}
}
}
</script>
</head>
<body class="body" onload="CreateDivElement();HideDiv()" >
<form id="form1" runat="server">
<div>
<asp:Label ID="lblExists" runat="server" Text="R and D record for the current case already exists!!!" Font-Bold="True" Font-Size="XX-Large" ForeColor="Red" Visible="False"></asp:Label>
<table class="table1" id="table" runat="server">
<tr>
<td colspan="2" class="tr"> <asp:Label ID="lblNewRandD" Text="New R and D" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2" class="tr"><asp:Label ID="lblNewName" runat="server"></asp:Label></td>
</tr>
<tr style="height: 25px; border-top: outset,thin ,#000000;">
</tr>
</table>
<table class="table2" id="table2" runat="server">
<tr style="height: 25px;">
<td colspan="2" dir="ltr"><asp:Label ID="lblAssignProposal" runat="server" Text="Would you like to assign the record to another user:" Font-Bold="True" ForeColor="Blue"></asp:Label>
<asp:Label ID="lblIfNo" runat="server" Text="(if no- you can close the window)" Font-Size="X-Small" ForeColor="#FF8080"></asp:Label>
</td>
</tr>
<tr style="height: 25px;">
</tr>
<tr style="height: 25px;">
<td><asp:Label ID="lblAssignTo" runat="server" Text="Assign To :"></asp:Label></td>
<td>
<asp:DropDownList ID="ddlAssignTo" runat="server" OnSelectedIndexChanged="EnableAssignButton();">
<asp:ListItem Text=" --- Please select a user to assign--- " Value="0" Selected="True" Enabled="true"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr style="text-align:center; height: 25px;">
<td colspan="2"> <asp:Button ID="btnAssign" Text="Assign" Enabled="false" runat="server" OnClientClick="return Assign()" OnClick="btnAssign_Click"></asp:Button>
<asp:Label ID="lblResult" runat="server" Visible="False" ForeColor="Blue" Font-Bold="True"></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>