Web Forms :: Restricting Field Value To One Of Two Characters
Oct 19, 2010
When editing a data record from a detailsview, i need the input to be either a Y or N. I tried using a comparevalidator, but it allows only one character in which the value must be equal to.
View 3 Replies
Similar Messages:
Jul 29, 2010
I need to validate a textbox that it should allow only certain characters and after the limit is reached the textbox should not allow entering characters in it.It can be done by Javascript but dont know how to do..
View 3 Replies
Jan 21, 2010
i list the project descriptions on a field in my gridview, but some of them are too long. i want to limit them like 20 characters of 50 chars can be seen by the user. then pressing a button entire description will be displayed.
View 4 Replies
Jan 2, 2011
I am listing details using a gridview and wish to just display the first 50 characters of a 1000 character field. I feel this should be simple but cannot find the solution.
My current gridview code for this field is simply
<asp:BoundField DataField="BullDetail" HeaderText="Details" />
View 12 Replies
Mar 11, 2010
I want to force user to type more than 6 characters in password field.we cannot usee range validator because password characters can be mix(i.e.Numeric or alphabates or special characters)
View 3 Replies
Oct 6, 2010
I have a PDF document with a number of text fields, several of which have a maximum length - namely, a maximum number of allowable characters. Is there a way using iTextSharp to determine this setting? Here's the code I have so far:
Dim reader As New iTextSharp.text.pdf.PdfReader("Foobar.pdf")
Dim inputFields As IDictionary(Of String, iTextSharp.text.pdf.AcroFields.Item) = reader.AcroFields.Fields
For Each key As String In inputFields.Keys
Dim PDFFieldName As String = key
Dim MaxFieldLength As Integer = ???
...
Next
I need to set MaxFieldLength to the number of allowable characters for the current form field being iterated over.
View 1 Replies
Mar 17, 2010
i hav an web app that gets data from user and writes it in a file.
the issue is many users can launch the application at the same time and hence many can write to the file.
but the file is at a shared path and hence only one copy is used by all. I want to restrict the number of access to the file at a time to 1.
View 1 Replies
Sep 22, 2010
i am trying to test to see if i get an error if i upload more than 3mb file size but instead i get the IE error (see below)
here is the code i have. - what i want is if the user try to upload more than 3mb file size display an error
[Code]....
[Code]....
View 10 Replies
Dec 22, 2010
I used the following code to encrypt the password using md5 and store it in the database.
public partial class register : System.Web.UI.Page
{
SqlConnection con = new SqlConnection("Data Source=Shihab-PC;Initial Catalog=test;User
[code]...
View 3 Replies
Dec 13, 2010
How to count no. of characters entered in multiline textbox, i wanna enter maximum 140 characters in my multiline textbox using vb.net ...
In short i want textbox to enter limit is only 140 characters ....
i have te following code to do that .... but i wanna implement 140 characters limit in multiline textbox :
<script type="text/javascript">
function Count(x) {
document.getElementById("Label1").innerHTML = document.getElementById("TextBox2").value.length;
}
</script>
<asp:TextBox ID="TextBox2" runat="server" Height="78px"
TextMode="MultiLine" Width="224px" onkeyup="Count(this.id)"
MaxLength="140"></asp:TextBox>
View 3 Replies
Feb 1, 2010
I have a problem with MaskedEdit's mask for the code shown below:
[Code]....
When I'm starting to print date in the TextBox, mask moves with characters. Mask characters don't hide under typing characters.
View 7 Replies
Aug 23, 2010
I have a string with 100 characters and it is for me too long in one line. I want to make NewLine after each 25 characters. For example:
Instead: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua."
View 2 Replies
Jan 5, 2011
I have a application that takes a tab delimited text file parses and the inserts the data. Some of the data has international characters. My problem is it appears that my application is changing the characters. For Example the file might contain something lke this Andrlová and is converting it to this Andrlov�
I am passing this into a sproc. The datatypes for my paramater & DB Field is nVarChar(50). If I insert the data directly into my table or if I call my sproc from a query window and pass in some data it works fine, but when my app touches the data it appears to get messed with.
View 3 Replies
Feb 14, 2011
I have to allow only single user to access the site. We should not allow the same to user to access from another browser.
View 2 Replies
Nov 11, 2010
i have an image (say abc.gif) that i would like to allow the user to "view" only if he is logged in to my system. Currently i am checking whether he is logged on to my system using session variables.
View 5 Replies
Mar 9, 2010
I have an application where in the User Authentication is from the AD useing Directory services.
If i type in the address of a valid page from the application into the Address Bar, it throws me to the Login Page.
However if i am logged in and i type in the address of a valid webpage, the application takes me to the page. Is there any way that this can be restricted.
If i type in the URL into the address bar the application should throw me to the Home page of the application.
View 1 Replies
Jun 17, 2010
In my asp.net I am using Datalist in that I want to limit row count and want the sort to be in vertical. Let me know how to do this. Ex: I want my list to be like this
1 4
2 5
3 6
View 1 Replies
Nov 16, 2010
I'm using user membership and roles. Below is my web.config for subfolder restriction.
[Code]....
The way I have above, no one can access this folder, mySub, except Administrators, Editors, and Members. However, here's what I want. I want to allow all and any user to the default.aspx page of this mySub folder and denied any other pages if they're not Administrators, Editors, and Members. One last thing, also denied access to addWord.aspx if they're not Administrators and Editors. I know I can list all the pages and give them various permission but I do not want to list all the pages. What's the best and easist way to accomplish this?
View 2 Replies
Jan 28, 2010
I have a folder that cannot be accessed by anyone except the management role of my web site. But, I added a folder to this and it can be accessed by anyone.
Of course, I can explcitly set the access to only a specific role(s) but I would like to know if I can tell set it so that even folders nested inside a restricted folder can take on the same permissions settings as the folder in which it is nested.
View 3 Replies
Dec 11, 2010
I have seen an existing post which explains how you can restrict access to an ASPX page using:
[Code]....
This works as in it keeps those who are not a member of Administrators AD Group from being able to view the webform but for some reason when I implement the above it locks even the Administrator user out which is not what I wanted at all.My web.config is as:
[Code]....
As you can see I have tried to restict it also through the web.config file but neither approach has worked.
View 3 Replies
Jan 29, 2011
I'm trying to restrict access to one page on my website. However, the code I'm using doesn't seem to work for this purpose. I can get the code to work by removing the following out of the web.config.
<authorization>
<deny users="?" />
</authorization>
This works fine by preventing access to the page unless a password is entered. However, I've realised that if I type the page name into the browser this will by-pass the login page and allow access to the page I want to lock down.
[Code]....
View 1 Replies
May 12, 2010
I am working on asp.net , I want to restrict a user to login in his acount from multiple locations or machines.
If one user is already login , I want to restrict it and display message that you are already login somewhere.
View 3 Replies
Mar 18, 2011
When i post some polish chacters to webapp , i am not able to extract the polish chaters properly . I am using request.parsm[0] to recive the text
View 3 Replies
Mar 4, 2010
In Crystal Reports Viewer (2008) for ASP.Net, when you click on the Export button, the Export dialog shows up with File Format options:
[code]...
how to remove some of these options so that end users wouldn't see it?
View 3 Replies
Sep 9, 2010
My scenario is i have 4 tabs, under every tab there are five cascadded combo. So for page load itself it calling webservice at last and populate all parent cascaded dropdowns in all the four tabs.
now I have made changes but still now its not working. By defeault [ScriptMethod(UseHttpGet = false)], so i made it [ScriptMethod(UseHttpGet = true)]. now on tab change i added that function and it is calling the web methods when changing the tab. But after the loading its again call the webservice and this time as the get is true so its not getting any value. And in the dropdown its showing "error 12030".
View 1 Replies