AJAX :: Getting Data From Other Form?
Oct 19, 2010I have a form and default2.aspx default.aspx
On the default.aspx form, text is displayed Text1.Text = "test".
How do I use Ajax to get the text "test in default2.aspx?
I have a form and default2.aspx default.aspx
On the default.aspx form, text is displayed Text1.Text = "test".
How do I use Ajax to get the text "test in default2.aspx?
How to save data in tables without any button click , it should be done at the time of entering data in textbox and before goin to next data.
View 1 RepliesI have two Repeater controls, each hosted in a user control. Both user controls are contained in the same aspx page. Only one User Control is visible at any one time. The repeaters are comprised of checkboxes, and text boxes for user input.
The aspx page is configured with an Ajax ScriptManager; and contains several Ajax UpdatePanels. These UpdatePanels result in partial page post backs when text is changed in a textbox control in controls on the aspx page (this is not the behaviour for the Repeaters in the User Controls). Through use of several AsyncPostBackTriggers, various controls contained in the other UpdatePanels on the page have their content refreshed in response to the partial page post backs they are configured be notified about.
Depending on a radio button group selection, I set the visible property to true or false - as appropriate for the User control containing a repeater control. The Repeater control is then populated with data using databinding. All of this works.
However, when the Submit button is clicked, the Repeater control contains no data.
Given that I am not dynamically adding the Controls containing the Repeater controls (but using Visible true / false). I would have thought that the State of the fields and the data in the visible control would be preserved during the post back.
The User Controls are contained within the UpdatePanel that contains the Submit Button.
I have explicitly Enabled View state without any effect.
Am I correct in assuming that I should not have to do any explicit handling of data changes the user makes (via client side script and manipulation of an Data Structure Representing the Repeater Data); and the View State should maintain the data I need to access on the server when submitted?
I do not believe that it is the User Control visible state changes that are causing the issue because when the page is initially loaded on of the User controls is populated with dummy rows (so it displays).
I am suspicious that because the visible state of the controls is changed during partial page post back, that the Page View State ends up with no knowledge of the User Control and therefore cannot track its data (or changes).
I have a page with a ScriptManager / UpdatePanel. I currently need to PostBack to a https page from an http page (different ports). I also need the same session data. Currently, I copy my form to a new form, and when I postback to my new Target on a new Port, I get a crash in xmlHttp..something. I will have to post more details later.
I'm currently wondering if this is possible. And does anyone know of such a fix. I even tried to Turn off Partial Rendering and I still get crashes. I can't do this until I pull out the scriptManager / UpdatePanel.
I am new to AJAX. I am designing a feedback form for a video conferencing session in asp.net web application which will be displayed as a modal window. The questions on the modal window will be displayed from a table stored on SQL Server 2008 and the responses of those questions should again be stored back in a different table on SQL Server after user clicks on the SUBMIT button on the modal window (and also, the window should close after the action).
I am not aware of the way to retrieve data from or store data to SQL server from modal window though I know how to retrieve and store data using asp.net and c#...
need to save autonatically after 10 am.
View 1 RepliesI am really new to AJAX and Web Application development in general. What I am trying to do is relatively simple, problem is...I'm just not sure how to do it.
I wish to popup some sort of control that contains a "asp:Label" and an "asp:TextBox" where I can input a value into the textbox. Is this possible to do with AJAX? If so, how is it done?
So part of my web app centers around this very important form which is used to create a form. Its like google docs form. The user keys in a type (checkbox, textfield, numericfield) and a label and slaps it into the system, and it generates a form somewhere.
Its a little more complex than google forms, the field types are complex and theres a lot more to that form (It happens to be a form generator for a finance plan)
The app is asp.net, I was thinking of using jquery and jquery's own ajax methods to post the data, but I think it would just turn into a very hairy situation, I then thought silverlight, but Ive never done silverlight before but I am an experienced .net guy.
So what do you guys think, will silverlight be too tough for a first timer for this kinda thing? Or should I stick to jquery. Plus points for silverlight is its an inhouse lan app and this particular page will be used by people with very high bandwidth.
Also I'm on .net 4 btw.
there is a textbox and button control. On button click event content of textbox is submitted to database and javascript alert is displayed. Now the problem is- If I am refreshing the page using F5 then same value of textbox is being submitted into database and javascript alert is coming again.
View 3 RepliesI am using a from view for data entry. I need to verify that a check box is true or false after editing a record.
I have been accessing label text using the following|
CType(FormView1.FindControl("RespDeptLabel"), Label).Text
How can I access the state of a checkbox in the form view to determine if it is true or false
I hope this is a really easy question but I'm struggling with it. I have a GridView that has an UpdatePanel within a TemplateField.
The idea is that the user can make simple alterations without a full page load being required.
I have simulated my page functionality in the following example, which simulates a database hit, gridview databinding and updatepanel functionality.
When you press any of the + or - buttons in the GridView, the form controls in the bottom UpdatePanel also post their contents back. I have seen this by using Firebug. On my real page however this is causing excessive bandwidth and is nearly the same as a full postback.
how I can force ONLY the appropriate UpdatePanel's contents to postback for processing, rather than all the UpdatePanels?? I've tried experimenting with Triggers but just can't get it working properly.
[Code]....
[Code]....
Here is the code I have so far:
[code]....
When I click submit, It does the validation on the server side, I kinda like it to validate on the Client instead of taking a trip to the server right away.
how to call AJax rating control in Form view ?
I have 1 rating control in fromview in code behid page i wan to call Ajax rating contrl in formview for determine event and property .
want animation that whenever user input data in form and click on submit then there play animation please wait
View 2 RepliesI have Master Page and ascx user controls in my application.
how would I use the Cross-Page technique using the @ PreviousPageType directive.
useful links or samples to achieve this.
I am trying to use the Page class that exposes a property named PreviousPage from my User Control.
I have a web form called default.aspx which has a form with user information. In addition to this, I have an iFrame on the same page that displays a page Secondary-Form.aspx that has a few additional dynamic data fields. I need to do two things.
1. I need to pass the parent form data in real time to the iFrame page to refresh its content and modify it's fields accordingly. Example: If the user submits their Vehicle Choice as Car on parent form, the form item in iFrame will display a radio button that says Honda, and if the user submits their Vehicle Choice as MotorCycle in the parent page, the iFrame will display Harley Davidson as the radio button choice
2. The submit button is on the parent page. I want both pieces of this information (from the parent page, as well as iFrame selection) to be passed to a server side ASPX page to process this information.the default.aspx and Secondary-Form.aspx files are located on different domains.
How do you use the http POST method with a Grid View on another page. I am trying to use the POST method to send the ID from the selected row of a Grid View, I am using a link button set to fire the select command and it has the Post Back URL set, from one page and then retrieve the ID value on another page using an Object Data Source. Also, under the Defining Parameters, I am setting the ID parameter to Form Parameter Source and have entered the Grid Views name in the Form Field.
View 4 Replieshow to open a subform model Form,Sub Window form using jquery that save the data ajex
View 4 RepliesMay i use more than one Ajax toolkits on my web form? because i tried using two ajax toolkits control and then i keep on having error.
View 3 Replieshow to set the form id on an Ajax.BeginForm, i currently have:
[Code]....
This produces the following html:
[Code]....
For some reason it appends the following ?Length=8 onto the action, i've tried moving the id around and removing the @ but then the ID displays form01
I'm using MVC3
I have never used Visual Studio 2010, ASP.NET, or ASP.NET AJAX but I'm doing my best to learn. To that avail, I'm usingProgramming ASP.NET 3.5, a book that Jesse Liberty co-authored. This book was written with Visual Studio 2008 as the programming tool of choice. I'm using VS2010.
As I follow this book line by line and do the given exercises, we have an existing web form project active and he asks for the reader to right-click on the application root in Solution Explorer, click on Add New Item, and then Select AJAX Web Form from the list of templates. The problem is that in my VS 2010 (with the AJAX Control Toolkit installed) there is no option in the list of templates for an AJAX Web Form. There is an option for an AJAX-enabled WCF Service, but no AJAX Web Form.
As I explained, I'm brand new to this and only on page 95 of this book. what I need to do or to add to an ASP.NET web form to make it an AJAX Web Form? And as a follow-up, will I need to add a reference for jQUery along with the AJAX reference?
One final question, I tried to create a blank AJAX Web Site (project) in VS 2010 by clicking on File->New->Web Site-> but there was no AJAX Web Site template for the next selection. I can create an ASP.NET Web Form. So my last question is how does one create a new AJAX Web Form web site in VS 2010.
Been following help video "Get Started with the ASP.NET AJAX Control Toolkit?" and I got as far as adding a Control from the Ajax toolbox but for some reason the control will not add to the form.
View 6 RepliesHow to use form Sliding in masterpage?
View 1 RepliesI am novice to this and I would appreciate any suggestions from your side.
I have several forms that works individually.
I would like them to be placed in the ajax toolkit tabcontainer. When I copy the form inside the contenttemplate, the post does not work.
I want to open form in iframe and submit with thanks message it in Iframe using ajax.
View 2 Replies