i am having 2 textboxes on a form. What i need is if i enter some data in the first text box the same text should be displayed at the time i typed which means
if in the first text box i enter A the same text should be displayed automatically in the 2nd textbox.
in my application (asp.net) i have a filed ( phone code) and it contain a text box. and i want to restrict the user to enter only 4 letter after that the cursor should not print any character how can i write the code
I have a page with two textboxes (one for english and one for korean)..
I want users to be able to enter an english word or enter a korean word...
Now I can only enter english in both of them... Even if my keyboard language is switched to Korean.. I can not type in Korean in the Korean text box....
I thought I could simply change this using something like:
I have a custom control that contains a textbox. This textbox holds the date. I also have an image next to the textbox that if clicked on runs a javascript that populates the textbox with the current date. My problem is that when I type a date that is in the past into the textbox and press enter the date gets overwritten with todays date. As if the image had been clicked.So I wrote a javascript function-
Code: function disableEnterKey(e) { var key; if (window.event) key = window.event.keyCode; //IE else key = e.which; //firefox
[code]...
However the date is still getting over written with todays date! As if the image had been clicked.
i am creating a web from, i am a fresher, how can i create a water mark, i mean if we are going to enter our first name means, if our customer place the mouse cursor in that field means, it will automaticaly shows in the otherhand side like enter your first name and it should be with in 15 letters like a watermark or content box, can you people understand my question.
I know how to catch a key pressed, but I don't know how to do that in a gridview to get the the row index and the value of the field. Explanation in the code below (it is going to be more clear I guess) :
[Code]....
In the txtPosition TextBox the user is entering a number and press the Enter key which launch the "HandleAttribute" event as if the client had click on the "imgbtnUp" ImageButton.
using vs2005 I have a formview control I added from the data section and within the formview, I aded a table from the Standard section. How can I add a text box to the formview so I can enter a number like 7 to display seven rows with a text box. the data will be saved to the sql table when I click on the Insert link at the bottom of the page.
I have to create a text box where if user will enter something it should show the values from database like google shows.e.g If i press a it should display a if i have entered AJ it should show all the list which start from AJ.Same like google.
The problem is that for any other TextBox on the page which is using this MasterPage, for example the login page, if you type your user name and password and hit Enter, The page is redirected to the SearchPage. If you click on login buttton everything works fine. How do I make sure hitting enter on the page in any other text box does not post back to SearchPage.aspx?
If a user selects "No" from BicAdjddl and the Notxt is empty I don't want the page to submit I want an error to come up on a label stating please enter remarks. Here's the dropdown and text box.
Here's my button click...what I added isn't working I added it in the try catch block:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim conn As New Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString) Dim cmd As New Data.SqlClient.SqlCommand With cmd .Connection = conn 'the connection .CommandType = Data.CommandType.StoredProcedure .CommandText = "UpdateClaim" .Parameters.AddWithValue("@claim", Request.QueryString("claim")) .Parameters.AddWithValue("@pic", Request.QueryString("pic")) .Parameters.AddWithValue("@Remarks", Remarkstxt.Text) .Parameters.AddWithValue("@BicAdj", BicAdjddl.SelectedValue) .Parameters.AddWithValue("@NoBIC", NOTxt.Text) End With Try If BicAdjddl.SelectedValue = "No" Then BIClbl.Text = "enter some remarks" End If Catch ex As Exception End Try conn.Open() cmd.ExecuteNonQuery() End Sub
I have a text field where user can enter either an URL or an Email address. How can I use a RegularExpressionValidator to validate that user have entered an URL or an Email address
I had a question on here for a RegularExpressionValidator which I'm relatively new to. It was to accept all alphanumeric, apostrophe, hyphen, underscore, space, ampersand, comma, parentheses, full stop. The answer I was given was:
"^([a-zA-Z0-9 '-_&,().])+$"
This seemed good at first but it seems to accept amoung other things '*'.
below is the code and when i select a wrong filetype i get instant red "*" but i dont see the validation summary and there is a buton("upload") and when i click on it than i get the validation summary error message.
my question is: why validation summary is not displaying when i select the wrong file type?
Is there any way to make a RegularExpressionValidator render itself using display:block, instead of display:inline in its style attribute, when setting the Display property to "Display='Dynamic'"?
I have tried setting it in the stylesheet but this gets overwritten when it is rendered on the page.
I have a query on RegularExpressionValidator. Although this question already asked in various time, I just want to confirm that if I want to validate "only alphanumeric or(and) double quote, single quote, exclamation, semicolon, colon, ampersand, dot, comma, hyphen, question mark, front slash, parentheses, space of 5-40 character length" then will the regular expression be this :