Search results

  1. M

    Datagrid sorting problem

    I have worked out that the buttoncolumn of my grid is not sorting when the rest of the datagrid sorts because in my sort event handler, i am doing my sort via a select statement with an order by. My button column does not respond to this. How do i get my button column to sort with the rest of...
  2. M

    Datagrid sorting problem

    Hello, I have setup sorting on my datagrid. However, all columns of the datagrid sort fine except the buttoncolumn of the grid. The button is there to show users more information for the clicked row, however, because it does not sort along with the rest of the datagrid, it shows the incorrect...
  3. M

    Finding last row in the dataset

    Thanks mate, my data is in a dataset so will i need to change my code to reflect a dataset rather than datarow?
  4. M

    Finding last row in the dataset

    Hello, I wish to have a loop that looks through each row in the dataset and compares the values to that in a textbox. To do this, i need to tell the loop to keep going until it reaches the last row of the dataset. How do I specify in my code the position of the last row of a dataset...
  5. M

    Database Connection String

    Thanks! I however have done it an alternative way. I created a class that defines the connection string and then a property that gets the connection string. The rest of my forms that reference the property of this class. This works but is the webconfig method a better way of doing it?
  6. M

    Database Connection String

    Hello, I have around 10 webforms that all use the same connection string. In the code-behind of each web-form i declare and define this connection string. Rather than do it 10+ times, how do i define the connection string once, and have all may webforms refer to this? Help much appreciated!
  7. M

    Dropdown list

    I have checked this and it does not seem to be the case. In my pageload I have: 'fills the members and copies dropdownlists only when the page loads for the first time... If Not Page.IsPostBack Then MembersLoad() CopiesLoad() End If Also the autopostback property of the ddls is false...
  8. M

    Dropdown list

    Thanks mate, but still no luck, when i make a selection from the ddl and click the event handler button, it just reverts to the first item in the ddl and does not want to know about any of the other items. e.g. ddl shows 1, 2, 3; i select 2 and click a button, the ddl reverts to the first item...
  9. M

    Dropdown list

    Hello, I have a dropdownlist and from it i wish to extract the currently selected item and store it in a variable as an integer so i can use it in an sql query. for example, the ddl may have items; 1, 2, 3. if i select 2 from the dropdownlist i want to be able to store the value 2 in the...
  10. M

    SelectedItem property of dropdownlists...

    Yes, it works but what it also does is, it creates two copies of the same item in the dropdownlist, which i dont want. Do you know how to resolve this because at the moment this is the closest solution.
  11. M

    SelectedItem property of dropdownlists...

    Hello, Please can someone help! I have a textbox and a dropdownlist. The text in the textbox also features as an item in my dropdownlist. What i want to achieve is when i click a button, the dropdownlist loads with data but rather than dispay the first item in the dropdownlist at index 0...
  12. M

    &nbsp problem

    Hi, wondering if anyone can help, I have a textbox (productkey) that gets its information from a cell in a datagrid. Some cells are blank and do not have any data and others have data. When I click on the more buttoncolumn on may datagrid on a row that has something under productkey i am...
  13. M

    &nbsp problem

    Hi, wondering if anyone can help, I have a textbox (productkey) that gets its information from a cell in a datagrid. Some cells are blank and do not have any data and others have data. When I click on the more buttoncolumn on may datagrid on a row that has something under productkey i am...
  14. M

    Datagrid Button Events

    Hi, I am trying to achieve the following: I have a dataset which has quite alot of info so i am binding only certain information to the datagrid and have added a more button in the datagrid. When the user clicks the more button the user should now see a new form. This form should now show...
  15. M

    Validation controls

    Thanks for the ideas guys, I have resolved the problem. To do so, in my reset click procedure i put for instance: txtapplication.text = "" validapp.IsValid = true This causes the textbox to clear and also passes the validation without causing a conflict.
  16. M

    Updating records

    Hello, I have a simple webform that allows users to navigate through the items in a database. The item is displayed via a single textbox and the user clicks on next, previous, first and last buttons to navigate. I also have an update record button that should allow the user to navigate to a...
  17. M

    Validation controls

    The code for my reset button click event is as follows: txtApplication.Text = "" ' sets application textbox to blank ddlVendors.SelectedItem.Value = 0 ' sets ddlvendors to item; 'select one' ddlsoftwaretype.SelectedItem.Value = 0 ' sets ddlsoftwaretypr to item 'select one...
  18. M

    Validation controls

    Hello, I have a web-form that acts as a data-entry form to insert a new record into an access database. The form uses required field validators to make sure something is entered or selected into the controls (textboxs and dropdownlists). The problem is it is conflicting with my current reset...
  19. M

    Handling exceptions

    Hello, I have a simple data entry webform that is used to add records toa database. Some of the controls are linked to fields in the database that always require a value, others do not. I also have a submit button that when clicked add the record to the database with the entered and...
  20. M

    Insert statements and parameters

    Thanks alot mate, seems to have done the trick! Much Appreciated!
Top Bottom