I have a dropdown list. This is a bound to a column in Table which has around 200 entires.Now when a user clicks on the drop down list I want him to see not more than 10 rows. The rest he should navigate by using scroll bars.
I am using DropDownlist to validate culture as follows. <asp:DDL ID="ddlculture" runat ="server" /> for this ddlculture data is comming from sql database like this
dim dt as datatable dim dr as datarow dr(0) = "" dr(1) ="--select culture" dt.Rows.InsertAt(dr, 0) ddlculture.DataTextField = "CultureName" ddlculture.DataValueField = "Culture" ddlculture.DataSource = dt ddlculture.DataBind()
everything is ok... but i am trying to validate it using Required Field Validator or compare validator or javascript. it is not validating. what is the problem
I have a gridview that is loaded with data from a dataset and when editing a row, i need to have a drop down list populated with another dataset with the appropriate information. I am trying to implement this on the Row_Editing event. Here's my ASP and VB codebehind for this page.
when i just click on the DropDownListBox then it populates the list of items. when i move on the on of item then color of that item changes to blue i want to assignthe tooltip for this perticular item.bcoz my text of listitem is too large which is greater than width of listbox.s there any event to capture the moved listitem
On my products page I have a small thumbnail and a description that is pulled from the database, since there is space restraints, how do I allow a max amount of characters, and if the description is longer append ... to the end? I'm using a data repeater and data binding for the content inside it.
I'm creating a login page. I want to limit the number of login attempts, say not more than 5, in case of wrong.I want to do it without using the asp:loghin controls and the membership.How can restrict it??
Today my client asked to implement SMS Counter and restriction to 150 characters in SMSalert.aspx form,I have done only Validation Control. I am working with SMS for the first time.
Is there any limit on number of classes that a namespace can have in .net ? Further what is the recommended number of classes that there should be in a namespace?
Any limit to the number of nodes you can have in a treeview, I have been having some problems getting it to display with the panel I made. I have actually decided not to use the treeview, in fact may drop this part of the app altogether, but just wondering for future reference. I know if certain browsers have a limit for the the url, but can not seem to find anything, if there is anything, on a node limit. I am using asp.net 3.5 with VB and my browser is IE8, well the only one I tested on.
I came across a situation where a user selects no of rows from dropdown , depending upon the user input, automatically that no of editable rows should appear to input data...(maximum 8 rows only)
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 have a html.dropdownlist on my webpage as follows: <%=Html.DropDownList("MyDropDown", Model.Data, new { @class = "dropdown"})%> I am populating the dropdown with ~80 items. The issue is that when I click the dropdown the list of items is rendered from the top of the screen to the bottom of the screen. How can I set up the dropdownlist so that it only displays a maximum of 20 items when the dropdown menu is clicked (i.e. user needs to scroll down to see items 21 - 80)?
I was anticipating (!) that there would be a html.dropdownlist property to control the number of displayed items that would allow something like the following e.g.: <% =Html.DropDownList("MyDropDown", Model.Data, new { @class = "dropdown", rows ="20"}) %> From research I have been doing on the msdn website it appears that there is no such property and that each browser has its own rules of how many items are displayed in a dropdownlist (?).
I have a report, which has two sections namely Labour and Spares.In labour section no of records per page must be limited to 5 records and the Spares section have to limit to 10 records per page.If either Labour or Parts exceed the max limit the records must be shown in the next page. Limiting one section by using formulas can be done easily ...but it is very difficult control two sections simultaneously.
I am trying to find a solution to control the number of logins on asp.net application. I need to install the application in the client server, and set the number of licences. e.g. only 10 users are allowed to access the app.
Every time someone tries to login I need to check how many user are logged in, compare with the total allowed then authorize that user to proceed.
I tried with Certificate, but I couldn't see where to match the number of logged in users with the max number of allowed user.
Also I would like to use the IP address as identifier, then if I open 3 browser windows, it count only one user logged.
Basically this web application will be sold by licences. We need to control the logins per computer, and not per user, and block logins if the limit of logins are reached.
I'm trying to read a CSV file into a DataTable using OleDbConnection and OleDbDataAdapter. It works loading the DataTable, but only does 255 columns. The file has 362 columns.
In my text area, I should be able to enter only 72 characters per line. If I use, cols property set to 72, it is allowing more or less number of characters depending on character width.