How to update querystring in C#?
Somewhere in the url there is a &sortBy=6 . How do I update this to &sortBy=4 or &sortBy=2 on a button click? Do I need to write custom string functions to create the correct redirect url?
Somewhere in the url there is a &sortBy=6 . How do I update this to &sortBy=4 or &sortBy=2 on a button click? Do I need to write custom string functions to create the correct redirect url?
I’m not asking how to force HTTPS, I’m asking why in Azure deployment is context.Request.IsSecureConnection returning false even when the request is over HTTPS.
How do we get the current user, within an secure ApiController action, without passing the userName or userId as a parameter?
I’m using Entity Framework 4 for a simple app and would like to bake my connection credentials into the following connection string:
What is the code required to redirect the browser to a new page with an ASPX page?
I have a Web API project that is running on a server. It is supposed to return PDFs from two different kinds of sources: an actual portable document file (PDF), and a base64 string stored in a database. The trouble I’m having is sending the document back to a client MVC application. The rest of this is the details on everything that’s happened and that I’ve already tried.
I need to display data in grid view with merged rows for some columns. Please help me to prepare a grid view in below defined format:

I have a ASP.NET WebSite and a custom control (lets call it myControl) on it.
I need to call a method on this control with AJAX.
I’m posting ajax call from JavaScript (jQuery) to C# WebMethod.
This works fine, but I can’t get to myControl in a static WebMethod.
Any ideas how to solve this problem?
I have a table called Products which obviously contains products.
However, I need to create related products. So what I’ve done is create a junction table called product_related which has two PKs. ProductID from Products table and RelatedID also from Products table.