Tagged Questions
0
votes
1answer
43 views
How to get the old and user defined Name for the checked values in mvc asp.net
HI all i have assigned with some task, in which bellow is my Filed model and i have two properties like "FieldName " and "UserDefinedFieldName " initially UserDefinedFieldName is null and fieldname ...
0
votes
0answers
25 views
Submitting gridview through jquery
Hi I have an excel or can use csv file with three columns. Name, Age & City. I am getting the data as Datatable than binding it as Gridview to display on the page. Than I want to take that ...
1
vote
6answers
58 views
How to Get the Integer Value of the Month?
I'm working with MVC3.I'm using dropdownlist to select the Month using following code,
<select id="mth" class="dropdown">
<option>Jan</option>
...
-1
votes
2answers
59 views
How to use javascript variables vales in code behind
Hi i have facebook login code i want to use javascript varibles values on code behind.I can use by saving them in hidden field but there is no button click so page is not postback.
here is my code:
...
1
vote
3answers
72 views
jquery-ajax-c# success function is executed but no response
The post is fired and I can see the below in firebug
POST http://localhost:1148/WebSite2/frmMain.aspx/webDelete 200 OK 15ms
jQuery code is:
$.ajax({
url: "frmMain.aspx/webDelete",
type: ...
2
votes
5answers
65 views
Ajax JQuery Passing Data to POST method
I am a newbie at javascript and jquery and I would like some help if possible. I searched and tried to make it work, but I think I am missing something simple.
I have the following method in my cs ...
0
votes
3answers
59 views
How to pass an object to a MVC controller via Jquery Ajax Get
I am new to jquery and I can't resolve the following problem : I want to pass an object to one of the controllers in my mvc application. Here is what I got so far:
function enterPressed() {
...
2
votes
2answers
28 views
DataContractJsonSerializer exception
I am getting this error when using my class.
Error
Expecting element 'root' from namespace ''.. Encountered 'None' with
name '', namespace
My Class
[DataContract]
public class EntryData
{
...
0
votes
2answers
29 views
How to Insert the values displayed in viewpage to backend
Hi I'm working with MVC3 i want to insert the values displayed in front end into the table in backend.How can i achieve this?
Following is my view,
@model ...
2
votes
1answer
64 views
MVC4 Retrieveing image file from SQL Server table to html image
I trying to create user profile page on MVC4 web application.
On the userprofile page there is an image <img /> tag to display profile photo. Just below the image, there are "browse", "upload" ...
0
votes
0answers
43 views
retained selected value after submit button clicked kendo ui dropdownlist
I want to keep selected text in dropdownlist after click the submit button. Now every time when submit clicked, it always goes back to first value. Can someone help me?
...
0
votes
1answer
16 views
Render HtmlGenericControl after ajax call
I have a HtmlGenericControl
HtmlGenericControl a = new HtmlGenericControl("a");
a.Attributes.Add("href", "test.aspx");
a.InnerText = "foo";
I want to make an ajax call to return this ...
0
votes
0answers
54 views
Render mvc action response (pdf) to a new window with javascript
I need to open a pdf stream obtained after a post on a controller action, and generated by iTextSharp.
All works fine if call
return File(PDFStream.GetBuffer(), "application/pdf");
with ...
0
votes
1answer
25 views
How to strip backslashes when jQuery passes string to Server
We are trying to return user inputs as Json to the server to be saved in couchbase, but we are struggling to send back the valid Json to the server, it adds ( \ ) between " ".
The Json
var ...
0
votes
1answer
42 views
Adding a progress bar to a view in razor application
I have an asp.net mvc 4 application . in which i have to upload some files. So i put this view :
@{
ViewBag.Title = "Upload a projet";
}
@if(Model != null){<script> alert("le format de ...
0
votes
2answers
61 views
Execute jQuery, then execute .NET
How do I get an asp:button to execute some jquery before it executes the .net code?
I basically have an asp:button, which has some jquery-ajax attached to it, and some .NET code. I've noticed that ...
0
votes
1answer
38 views
Please suggest the best way of rendering Partials
I have a new development task , I am trying to do reports dashboard and my requirement is to
I will have a form and I need to select values from form and depending upon user selection I need to ...
0
votes
2answers
53 views
Can't get GET to work when POST works perfectly
I have the following code, which works perfectly if I use POST. However, I need to get it to work with GET for various reasons: (I've added comments to show the 3 simple changes I made, see CHANGE 1 ...
0
votes
1answer
44 views
Sending from server-side to client-side multiple PartialViews asynchronously with an undefined delay
I've been lurking for about a hour trying to find a solution or a pattern to do it (title reference)..
Let me give you an example for what I mean:
Client-to-Server: Hey, I want information about ...
0
votes
2answers
52 views
issue calling a c# function from jquery
I am attempting to call a function through a view using jquery.. originally i was using razor's @html.BeignForm but for the web it needs to be converted to jquery
i don't know if i'm on the right ...
0
votes
2answers
52 views
Converting jquery + c# webservice to use GET instead of POST
I have a web-service which works fine using POST when communicating with it using ajax:
Client-side:
...
$.ajax({
url: 'webservice.asmx/GetCount',
type: 'POST',
data: '{"theDate": "' + ...
0
votes
3answers
70 views
Pass ID in Html.ActionLink via ajax to get partial view
I have an MVC View page, strongly-typed to an enumerated product list. Each list item has an Html.ActionLink with a unique id. In my jquery file, I have an $.ajax function which should process the ...
0
votes
2answers
39 views
a static issue with asp.net multiple users/clients
is it safe to use static in asp.net ?
the situation is this :
counter in code behind is reporting back to user on each forLoop
so:
<div id="report"></div>
will be set via jquery ...
1
vote
2answers
35 views
use of model data in ajax success
$(document).ready(function () {
$.ajax({
url: 'LeadPipes/LeadCounts',
type: 'POST',
contentType: 'application/json',
async: false,
success: function (data) ...
0
votes
0answers
11 views
RadGrid EditForm not showing up for editing but appearing for editing
I have a radgrid in which EditMode is set to "PopUp" and it is causing the popup form to show up on Add new record button click but not on edit button click. I have tried using EditForms as Edit mode ...
0
votes
2answers
69 views
How to return xml data from webservice to jquery ajax call from a webform
This is my JQuery AJAX call. This is inside the document.ready() function. This is supposedly the one that will read the xml data returned by the webmethod in my webservice:
$.ajax({
...
2
votes
2answers
100 views
How to call httphandler through jquery ajax in an aspx page?
I have my custom httphandler which calls a wcf service. By Service returns a Stream
[OperationContract]
Stream GetMyStream(int width, int height);
I am calling the http handler in my aspx page ...
0
votes
2answers
86 views
MVC3 fails to parse JSON
Using the following action from a MVC3 controller:
[HttpPost]
public ActionResult GetAsiguratiSuplimentari(int numarAsiguratiSuplimentari, AcpComplexAsigurat[] oldData)
{
...
0
votes
2answers
66 views
jQuery ajax call doesn't seem to do anything at all
I am having a problem with making an ajax call in jQuery. Having done this a million times, I know I am missing something really silly here. Here is my javascript code for making the ajax call:
...
0
votes
2answers
55 views
Mvc Modal Ajax Form
My Question is similiar to this
What I want to achieve is to display a dialog containing a form for a simple input. Like qty of an article, when the user hits submit, all the dialog should do is ...