Added 3grids asp & .net examples. ricoQuery.aspx removed, as all AJAX queries in...
[infodrom/rico3] / examples / dotnet / ex2xml.aspx
index 0360a3a..7a18e33 100644 (file)
@@ -1,8 +1,17 @@
-<%@ Page Language="VB" ResponseEncoding="iso-8859-1" Debug="true" %>\r
+<%@ Page Language="VB" ResponseEncoding="iso-8859-1" %>\r
 <%@ Register TagPrefix="Rico" Assembly="Rico" NameSpace="Rico" %>\r
 <%@ Register TagPrefix="My" TagName="dbLib" Src="dbConnect.ascx" %>\r
 <My:dbLib id='app' runat='server' />\r
 \r
+<script runat="server">\r
+\r
+Sub Page_Load(Sender As object, e As EventArgs)\r
+  Session.Timeout=60\r
+  app.OpenGrid(ex2x)\r
+End Sub\r
+\r
+</script>\r
+\r
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
 <html>\r
 <head>\r
@@ -30,7 +39,7 @@ Notice how the number of visible rows is set automatically based
 on the size of the window. Try the different grid styles that\r
 are available. \r
 Click on a cell to see available actions.\r
-<a href='ricoQuery.aspx?id=ex2x&offset=0&page_size=10&get_total=true'>View the AJAX response (XML)</a>.\r
+<a href='<%=Page.Request.ServerVariables("SCRIPT_NAME")%>?_action_ex2x=query&offset=0&page_size=10'>View the AJAX response (XML)</a>.\r
 </div>\r
 \r
 <Rico:LiveGrid runat='server' id='ex2x' TableName='orders' DefaultSort='OrderID' menuEvent='click' frozenColumns='1' highlightElem='cursorRow'>\r