Try using:
string ap = c.Request["AP"];
That reads from the cookies, form, query string or server variables.
Alternatively:
string ap = c.Request.Form["AP"];
to just read from the form’s data.
More Related Contents:
- Can we convert an EXE into a program which can be Auto-Installed without any Clicks or Commands just after download, or may be on System Restart [closed]
- Error Message is not clear to me
- In C#, what is the difference between public, private, protected, and having no access modifier?
- Entering keys manually with Entity Framework
- Pass table valued parameter using ADO.NET
- Dynamically Created Controls losing data after postback
- How to implement real time data for a web page
- How to get client date and time in ASP.NET?
- How I can filter a Datatable?
- Json.NET serialize object with root name
- “Could not load type [Namespace].Global” causing me grief
- OutOfMemoryException while populating MemoryStream: 256MB allocation on 16GB system
- Scope of static Variable in multi-user ASP.NET web application
- Passing data to Master Page in ASP.NET MVC
- How to enable cross origin requests in ASP.NET MVC [duplicate]
- How to implement GZip compression in ASP.NET?
- Parse and modify a query string in .NET Core
- How do I display the DisplayAttribute.Description attribute value?
- Custom Authentication in ASP.Net-Core
- How to add OpenIdConnect via IdentityServer4 to ASP.NET Core ServerSide Blazor web app?
- C# – Outputting image to response output stream giving GDI+ error
- How can I convert ticks to a date format?
- Getting current directory in .NET web application
- Type of conditional expression cannot be determined because there is no implicit conversion between ‘string’ and ‘System.DBNull’
- How to ignore route in asp.net forms url routing
- Authentication Service using WCF
- Could not load file or assembly ‘System.Net.Http.Formatting’ or one of its dependencies. The system cannot find the path specified
- C# Clear Session
- Why does ServerVariable[“REMOTE_ADDR”] returns the server IP?
- How to stop crystal report viewer from asking login credentials when opening subreport