I was woundering if i could be lead in the right direction.
I have three tabs on my page and on the first tab i have a txtbox which i supply with a name. On my tab 2. I have a ddl which i will include the value of the txt i was working on on tab1
Now i will like to post the value on the textbox in tab1 to the ddl in tab2(Searching through it and getting the right info)
The way i have it right now is just adding another value into the ddl and its not searching properly even thou i know there is a record in the db.
I have been adding different JQuery Carousels to AJAX Tabbed Panels - the first one displayed on the page always works. But any other tabs dont work when I select the tab. I have about a dozen different carousels.
Can anyone recommend one that works in AJAX Tabs or how I can go about rectifying this?
I have created an asp.net applications in which i am using jquery tabs to show say profile modifications information. I want user to see his profile info as well as he will be able to edit his details and save the information. for this purpose i have created an aspx page "MyProfile.aspx" and 3 ascx pages
say "page1", "page2" and "page3".
When i run "MyProfile.aspx" i can see all 3 tabs showing correct information. But problem is when i edit contents and try to save them back to the database. Contents on page1 are stored correctly. But page2 and page3 doest not fire any event. In all 3 pages I am using ajax n jquery to save data to database. and when i try to save contents of page2 and page3 nothing occurs.I am showing 3 tabs there of which first tab edits save the details but second and third tabs do not fire any event on button click.
I Had two webforms. source.aspx & Target.aspxSuorce.aspx has 2 textboxes for input data and two submit buttons. am using cross page technique to transfer data from one webform to other.ource Page:On buton click event :
Server.Transfer("TargetHome.aspx"); = null) { TextBox TextBox1 = PreviousPage.FindControl("TextBox1") as TextBox; if (TextBox1 != null) [code]...
See what happens when you answer my questions! I come back! No good deed goes unpunished. I've built an Update form where my visitor can update data in dbase. I have a formview with several dropdown lists; none of which will update the table (all the textboxes, checkboxes and even Ajax enabled calendar work just fine). In the form below, visitor selects a CareerCluster from the ddl. Upon postback, the next ddl (pathwayListBox) populates with related data using the CareerCluster.selectedvalue in a query. At the same time, tsaOrgsDropDownList is also populated based upon the first ddl (CareerCluster).
When user selects from the tsaOrgsDropDownList the final ddl (tsaDropDownList) is populated. All this various selecting/populating works just fine on the form. The problem is: Nothing is updated to the table upon clicking the Update button. All other form fields do post as their supposed to except, I have other ddls on the page that are not related to the above series and they won't post either. My thought is that somehow, this is related to the postbacking going on. That posting back is overwriting the selectedValues with null or something.
<asp:FormView ID="courseUpdateFormView" runat="server" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" DataKeyNames="CTECourseID" DataSourceID="formviewSqlDataSource" Width="715px"> <FooterStyle BackColor="#C6C3C6" ForeColor="Black" /> <RowStyle BackColor="#DEDFDE" ForeColor="Black" /> <EditItemTemplate> <table align="center" width="700" border="1" cellpadding="10" cellspacing="2" bgcolor="White"> <%--A whole bunch of textboxes goes here--%> <tr> <td bgcolor="#dadada"> <strong>Number of HS Credits:</strong> <span>(Standards-based districts use the <em>Other</em> form field.)</span> </td> <td bgcolor="#FCCCCC"> <span><font color="red">Note: you must reselect HS Credits from the list or enter Other credits in the form field provided.</font></span><br /> <asp:DropDownList ID="numHSCreditsDropDownList" runat="server" TabIndex="3" ToolTip="Standards Based districts us the Other form field." ValidationGroup="HSCredits" AppendDataBoundItems="True" OnSelectedIndexChanged="numHSCreditsDropDownList_SelectedIndexChanged"> <asp:ListItem Selected="True" Value="0">--Choose One--</asp:ListItem> <asp:ListItem>0.5</asp:ListItem> <asp:ListItem>1.0</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td bgcolor="#dadada"> <strong>Career Cluster:</strong> </td> <td bgcolor="#FCCCCC"> <span><font color="red">Note: you must reselect Career Cluster from the list.</font></span><br /> <asp:DropDownList ID="careerCluster" runat="server" AutoPostBack="True" TabIndex="4"> <asp:ListItem Selected="True" Value="0">--Choose One--</asp:ListItem> <asp:ListItem Value="1">Agriculture, Food & Natural Resources</asp:ListItem> <asp:ListItem Value="2">Architecture & Construction</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td bgcolor="#dadada"> <strong>Pathways:</strong> <span>(Pathway as defined in the Cluster/Pathway model.)</span> </td> <td bgcolor="#FCCCCC"> <span><font color="red">Note: you must reselect Course Pathway from the list or enter Other Pathway in the form field provided.</font></span><br /> <asp:ListBox ID="pathwayListBox" runat="server" DataSourceID="CTECourses" DataTextField="ClusterPathway" DataValueField="ClusterPathway" SelectionMode="Multiple" Style="margin-left: 0px" TabIndex="5" Rows="3"> <asp:ListItem Selected="True" Value="0">--Choose One--</asp:ListItem> </asp:ListBox> <asp:SqlDataSource ID="CTECourses" runat="server" ConnectionString="<%$ ConnectionStrings:CareerTechEducationConnectionString %>" SelectCommand="SELECT [ClusterName], [ClusterPathwayID], [ClusterPathway], [ClusterCode] FROM [lkClustersPathways] WHERE ([ClusterCode] = @ClusterCode)"> <SelectParameters> <asp:ControlParameter ControlID="careerCluster" Name="ClusterCode" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:SqlDataSource> </td> </tr> <tr> <td align="center" bgcolor="#4A3C8C" colspan="2"> <asp:Label ID="occupationalStandardsLabel" runat="server" Font-Bold="True" ForeColor="White" Text="Occupational Standards"></asp:Label> </td> </tr> <tr> <td bgcolor="#dadada"> <strong>Source of Occupational Standards:</strong> </td> <td bgcolor="#FCCCCC"> <span><font color="red">Note: you must reselect Source of Occupational Standards from the list or enter Other Source of Occupational Standards in the form field provided.</font></span><br /> <asp:DropDownList ID="tsaOrgsDropDownList" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource3" DataTextField="TSAOrganization" DataValueField="TSAOrgID"> <asp:ListItem Selected="True">--Choose One--</asp:ListItem> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:CareerTechEducationConnectionString %>" SelectCommand="SELECT [TSAOrgID], [TSAOrganization] FROM [lkTSAOrgs] WHERE ([TSAClusterID] = @TSAClusterID)"> <SelectParameters> <asp:ControlParameter ControlID="careerCluster" Name="TSAClusterID" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:SqlDataSource> </td> </tr> <%--A whole bunch of textboxes, checkboxes and other stuff goes here--%> <tr> <td bgcolor="#dadada"> <strong>What is the Summative Assessment (Technical Skills Assessment) for this course:?</strong> </td> <td bgcolor="#FCCCCC"> <span><font color="red">Note: you must reselect Summative Assessment from the list or enter Other Summative Assessment in the form field provided.</font></span><br /> <asp:DropDownList ID="tsaDropDownList" runat="server" AutoPostBack="false" DataSourceID="TSAs" DataTextField="TSA" DataValueField="TSAID" Width="300"> </asp:DropDownList> <asp:SqlDataSource ID="TSAs" runat="server" ConnectionString="<%$ ConnectionStrings:CareerTechEducationConnectionString %>" SelectCommand="SELECT [TSAID], [TSA] FROM [lkTSAs] WHERE ([TSAOrgID] = @TSAOrgID)"> <SelectParameters> <asp:ControlParameter ControlID="tsaOrgsDropDownList" Name="TSAOrgID" PropertyName="SelectedValue" Type="Int32" /> </SelectParameters> </asp:SqlDataSource> </td> </tr> <%--A whole bunch of textboxes goes here--%> <tr> <td align="center" bgcolor="#dadada"> <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" /> <br /> <span><font color="maroon">* All fields except the Tech Prep Information are required.</font></span></div> </td> <td align="center" bgcolor="#dadada"> <asp:Button ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" /> </td> </tr> </tr> </table> </EditItemTemplate> </asp:FormView> <asp:SqlDataSource ID="formviewSqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:CareerTechEducationConnectionString %>" SelectCommand="SELECT * FROM tblCTECourses WHERE (CTECourseID = @CTECourseID)" UpdateCommand="UPDATE tblCTECourses SET HSCredits = @HSCredits, CareerCluster = @CareerCluster, Pathways = @Pathways, TSAOrgs = @TSAOrgs, TSA = @TSA, LastUpdate = GETDATE() WHERE (CTECourseID = @CTECourseID)"> <SelectParameters> <asp:SessionParameter Name="CTECourseID" SessionField="CTECourseID" Type="Int32" /> </SelectParameters> <UpdateParameters> <asp:FormParameter FormField="numHSCreditsDropDownList" Name="HSCredits" Type="String" /> <asp:FormParameter FormField="HSCreditsOtherTextBox" Name="HSCreditsOther" Type="String" /> <asp:FormParameter FormField="careerCluster" Name="CareerCluster" Type="Int32" /> <asp:FormParameter FormField="pathwayListBox" Name="Pathways" Type="String" /> <asp:FormParameter FormField="tsaOrgsDropDownList" Name="TSAOrgs" Type="Int32" /> <asp:FormParameter FormField="tsaDropDownList" Name="TSA" Type="String" /> <asp:FormParameter FormField="TSAOtherTextBox" Name="TSAOther" Type="String" /> </UpdateParameters> </asp:SqlDataSource>
In the codebehind I've tried to set selectedvalue to session variable upon selected index changed like this:
Protected Sub numHSCreditsDropDownList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Session("HSCredit") = DirectCast(courseUpdateFormView.FindControl("numHSCreditsDropDownList"), DropDownList).SelectedValue End Sub
I need to process surveys. I have modelled them in SQLServer, just need to generate the forms to input it.I have nested SqlDataSource/DataLists. The outer gets the questions and the inner gets the various options as a plain HTML radio buttons. I can't use ASP.NET radio buttons because of a bug with them inside itemtemplates not mutually exclusive http://support.microsoft.com/default.aspx?scid=kb;en-us;316495Anyway, so now I need to know the which radio buttons were selected so I can insert the values in the database. What is the best way of doing it?
I want to send some values from my iPhone application to an ASp.Net web page in server. I am using asihttp for that. Its processing the request and invoking the page on server. But the none of the values are retrieved in server side. Below is the code from iPhone app.
let's say I have a page with a form on it where a user clicks Submit. This page checks the input fields when the user presses that button. If the fields contain mistakes, the appropriate fields' labels are turned red. That much is easy. Let's say if it's right, I want to POST that form to an external page written in another language. I cannot use any .NET conventions for transferring data, so it must be POST values. The postback attribute would seem to be for this, but I need the forwarding to be conditional. Eg: They're only posted to the external page IF my button handler determines that the values are good.
I'm currently using an SqlDataSource in ASP.NET/C# to let users insert, delete and update entries in a table/gridview. Every event needs to be written to an audit table.
I have easily implemented inserting and deleting - when inserting, the main info audited is just the parameter values of the insert query (e.Command.Parameters[0].Value.ToString() etc), and deleting is pretty much the same (just getting the ID in the delete query).
But with updating, I need to log which fields were changed and also their old values. How would I do this? As an example, here is the code for the inserting:
I have a classic ASP page that requires two values from a form. These values are posted to the ASP page from another pages form. I would like to pass these values to the ASP page without the need for a form for testing. Is this possible?This is what the asp page looks like:
<%@LANGUAGE="JavaScript"%> <% var someID = new String( Request.Form("someID") ); var anotherID = new String( Request.Form("anotherID") ); %>
Ideally I would like to have VS pass values to 'someID' and 'anotherID' when debugging is started.
I have notice that the UpdatePanel post every field included on the form on every trigger.
But in most of my cases I use 2-3 UpdatePanels at the same page, and each one is independent.
When I click for update the one panel, then my page receive all the input data of the page (ok this is logical) but I won to read only this UpdatePanels data and act according, and not the other panels data.
So I see that a lot of traffic is happened this way.
So is there a way to say to one UpdatePanel - send only my input data, and not everything found on the page. ?
I am having a problem where when I form post to an action it gets null values in my hosted enviroment although if I use a model to bind to it works fine. Everything posts and works correctly when I run the project.
So far I have tried to pass the form fields back as parameters on the action and get the value through the context request. Both work fine but as soon as I publish it to the hosted enviroment, it doesn't work. in the view I have:
<%=Html.TextBox("subject") %>
<%=Html.TextBox("comment") %>
for the action Method:
[HttpPost]
[Authorize]
public ActionResult Reply(int? id, string subject, string comment)
{
//Some code...
}
I have verified that it is hitting the action but the subject and comment values are null. I am guessing I am missing something simple, maybe a security setting in the config, that is causing this since I am still fairly new with MVC. I am running VS 2008 with MVC2.
I am using asp.net/c# application. In my application, I have a gridview.<asp:GridView id ="gv_QuestionList" runat="server"> </asp:GridView>In Code Behind, I created dynamic textboxes and DropDownLists on RowDataBound.
[Code]....
I have a Save button out side the gridview which stores all the row values into database. when I click the "Save" button, I lost dyanamically ceated controls like textbox,dropdown and values (on postback).How can i get all the dynamically created controls and values after the post back?
I have a custom server control (composite control having dynamically created dropdown boxes and textboxes). I have enabled AJAX in order to avoid page reload.The server control is used inside the ASP.NET webcontrol having few buttons which controls the visibility of the server control. Now I enter values in the dropdown box and texboxes and click on any other button. After this postback the last entered values are gone! The control is not remembering the values. How can I retain the values after post back?
I have a /Register [GET] Action in the controller that pre-poluates a view-model with a string and an integer and returns: return View(myModel);I can see the string being populated in the textarea and the id being populated in a hidden input. Yet when the form gets POSTed, the string value is null and the int value is 0. I verified that both values are posted to the server but the model received in the POST action is missing those values.
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 am new to webmatix and I do not do much development. I was trying to get some values from a request object and it's probably something very stupid I am doing wrong but really I cannot see what it is. This is the code I am trying to use, but I get no value from any items from the form:
@{ Layout = "_SiteLayout.cshtml"; Page.Title = "test"; if (IsPost)
I have a post-only action that has a different route. In my form, I need to post to it, but also keep the querystring values I currently have.
Initial response: /my/first/path/?val1=hello Needs to post to: /my/other/path/?val1=hello
It seems when I specify a route, it of course only returns the route and doesn't append the querystring values of my original page (for obvious reasons).Is it possible to cleanly append querystring values to my the action attribute of the form tag?
I have a hidden value field on a page. On submit I post to a different page. On the page I've posted to I do a Request.Form but I do not get the value just a null value. This is the initial page
The javascript ViewCancellation function is set to a hyperlink in the code behind. The function will have a value like this,<a href="#" onclick=" View Cancellation(54666);return false;">cancel</a>.