I have a form where I am trying to validate few text boxes using javascript. It is not working as it is inteded to and I am unable to understand the reason.can someboady
I am facing problem related asp.net validations controls. validations are working at only one machine. During troubleshooting I have check configuration settings like web.config ,machine.config file, client side source as well as server side source code but all are the same.
I've been having trouble getting a postbackurl to work, so I tried to do a simple test between two pages and I still get the same thing.
[Code]....
That's all I have on Test1.aspx, yet no matter what I do it just postsback to itself. I can't get it to direct to Test2.aspx. I've tried LinkButton too.
When a new item is inserted I want to show a message like "Successful" for 3 seconds and then redirect to main page. For that purpose I used timer control. It works fine in IE but not in firefox. Below is the tick method:
I am trying to make a simple composite control - just a label and textbox - but the postback isn't being picked up by the control.I haven't implemented IPostBackDataHandler as according to this its not necessary - the TextBox control should tie in automagically. A composite control that includes a TextBox need not worry about postbacks, as the embedded control will work it out with ASP.NET automatically.
I have a simple js function that counts down the characters in a text box, and it works in every browser EXCEPT Firefox (3.6.6). I've tried changing some syntax, but nothing has worked so far.
I have a simple web service that isn't working with a standard jQuery call. The code is below. The jQuery will execute and succeed, but on debugging, the service argument is always null. I've had it separated as 4 string params in a json string and that didn't work either. I must be missing something on the config side, but I can tell what it is.
I have a simple .aspx page. Where I need to connect to sql server 2008 and show the records on the page in a gridviewcontrol. It will have Edit button on the gridview control. I am getting some weird message about the connection string.
Error message is: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Keyword not supported: 'initial catalog'.
Code: <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString_SqlServer %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="select name, value from dbo.Pricing order by name asc" > </asp:SqlDataSource>
I have written a javascript code for handling the password functionality. The scenario is: when user wants to change the old password, he cannot fill the same old password again. I have written the code. But even the simple alert of blank textbox is not working. See the code for reference:
Javascript code:-
<script type="text/javascript"> function ltrim(str) { var reg reg = /^s+/g return str.replace(reg, "") } function rtrim(str) {
I ultimately need to show countries in one drop down then states/provinces drop down of the previously selected drop down. I'm sure everyone has seen this many times. My page shows the countries but does not show values in the province/states drop down. It's as if the webservice is never run. I've tried removing and adding the ajaxtoolkit reference. The tableadaters run simple working sql code. I'm really at a lose here.
default.aspx: ... <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> ... <body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <%--Dropdown to display countries--%> Country:<asp:DropDownList ID="ddlCountries" runat="server" DataSourceID="ods_Countries" DataTextField="country" DataValueField="abbreviation"> </asp:DropDownList> <%--data source for the country drop down list--%> <asp:ObjectDataSource ID="ods_Countries" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllCountries" TypeName="countryDataSetTableAdapters.CountriesTableAdapter"> </asp:ObjectDataSource>....................................
I have 3 items in Drop downlist (DDStatus) In-progress ,Approved,Rejected and a button (Final E-mail) on form. when i select Approved in dropdown FinalEmail button should be enabled. how can i do that in which even i have written.
In my form i am having 5 text boxes where onlyone text box will be active(visible=true) and i need validation for it.....Similarly i applied the same validation for all other hidden textboxes which will be activated by another add button click.So here am having only one button to submit the data basing on the user selection of textboxes.So while submitting data in single in textboxes validation is firing in another textboxes also and I dont want it...i want the validation to be fired for the textbox which i activated it.
I've an application where in i'm using same user control for different functionalities.The user control has 2 textboxes.i need to validate them on button control in respective parent pages my application looks like this:Parent page with button and a user control(which has 2 textboxes).I need to validate the textboxes in button event of parent page
In forms I need to do custo validations. Like if use select radio button that he is residing on current address for more than 3 than previous residance fields are optional but if he select (radio button) that he is residing on current address for less than 3 years than previous address fields should be requried. Requirment is to do these on client side.
how this can be done. Secondly can there be some way we just disable a validation group and all validations in this group may be turned to disabl ?
While develop some asp site i have problem with multiple validations on one field. I have input box and 3 validations for it.
- Required Field - Compare Validation - Regular Expression
how to set validations priority. Ex. If Required Field catch error, then Compare Validation and Regular Expression validation messages to be hidden. If Compare validation catch error (and Required field is ok- entered something) then validation message for Regular Expression to be hidden... etc etc...
I would like to learn to use Validations from a class library in my projects. I am trying to create a simple project, so when a button is pressed a validation from a method in the class library checks to see a textbox on my ASPX form if it has a valid integer in it and a label message display true/false. How abouts would I get this?
i am using validation in my website now i can only display one error message for validations is there any way to display one multiple messages for validation in above the page.
I got one masterpage and one content / child page having gridview control .I want to do client side validations using javascript, can anyone suggest me where i have to do this.i.e.., either in masterpage or in content page(I know that only at the <head> tags we can include javascript file, but in content pages there are no html tags,i don't want to use server side validation controls , and i want to validate the server side controls in gridview