Posting Data to ASP.NET: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page.)
 
m (→‎Device Side: Updated links.)
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
</pre>
</pre>


See [[Ajax]] and [[Ajax_made_Simple]] for more information.
See [[Ajax]] and [[Ajax made Simple]] for more information.


== Server Side ==
== Server Side ==


There are many ways to process the data using ASP.NET.  The simplest would be to embed code in the .aspx file.  For instance:
There are many ways to process the data using ASP.NET.  The simplest is to embed code in the .aspx file.  For example:


<pre>
<pre>
Line 24: Line 24:
</pre>
</pre>


There are several other tutorials online that deal with various ways of creating ASP.NET pages.
There are several tutorials online that deal with various ways of processing requests with ASP.NET.

Latest revision as of 16:56, 21 November 2013

Device Side

To post data to an ASP.NET page, the device side code is the same as what you would use for any other backend technology:

req = Ajax("/sendData_ajaxPost.aspx", "POST", "myText=" & txtSend.value)

See Ajax and Ajax made Simple for more information.

Server Side

There are many ways to process the data using ASP.NET. The simplest is to embed code in the .aspx file. For example:

<%
Dim myText as String
myText = Request.Form("myText")
'Additional processing of myText here...
%>
<html><body>
<p>myText is: <%=myText%></p>
</body></html>

There are several tutorials online that deal with various ways of processing requests with ASP.NET.