I have the following code where the function codeaddress geocodes the text feild value and returns geocoded value , geocoded value is stored in variable example ,how will i return the variable v2 to the function call and post to asmx webservice.
I have create a web page having dynamically created text boxes if i select value in dropdown list,text boxes auto generates .but i want to save all text box values in SQL server database after clicking on submit button using ajax/JSON request
I need to know what would be the best choice of array to use given the following specifications. This array's size will be predermined upon the loading of the appication. All I want to do is be able to add values to this array and replace preexisting array items with new values without the array changing size. Someone suggested that I use a Dictionary Array Object? I would appreciate any suggestions.
What I have is a table that holds 3 input elements, They represent order, name, value. The user can add a new row of 3 inputs to add as many of these sets of data as they want.
To accomplish the dynamically adding in of inputs I use jquery's clone method. That works fine and I am able to iterate through each and grab the values, however the real pain I am having is that when the user has entered in all of the data I want to pass that data to an asp.net page through jQuery's post method. How do I go about passing an array of strings so that I send this format to the asp.net page, and when I've done that how do i parse the data on the asp.net side of it.
Desired Data Format:
["Name|Link|Order", "Name|Link|Order", "Name|Link|Order"] jquery Code so far: $("#saveBtn").click(function (e) { e.preventDefault(); $("#addPanel").slideUp(300); //Perform Save Operation var saveString = ""; $("#addTable tbody>tr").each(function () { var o = $(this).find(".hsaorder").val(); var n = $(this).find(".hsaname").val(); var l = $(this).find(".hsalink").val(); saveString += n + "|" + l + "|" + o ; }); ////// Create Array here or some other method? $.post("/modules/H/Modify.aspx", { OBVIOUSLY SOMETHING GOES HERE}); // Remove all but top table element to return to original state $("#addTable tbody>tr").not("#addTable tbody>tr:first").remove(); });
I have a query string which contains the value of more than one Array, I want to pass these values from Page 1 to Page 2 and then distribute the array values into new arrays on Page 2.
Here is what I have so far.
Page 1
[Code]....
[Code]....
Page 2
[Code]....
All that I get returned in EFFinal and IFFinal is System.String?
Im currently trying to use a jQuery plugin:jQuery Autocomplete TokenizerNow after posting back the page, I want to re-load the values back into the textbox for whatever items had been entered.Now the jQuery on the page is like below:
$(document).ready(function () { $("#<%=txtPeople.ClientID %>").tokenInput("Handler.ashx", { hintText: "Type in a name", noResultsText: "No results", searchingText: "Searching...", [code]...
I have a ajax Popup extender which contains a grid and when i select a row a value should pass into the textbox in the parent page. i created every thing but the value is posted in the textbox. The Grid is loaded perfectly and the popup shows but when i click the select command field inside the grid the popup disappers but the value is not loaded in the textbox. help me am struck up with this for a very long time.
I have a simple web app which contains a page of thumnail images. The user selects one or more of these images, which then appear in a 'lightbox' area on the page (just a div into which the images are cloned, to give a preview of which ones the user has chosen), and clicks a button which zips up the selected images and prompts the user to open or save the zip. I'm wondering what the best way of doing this is, bearing in mind my .NET skills are very limited? I have the jquery working which clones the items into a lightbox div. I also have the ASP.NET side of things generating a zip file and sending it to the user to download - although the zip is just hard-coded as an empty file at the moment. Currently I'm thinking that each click of the thumbnail will call an aspx page via ajax and will add that item (probably the file name of the image) to an array in a session. Then when the download button is clicked, the application will loop through all the session items, zip the files and send to the browser as a downloadable zip.
Is this a good way to do it? If so, could anyone point me towards the best way to save the selected items into an array in a session? I've really no idea how to store a list of items in an array. It would be good also to be able to use ajax to remove items from the session array too.
here i have a problem,i need to pass the value of one tab to another for tab. For example if i selected a row in the DataGrid based on the DataKeyField of that row i have to display the details in the second tab panel. i tried it but getting a error.
Am using a Model popup to show a grid view. From where the selected record should be posted back to a Text Box in the parent page. i loaded the grid succesfully i can post the values inside the modelpopup. but can't post the value to the text box in the parent page. and i use only server side code not client side scripting.
I have a form with three filed name city and relation.relation filed is a dropdown and on the selection of relation i have to display list of users in grid.I want here to use Ajax or Jquery so that when i select relation not whole page will post to server but only relation and could display list of users in grid.
inside Html Table i have all these fileds( Name,City and Relation).
I haven't used Jquery to post Json data to mvc before, so this maybe a Noob issue.
I've got a really simple form, and am trying to post this data async to an mvc action. Within firefox I can see the data being posted, but I can't see it within the MVC action.
This code all runs through correctly, but putting a debug point in the action method will always show the form collection as empty.
I was just wondering if its possible to do an ajax post a file in asp.net mvc,basically i have a form with two buttons, one of the buttons extracts images for the selected document and displays them for the user to choose thumbnails for the document he is about to upload. The usee then fills out the rest of the form and then saves the document.With the image extraction, I was owndering if it was possible to do that as an ajax post. The other submit button can work as a normal http post
I need to pass a customer id to get some data back for a customer from a webservice. I can't figure out how to get to the webservice, I have a breakpoint set in the webmethod but it's not being hit and the alert box is not popping up either. For a test I am just trying to show some value from the returned data in an alert box. Note I am just hard coding the customer id of 1001. The webmethod takes a parameter of string customerid.
[Code]....
Does some one know what's missing or how to debug this issue?
I am making a jQuery ajax post in a javascript function used by a asp:CustomValidator control. The web method returns a boolean. How do I convert the result make the validation script function correctly.
is possible to send an AJAX post with parameters and not querystring information? I have some sensitive information that I am not comfortable sending in a querystring.
Also, how does that change the deserialization of my data? Will I still be able to use code similar to below:
im working on a MVC 3 webapp where i want to post to a controller function using jQuery ajax. However, every time i post to the server i get a 400 Bad Request response and i can't figure out where this comes from as the site runs fine with the VS2010 devserver.
See the function im using to send the ajax post below:
I have a new webpage "smile.aspx" with the web method "GetDate" that returns "current date as string".
I am using JQuery to make a Ajax call to that method, Right now i am using ASP.NET Version 2.0[.NET Framework 2.0,Visual Studio 2005].
The parameter returned by the Sucess function seem to return "undefined" .anyone Techhy, quick look at the ajax request code below will answer my problem.