You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
781 B

<%@ Page Language="C#" ASPCOMPAT="TRUE" Debug="true" Inherits="OboutInc.oboutAJAXPage"%>
<%@ Register TagPrefix="oajax" Namespace="OboutInc" Assembly="obout_AJAXPage" %>
<%@ Import Namespace="System.Data" %>
<script language="C#" runat="server">
void Page_Load(object sender, EventArgs e) {
LoadContactList();
}
public void LoadContactList() {
if (Session["contacts"] == null) {
DataSet dsContacts = new DataSet();
dsContacts.Tables.Add(new DataTable());
dsContacts.Tables[0].Columns.Add(new DataColumn("name", System.Type.GetType("System.String")));
dsContacts.Tables[0].Columns.Add(new DataColumn("phone", System.Type.GetType("System.String")));
dsContacts.Tables[0].Columns.Add(new DataColumn("email", System.Type.GetType("System.String")));