这是Asp.net vs2008编的程序 leave_my.aspx,Leave_new.aspx
2.申请种类 Application Leave Type</div>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_workinjuryleave"
Text="工伤假 Work Injury Leave" runat="server"
/>
</td>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_funeralleave" Text="丧假 Funeral Leave"
runat="server"
/>
</td>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_childbearingleave"
Text="生育假 Child Bearing Leave" runat="server"
/>
</td>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_other" Text="其它 Other" runat="server"
/>
</td>
</tr>
</tbody>
</table>
</asp:panel>
</td>
</tr>
</tbody>
</table>
<br />
<asp:Panel runat="server" ID="pnl_reason">
<!-- reason -->
<br /><br />
<table class="gwTableClass" border=0 cellSpacing=0 cellPadding=0 width="95%" align=center>
<tbody>
<tr>
<td>
<table border="0" cellSpacing="1" borderColorDark="#ffffff" cellPadding="8"
width="90%" bgColor="#A1A3AD" align=center>
<tbody>
<tr bgColor=#ffffff>
<td class="gwTdLabel" width="25%">请假原因 Reason</td>
<td width="*">
<asp:TextBox ID="txt_reason" runat="server" TextMode="MultiLine" Width="500" class="Width300"></asp:TextBox>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- / reason -->
</asp:Panel>
<br />
<div style=" width:1000px; text-align:center; margin:10px">
<asp:Button ID="Button1" runat="server" CssClass="btn" Width="150px" OnClick=Button1_Click Text="提 交"
/>
</div>
<script>
function SetOpValue(o2) {
try {
//loginname dis emai
var result = o2.split("$");
var _txt_displayname = document.getElementById('<%=txt_displayname.ClientID %>');
var _txt_loginname = document.getElementById('<%=txt_loginname.ClientID %>');
var _txt_email = document.getElementById('<%=txt_email.ClientID %>');
var _txt_staffcode = document.getElementById('<%=txt_staffcode.ClientID %>');
var _txt_dept = document.getElementById('<%=txt_dept.ClientID %>');
_txt_displayname.value = result[0]; if (result[1] != "") {
_txt_loginname.value = result[1];
}
else {
_txt_loginname.value = result[0];
} if (result[2] != "") {
_txt_email.value = result[2];
} _txt_staffcode.value = result[3]; _txt_dept.value = result[4];
}
catch (e) {alert(e);
} }
</script>
<!-- popup -->
<div id="menu1" onclick="clickMenu()" onmouseover="toggleMenu()" onmouseout="toggleMenu()"
oncontextmenu="contextTwice()"
style="position:absolute;display:none;width:200px; height:130px; background-Color:#f6f6f6; border:solid 1px #6593cf; z-index:200; margin:5px; padding:5px; line-height:20px">
<asp:Literal runat="server" ID="lb_dept"></asp:Literal>
</div>
<SCRIPT LANGUAGE="JavaScript">
function showMenu() {
whichDiv = event.srcElement;
menu1.style.posLeft = event.clientX + document.body.scrollLeft;
menu1.style.posTop = event.clientY + document.body.scrollTop;
menu1.style.display = "";
menu1.setCapture();
} function toggleMenu() {
el = event.srcElement;
if (el.className == "menuItem") {
el.className = "highlightItem";
} else if (el.className == "highlightItem") {
el.className = "menuItem";
}
} function clickMenu() {
menu1.style.display = "none";
el = event.srcElement;
if (el.id != "") {
document.getElementById('<%=txt_dept.ClientID %>').value = document.getElementById(el.id).innerHTML;
}
menu1.releaseCapture(); } function contextTwice() {
if (event.srcElement == whichDiv)
showMenu();
}
</SCRIPT>
</div>
</form>
</body>
</html>错误 85 “ASP.appform_leave_new_aspx”不包含“Button1_Click”的定义,并且找不到可接受类型为“ASP.appform_leave_new_aspx”的第一个参数的扩展方法“Button1_Click”(是否缺少 using 指令或程序集引用?) E:\Inetpub\wwwroot\OAS\Appform\Leave_new.aspx 1 1 E:\...\OAS\
我不会将这个请假条传到后台去,Button1_Click时间怎么编写,后台接受文件是Auditing.aspx,怎么接收
2.申请种类 Application Leave Type</div>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_workinjuryleave"
Text="工伤假 Work Injury Leave" runat="server"
/>
</td>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_funeralleave" Text="丧假 Funeral Leave"
runat="server"
/>
</td>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_childbearingleave"
Text="生育假 Child Bearing Leave" runat="server"
/>
</td>
<td width="25%">
<asp:RadioButton GroupName="app" ID="cb_other" Text="其它 Other" runat="server"
/>
</td>
</tr>
</tbody>
</table>
</asp:panel>
</td>
</tr>
</tbody>
</table>
<br />
<asp:Panel runat="server" ID="pnl_reason">
<!-- reason -->
<br /><br />
<table class="gwTableClass" border=0 cellSpacing=0 cellPadding=0 width="95%" align=center>
<tbody>
<tr>
<td>
<table border="0" cellSpacing="1" borderColorDark="#ffffff" cellPadding="8"
width="90%" bgColor="#A1A3AD" align=center>
<tbody>
<tr bgColor=#ffffff>
<td class="gwTdLabel" width="25%">请假原因 Reason</td>
<td width="*">
<asp:TextBox ID="txt_reason" runat="server" TextMode="MultiLine" Width="500" class="Width300"></asp:TextBox>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- / reason -->
</asp:Panel>
<br />
<div style=" width:1000px; text-align:center; margin:10px">
<asp:Button ID="Button1" runat="server" CssClass="btn" Width="150px" OnClick=Button1_Click Text="提 交"
/>
</div>
<script>
function SetOpValue(o2) {
try {
//loginname dis emai
var result = o2.split("$");
var _txt_displayname = document.getElementById('<%=txt_displayname.ClientID %>');
var _txt_loginname = document.getElementById('<%=txt_loginname.ClientID %>');
var _txt_email = document.getElementById('<%=txt_email.ClientID %>');
var _txt_staffcode = document.getElementById('<%=txt_staffcode.ClientID %>');
var _txt_dept = document.getElementById('<%=txt_dept.ClientID %>');
_txt_displayname.value = result[0]; if (result[1] != "") {
_txt_loginname.value = result[1];
}
else {
_txt_loginname.value = result[0];
} if (result[2] != "") {
_txt_email.value = result[2];
} _txt_staffcode.value = result[3]; _txt_dept.value = result[4];
}
catch (e) {alert(e);
} }
</script>
<!-- popup -->
<div id="menu1" onclick="clickMenu()" onmouseover="toggleMenu()" onmouseout="toggleMenu()"
oncontextmenu="contextTwice()"
style="position:absolute;display:none;width:200px; height:130px; background-Color:#f6f6f6; border:solid 1px #6593cf; z-index:200; margin:5px; padding:5px; line-height:20px">
<asp:Literal runat="server" ID="lb_dept"></asp:Literal>
</div>
<SCRIPT LANGUAGE="JavaScript">
function showMenu() {
whichDiv = event.srcElement;
menu1.style.posLeft = event.clientX + document.body.scrollLeft;
menu1.style.posTop = event.clientY + document.body.scrollTop;
menu1.style.display = "";
menu1.setCapture();
} function toggleMenu() {
el = event.srcElement;
if (el.className == "menuItem") {
el.className = "highlightItem";
} else if (el.className == "highlightItem") {
el.className = "menuItem";
}
} function clickMenu() {
menu1.style.display = "none";
el = event.srcElement;
if (el.id != "") {
document.getElementById('<%=txt_dept.ClientID %>').value = document.getElementById(el.id).innerHTML;
}
menu1.releaseCapture(); } function contextTwice() {
if (event.srcElement == whichDiv)
showMenu();
}
</SCRIPT>
</div>
</form>
</body>
</html>错误 85 “ASP.appform_leave_new_aspx”不包含“Button1_Click”的定义,并且找不到可接受类型为“ASP.appform_leave_new_aspx”的第一个参数的扩展方法“Button1_Click”(是否缺少 using 指令或程序集引用?) E:\Inetpub\wwwroot\OAS\Appform\Leave_new.aspx 1 1 E:\...\OAS\
我不会将这个请假条传到后台去,Button1_Click时间怎么编写,后台接受文件是Auditing.aspx,怎么接收
解决方案 »
- Accordion1控件点击展开后,点击旗下的链接到新的页面,如何保持其展开的状态保持不变?
- 像hishop及v5shop这种网站使用什么技术
- 字符串操作的一个问题求救
- 那位兄弟 设计过ico ,我做的边上总有毛刺!
- 请教一个正则表达式的问题
- 分不多,帮忙指点一下问题
- 重新开帖,请大家帮忙!
- !!!image web服务器控件的图象怎样绘制热点???image html控件可以,image web服务器控件而好象不行????????????
- 问个关于时间判断问题
- 100!!!!!updateCommand事件写更新的?
- .net framework 2.0下的问题
- .sdf数据库的文件如何在Vs2010中连接
/>
这句你没写点击事件吧,你把OnClick=Button1_Click删掉,到“设计”界面中双击此按钮,就会生成点击事件。
你应该是复制的别人的按钮或复制的别的的代码,没后台事件导致的!