The Poll based on Ajax -- Koma
2006-05-20 13:08
411 查看
aspx( js included)
<%@ Page language="c#" Codebehind="vote.aspx.cs" AutoEventWireup="false" Inherits="vote_ajax.vote" %>
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3<HTML>
4 <HEAD>
5 <title>WebForm1</title>
6 <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
7 <meta name="CODE_LANGUAGE" Content="C#">
8 <meta name="vs_defaultClientScript" content="JavaScript">
9 <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
10 <script type="text/javascript">
11 function votes()
12
28 function GetVote_callback(response)
29
33 </script>
34 </HEAD>
35 <body>
36 <form id="Form1" method="post" runat="server">
37 <TABLE id="Table1" style="WIDTH: 197px; HEIGHT: 218px" cellSpacing="0" cellPadding="0"
38 width="197" border="1">
39 <TR height="30">
40 <TD bgColor="#ff9966"></TD>
41 </TR>
42 <TR>
43 <TD style="HEIGHT: 38px"><INPUT id="cb_1" type="radio" name="vote"> <span id="a"><%=v.A%></span></TD>
44 </TR>
45 <TR>
46 <TD style="HEIGHT: 34px"><INPUT id="cb_2" type="radio" name="vote"> <span id="b"><%=v.B%></span></TD>
47 </TR>
48 <TR>
49 <TD style="HEIGHT: 33px"><INPUT id="cb_3" type="radio" name="vote"> <span id="c"><%=v.C%></span></TD>
50 </TR>
51 <TR>
52 <TD style="HEIGHT: 33px"><INPUT id="cb_4" type="radio" name="vote"> <span id="d"><%=v.D%></span></TD>
53 </TR>
54 <TR>
55 <TD vAlign="top" height="31">
56 <TABLE id="Table2" style="WIDTH: 192px; HEIGHT: 31px" cellSpacing="0" cellPadding="0" width="192"
57 border="0">
58 <TR>
59 <TD align="right" width="50%"><INPUT type="button" value="确定" id="vote" onclick="votes()"></TD>
60 <TD align="left" width="50%"><INPUT type="button" value="查看" id="cancel"></TD>
61 </TR>
62 </TABLE>
63 </TD>
64 </TR>
65 </TABLE>
66 <FONT face="宋体">
67 <BR>
68 </FONT>
69 <DIV id="div" style="WIDTH: 100px; HEIGHT: 100px" ms_positioning="FlowLayout"></DIV>
70 </form>
71 </body>
72</HTML>
73
cs:
using System;
2using System.Collections;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Web;
7using System.Web.SessionState;
8using System.Web.UI;
9using System.Web.UI.WebControls;
10using System.Web.UI.HtmlControls;
11using System.Configuration;
12using System.Data.SqlClient;
13using AjaxPro;
14using vote_ajax;
15using System.Text;
16
17namespace vote_ajax
18
<%@ Page language="c#" Codebehind="vote.aspx.cs" AutoEventWireup="false" Inherits="vote_ajax.vote" %>
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3<HTML>
4 <HEAD>
5 <title>WebForm1</title>
6 <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
7 <meta name="CODE_LANGUAGE" Content="C#">
8 <meta name="vs_defaultClientScript" content="JavaScript">
9 <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
10 <script type="text/javascript">
11 function votes()
12
28 function GetVote_callback(response)
29
33 </script>
34 </HEAD>
35 <body>
36 <form id="Form1" method="post" runat="server">
37 <TABLE id="Table1" style="WIDTH: 197px; HEIGHT: 218px" cellSpacing="0" cellPadding="0"
38 width="197" border="1">
39 <TR height="30">
40 <TD bgColor="#ff9966"></TD>
41 </TR>
42 <TR>
43 <TD style="HEIGHT: 38px"><INPUT id="cb_1" type="radio" name="vote"> <span id="a"><%=v.A%></span></TD>
44 </TR>
45 <TR>
46 <TD style="HEIGHT: 34px"><INPUT id="cb_2" type="radio" name="vote"> <span id="b"><%=v.B%></span></TD>
47 </TR>
48 <TR>
49 <TD style="HEIGHT: 33px"><INPUT id="cb_3" type="radio" name="vote"> <span id="c"><%=v.C%></span></TD>
50 </TR>
51 <TR>
52 <TD style="HEIGHT: 33px"><INPUT id="cb_4" type="radio" name="vote"> <span id="d"><%=v.D%></span></TD>
53 </TR>
54 <TR>
55 <TD vAlign="top" height="31">
56 <TABLE id="Table2" style="WIDTH: 192px; HEIGHT: 31px" cellSpacing="0" cellPadding="0" width="192"
57 border="0">
58 <TR>
59 <TD align="right" width="50%"><INPUT type="button" value="确定" id="vote" onclick="votes()"></TD>
60 <TD align="left" width="50%"><INPUT type="button" value="查看" id="cancel"></TD>
61 </TR>
62 </TABLE>
63 </TD>
64 </TR>
65 </TABLE>
66 <FONT face="宋体">
67 <BR>
68 </FONT>
69 <DIV id="div" style="WIDTH: 100px; HEIGHT: 100px" ms_positioning="FlowLayout"></DIV>
70 </form>
71 </body>
72</HTML>
73
cs:
using System;
2using System.Collections;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Web;
7using System.Web.SessionState;
8using System.Web.UI;
9using System.Web.UI.WebControls;
10using System.Web.UI.HtmlControls;
11using System.Configuration;
12using System.Data.SqlClient;
13using AjaxPro;
14using vote_ajax;
15using System.Text;
16
17namespace vote_ajax
18
相关文章推荐
- the simple ajax tooltip based on prototype --koma
- 原创: The tree based on Ajax --koma
- Codeforces Round #403 (Div. 2, based on Technocup 2017 Finals) B. The Meeting Place Cannot Be Change
- ruby merge array of hashes based on the key and order it by number of key/value pair
- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 问题的解决
- Node.js: What is the best "full stack web framework" (with scaffolding, MVC, ORM, etc.) based on Node.js / server-side JavaScript? - Quora
- Refreshing One Column based on the value of Another Column in ADFdi Table
- An OpenGL ES renderer based on the GLSurfaceView rendering framework.
- My thesis--a chatting room based on ASP.NET
- The Design and Implementation of Two-dimensional Vector Graphics Interactive Tools Based on “Smart Handle”
- The linux-- function hijacking -- Based on LD_PRELOAD
- Apache配置基于IP的虚拟主机 Apache virtual host configuration is based on the IP
- How to restore ASM based OCR after complete loss of the CRS diskgroup on Linux systems[ID 1062983.1]
- 解决 ajax跨域 No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 启动应用报错,Based on configured schedule, the given trigger will never fire
- How to set the DefaultButton in a Page Based on ASP.NET Master Page
- Tracing to the Network Attack Based on Large Data Environment
- myPage based on Ajax
- jquery ajax No 'Access-Control-Allow-Origin' header is present on the requested resource
- Modifying your Download Patterns Based on the Connectivity Type