Tagged Questions
0
votes
1answer
29 views
How can i load partial view dynamically?
How can i load partial view dynamically?I tried to use with querystring as below but i got error when runtime.
My code:
@Html.Partial("_Sample?id=3")
0
votes
1answer
22 views
querystring space between chars
script
var end = new Date().toLocaleString();
var url = '/Widget/GridExportToExcel?end=' + end;
console.log(url);
console output:
16+5+2013+14%....
There are "pluses" instead of spaces, so in ...
0
votes
0answers
51 views
Parameter is not set properly?
To translate part of URL to parameter(enum) I have the following code in my controller :
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
...
0
votes
2answers
372 views
Read query string parameters from inside iframe
I have a web application which is inside another web application's iframe (both are done in ASP.NET MVC).
Is possible to read from the application inside the iframe the query string parameters from ...
1
vote
1answer
318 views
Actions and QueryString parameters in Web API
I want to have my generic route determine if a query string was passed in the Url like this
http://localhost/query/DailyLogs/1?dateOfLog='1/13/2013'
Here is my current Route definition:
...
0
votes
1answer
196 views
Pass ASP MVC3 textbox value to Ajax call
I have a simple ASP MVC3 @Html.TextBox that I'm using to input search criteria. However, I need to append the value to the URL in an Ajax call as a query string. How would I go about this? Below is ...
5
votes
3answers
384 views
Problems with Url.Action helper with multiple route values
I'm currently developing an ASP.NET MVC3 application in VS2010 and I'm having some troubles with @Url.Action helper. I have an ajax request where I use this helper:
var url = '@Url.Action("Action", ...
2
votes
3answers
95 views
MVC Get ID from ReturnURL
I am building an MVC 4 web application and whenever a user attempts to access a secure page without being authenticated I fire them to the login screen
[AllowAnonymous]
public ActionResult ...
0
votes
1answer
195 views
How to remove empty parameters in querystring asp.net mvc
So, I have a method that accepts a string and an object, the object has values that MVC translates into querystring parameters, my question is where and how can I get rid of the parameters that are ...
2
votes
1answer
134 views
Partial View Wizard with Navigation
Looked many things up, but never posted before. Here's my situation. Any help would be most appreciated.
I've got a wizard with numerous screens with an associated navigation bar made using CSS. As ...
0
votes
2answers
201 views
Base 64 encoded querystring parameter getting characters replaced
I have a querystring parameter that is an encoded string that gets converted to Base64. That parameter is then embedded in a link within an email. When I click the link in the email, the querystring ...
0
votes
1answer
57 views
Query string will not map to action videmode?
I have the following Control action :
public ActionResult List(ListPostViewModel data)
{
return View(data);
}
The ViewModel looks like this :
public class ListPostViewModel
{
...
0
votes
0answers
59 views
table ids in querystrings
We have an MVC 3 application that uses nHibernate. There are various controller actions that expose the ids of objects contained in the database, e.g. /edit/1. These are just sequential numeric ids of ...
1
vote
2answers
87 views
How can I sort the querystring by key?
I'm using ASP.NET MVC4. How do I sort the querystring shown in the browser?
Instead of: ...?c=1&b=1&a=1
I want: ...?a=1&b=1&c=1
If the querystring ...
2
votes
2answers
685 views
Including All querystring parameters in Html.ActionLink
In my page i have
@using (Html.BeginForm("list", "menu", FormMethod.Get))
{
<div>
Show categories:
@Html.DropDownList("groupName", ...