Note that there are some explanatory texts on larger screens.

plurals
  1. POjson string from vb.net side to asp.net
    primarykey
    data
    text
    <p>How would I get my JSON string to my asp.net using jquery I am confused about using web methods or arrays or functions all the examples i have seen are in C#. All i want is to take the json string parse it.</p> <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load cmd.Connection = conn conn.Open() Dim ds As New DataSet cmd.CommandText = "MY SELECT STATEMENT IS IN HERE(DIDNT WANT TO POST ONLINE)" da.Fill(ds) da.FillSchema(ds, SchemaType.Mapped) Dim myObject = ds.GetXml Dim jsonString = New JavaScriptSerializer().Serialize(myObject) conn.Close() End Sub </code></pre> <p>I want to take either the jsonstring or myobject to the server side. jsonstring is json and myobject is xml. That way I can create a table client side that will include math functions. I am very new at this so I would need a clear explanation and maybe even an example. I have read about pagemethods and I have tried using this example on calling server side functions <a href="http://www.dotnetcurry.com/ShowArticle.aspx?ID=109" rel="nofollow">example</a></p> <p>Or can you tell me a simple way to go from sql to ajax. What is the best method for placing large datasets on a asp.net page without using paging.</p> <p>I am basically rewriting an asp page that they use now to use ajax, because it loads to slow, heres an example of the current asp code and what I am trying to achieve.</p> <pre><code> response.write("&lt;tr&gt;&lt;td&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("book7")) response.write("&lt;/td&gt;&lt;td&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("dep7")) response.write("&lt;/td&gt;&lt;td&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("lead")) response.write("&lt;/td&gt;&lt;td&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("hear")) response.write("&lt;/td&gt;&lt;td&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("cname")) response.write("&lt;/td&gt;&lt;td&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("theme") &amp; " - " &amp; rscontest.fields.item("tour")) response.write("&lt;/td&gt;&lt;td align='right'&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("userid")) response.write("&lt;/td&gt;&lt;td align='right'&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% response.write(rscontest.fields.item("pax_count")) pax = pax + rscontest.fields.item("pax_count") response.write("&lt;/td&gt;&lt;td align='right'&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;% IF rscontest.fields.item("status") = "XL" then response.write(formatnumber(rscontest.fields.item("CXVALUE"),2)) sales = sales - formatnumber(rscontest.fields.item("CXVALUE"),2) ELSE response.write(formatnumber(rscontest.fields.item("AMOUNT"),2)) sales = sales + formatnumber(rscontest.fields.item("AMOUNT"),2) END IF response.write("&lt;tr&gt;&lt;td rowspan=1&gt;") %&gt;&lt;font face="Arial,Helvetica,sans-serif" size="-2"&gt;&lt;/style&gt;&lt;% response.write(rscontest.fields.item("description")) rscontest.movenext wend </code></pre> <p>anything it is writing is from an sql statement, and it uses a running total.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload