Browse by Tags

Related Posts

  • Need first item in Drop Down to be -Please Select- Formview

    Hi, I am just using the formview and built in Sql Datasource to populate a drop down list. I want the first record to be a select message, so that the onchange event can fire and build out a gridview of records based on a parameter from the drop down. I can do everything but get the blank record in the...
    Posted to Data Presentation Controls (Forum) by Lgilman327 on 05-26-2009, 12:00 AM
    Filed under: databind, DropDownList, FormView
  • Error binding value to custom DropDownList

    I have a custom control that inherits from DropDownList. Inside OnInit I bind the control to data pulled from the database. If I put the control on a page by itself it works fine and all events fire properly. If I try to use it inside of a GridView and bind a value to it, like I would with an ordinary...
    Posted to Custom Server Controls (Forum) by pawicks on 11-11-2008, 12:00 AM
    Filed under: databind, dropdownlist, inherit
  • Getting Object From Data Bound DropDownList

    I have a DropDownList that is bound to an ObjectDataSource. The ObjectDataSource gets a list of Product objects. My Product object has the properties, Name, Code, Price, Units. I am using Name as the DataTextField and Code as the DataValueField of the DropDownList. What I would like to do is default...
    Posted to Data Access and ObjectDataSource Control (Forum) by dprior on 11-23-2007, 12:00 AM
    Filed under: DropDownList, databind
  • pushing a value to a ddl

    Hello All, In my VB, I have a Read and an Edit Sub. The Read Sub pulls the data into the fields just as I expected it would, but how do I go about pushing the values in to the Edit Sub dropdown lists? I've tried using .text, .selectedvalue and .selected index, but I always get the same error as below...
    Posted to Web Forms (Forum) by pat6907 on 11-20-2007, 12:00 AM
    Filed under: DDL, drop down list, drop down list box, Drop down list items, drop down list selectedindex problem databind(), dropdown, Dropdown list, DropDownList, .Net 2.0, databind, DataBind DataBinding, drop down list databound
  • Changing dropdownlist contents based on selection in listbox

    I have a listbox databound to a table in an Access database (Clients). When I select a customer in that list, I want to see what products they have purchased in a dropdownlist. The data in the dropdownlist would come from a table from the same database (ClientProducts). The problem I'm having, is...
    Posted to Web Forms (Forum) by hostopolis on 09-10-2007, 12:00 AM
    Filed under: ASP.NET 2.0 webform, BoundField, c# code, Data Presentation Controls, data source, database, databind, databinding, DropDownList, listbox, asp.net 2.0
  • Re: Binding DropDownList to a table column

    Hi Rattlerr, To bind a DropDownList to a table column/database you must first set up a datasource which is used to populate the dropdown. Here is an example of an AccessDataSource: < asp : AccessDataSource ID ="ADS_MethodList" runat ="server" DataFile ="~/App_Data/your_database_name.mdb" SelectCommand...
    Posted to Data Access and ObjectDataSource Control (Forum) by djh on 05-02-2007, 12:00 AM
    Filed under: SqlDataSource, Data Access, databind, DropDownList
  • DataKeyNames Update

    I have a detailsview with 2 datakeynames, host_id and db_id. When I edit the registry I can modify the host_name, so I have to modify the host_id too. But when I update the host_id continue the same. I'm using stored procedures, and its right. what do i do?!?!?!?! Here is the code... Private Sub sdsPrincipal_Updating...
    Posted to Data Presentation Controls (Forum) by brunavillar on 04-27-2007, 12:00 AM
    Filed under: rows, TemplateField, UPDATE, update detailsview, Updateparameters, Bind update table inside dataview, Binding, Control Parameter, databind, Databinding DropDownList consistency, Datagrid updatecommand, datailsview, datakeynames . updatecommand does not work (must declare variable @...), DropDownList, edit mode, edit template, detailsView custom update, DetailsView DetailsViewRow, Detailsview dropdown problem, detailsview dropdownlist editmode, FindContol
  • Re: DropDownList refresh after FormView insert

    The problem appears to be the order in which the page events occur. Your postback to write to the database happens and loads up the the page_init and the page_load BEFORE it processes any of your requests (in this case, your request to write to the database). That means your dropdownlist is likely being...
    Posted to Data Presentation Controls (Forum) by pixelsyndicate on 03-19-2007, 12:00 AM
    Filed under: databind, DropDownList
  • setting label to visible with button click

    Hi, I'm having some problems with using a label to display a message "No Records Found" when the user clicks a Search button. What I want it to do is to check if there are any results from a database that get displayed on a GridView. I have the following method so far: ------------------------------...
    Posted to Data Presentation Controls (Forum) by tomosap on 02-27-2007, 12:00 AM
    Filed under: paging, postback, records, rows, table adapter, textbox, VB, Visible, access database, ADO.NET, asp.net 2.0, asp.net 2.0 GridView databound ItemTemplate, Client, codebehind, data, data access layer, database, databind, databinding, DropDownList, If Statement, GridView, label
  • Dropdownlist databinding problem

    Hi all, i am having a problem, I have two columns in SQl one for year and one for month. I wanted to combine 2 columns n then display combined column in Dropdownlist.So I am using this Code:- Private Sub YearMonthbind() 'sql = "SELECT DISTINCT YR4, MN2, DATENAME(month, CAST(MN2 AS varchar) ...
    Posted to Web Forms (Forum) by schauhan13 on 06-30-2009, 12:00 AM
    Filed under: DropDownList, databind, DataBinding
Page 1 of 2 (11 items) 1 2 Next >