如何在无刷新页面的情况下实现客户端回调实例(C#)—MSDN学习笔记(1)
经常在网上找各种各样的资料看,来解决某一具有针对性的问题,可是最终发现还是MSDN好,可惜大部分没有汉化,而且实例型的资料并不是很多,但不管怎么说MSDN还是需要我们认真学习的!<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClientCallback.ASPx.CS" Inherits="ClientCallback" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html XMLns="http://www.w3.org/1999/xhtml" ><head runat="server"> <script type="text/Javascript"> function LookUpStock() { var lb = document.forms[0].ListBox1; var prodUCt = lb.options[lb.selectedIndex].text CallServer(product, ""); } function ReceiveServerData(rValue) { Results.innerText = rValue; } </script></head><body> <form id="form1" runat="server"> <div> <asp:ListBox ID="ListBox1" Runat="server"></asp:ListBox>