All Questions
517 questions
1
vote
1
answer
32
views
JQuery: How to select a sub-collection and send to an MVC action
I have a C# MVC web form with a fairly complex hierarchy of data. I need to select a portion of that data, a sub-collection of objects, and send it to an Action where I can manipulate the collection ...
-3
votes
1
answer
818
views
Dynamic Menu Bar with Child Relation In MVC Ajax Call
Hi i am student working on a Project in MVC i am Creating Dynamic Menu bar i retrieve Main Menu successfully but all child menus are shown in Contact Us Dropdown menu
---------------------------
...
0
votes
1
answer
66
views
Missing display data in jqGrid
As you can see below I have 3 pictures. (5, 10 and 20 data per page). I don't know the reason why in the 10 and 20 per page the data is missing as picture provided.
Code
public JsonResult GetDPS(...
2
votes
0
answers
59
views
Uploading picture can't detect .Change in button
I got this code below for uploading a picture. I got a problem.
Scenarios
When I upload a picture then its finish the button change it's not hitting
The second is exact reverse of the #1 when ...
0
votes
0
answers
399
views
MVC3 .net issue to show loading image when page loads
I'm pretty new to the MVC3 .net programming & recently in one of my internal projects I'm trying to implement a functinality where to display a loading image while the page is being loaded. (using ...
-1
votes
1
answer
298
views
Not able to render label tag on a view dynamically
I have below piece of code in .cshtml file.
<div class="row">
<input type="text" placeholder="Enter POR ID" id="porID" class="col-md-2 input-sm" name="porTextBox">
...
0
votes
1
answer
92
views
Passing a JSON object to a controller
I'm new to MVC and JavaScript, and while this may be an obvious answer for some I've been struggling for a while now (after looking at many examples)!
When debugging through the Index.cshtml view, ...
2
votes
0
answers
636
views
Profile Picture change Navigation menu MVC
I have users' login system on my website.
When user Login Profile change picture login user Picture. I have Navigation menu Right of Site Top corner Profile picture change options there until not ...
3
votes
3
answers
18k
views
How to upload files using ajax to asp.net mvc controller action
I have this submit code,
$('#form').on('submit',function (e) {
e.preventDefault();
//var file = $("#productImg");
var fileUpload = $("#productImg").get(0);
var files = fileUpload....
0
votes
1
answer
121
views
Clear Button Name Parameter in ASP.net
Hi Im new to ASP and MVC3 and my question is how can i clear the button name parameter in my Post because everytime I refreshes my page after clicking the button with the button parameter , the Value ...
1
vote
0
answers
1k
views
Escaping special characters in json
I built Data table in mvc this data table in rendering page i send to it 100 rows after that you can get data by AJAX (see more) in rendering i send data in json string
Code in httpget action
...
0
votes
0
answers
63
views
Return to redirect, then call JS function
Displaying a Jquery DataTable on screen. Row is selected, new Trial date is selected for that row. Button pressed and necessary row is updated in the controller POST. if (Request.HttpMethod == "POST")...
0
votes
1
answer
687
views
How to receive associative array data with 'FormCollection' in ASP.NET MVC3
I have following data to send ajax call to the controller action:
var data = {
"PersonalInfo": [
{
"FirstName": "Leonel",
"LastName": "Messi"
},
...
-1
votes
1
answer
960
views
event change for enumdropdownlist
In view
@Html.EnumDropDownListFor(model => model.Field)
Model
public Fields Field { get; set; }
public enum Fields
{
First = 1,
Second
}
These my markup
<select id="Field" name="...
0
votes
0
answers
1k
views
Removing or Replacing # (hash) in URL using Regex
I'm new to regex and I'm using it in jquery to remove/replace the url but when i triggered an anchortag with href="#" the url will add a # and I'm not able to replace it with my current regex fix to ...