- $(function () {
- $("#button").click(function () {
- alert("You clicked Submit button");
- $.ajax({
- type: "POST",
- url: "Insert.aspx",
- data: "{'StudentId': 'B1111' ,'StudentName': 'Likhit'}"
- });
- $("#studenttable").append("
");B1111 Likhit - });
How to read values in ASP from jQuery
Above is my jQuery function.
- sid = Request.QueryString["StudentId"].ToString();
An exception of type 'System.NullReferenceException' occurred in App_Web_kqkv5dqo.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object.
" Help me with suggestions.

Ramesh PalanivelRank #372 · 6.8K reputationPosted May 9, 2017, 5:14 AM EDT
Dharmraj ThakurRank #577 · 4.2K reputationPosted May 9, 2017, 5:31 AM EDT