Search

You searched for the word(s): userid:876189

Matching Posts

  • Grid: Remember scroll position / move to a certain row

    Hallo, in my web application there is a page with a grid view - inside a asp:panel with a fixed height - on the left hand side and an editing form with fields referring to the current grid row on the right hand side. The user selects a row in the grid, does some editing in the form, saves his changes... and looses the position of the grid view as it scrolls back to the first row. Now I'm looking for a solution that remember the scroll position of the grid when the user decides to edit a row.
    Posted to Data Presentation Controls (Forum) by AnnaMaria on 8/18/2009
    Filed under: grid view remember scroll position
  • Re: Grid: Remember scroll position / move to a certain row

    Thanks for the hint, but this feature "maintains the scroll position in the browser window". My PAGE does not scroll anyway - I want to keep the position in a grid view that is located within a panel (div) with fixed height. Did I get anything wrong?
    Posted to Data Presentation Controls (Forum) by AnnaMaria on 8/18/2009
  • Re: Grid: Remember scroll position / move to a certain row

    Hallo Peter, that works fine! Actually a asp:panel is translated to a div, so everything fits perfectly. And I can reset the value in the hidden field to 0 in order to scroll to the top of the list. Thank you very much!! Anna
    Posted to Data Presentation Controls (Forum) by AnnaMaria on 8/18/2009
  • Gridview: datasource with user defined function

    I'm working on a web interface for an Access MDB. Due to problems with word wrapping in a grid view I would like to insert blanks every 10 characters into one of the fields, i.e. something like: SQL = "SELECT Cust_ID, InsertBlanks(Customer) FROM Customers" Dim da As New OleDbDataAdapter(SQL, con) Dim dt As New DataTable da.Fill(dt) grCustomers.DataSource = dt grCustomers.DataBind() I know that I cannot use a user defined VBA function, so the SQL statement has to be SQL = "SELECT
    Posted to Data Presentation Controls (Forum) by AnnaMaria on 7/16/2009
    Filed under: GridView
  • Re: Gridview: datasource with user defined function

    Hallo Anup, thank you for your answer. I've defined a Private Function InsertBlanks() and modified the SQL Statement, but I get an error message: "Undefined function 'InsertBlanks' in expression." What exactly do you mean by: [quote user="anup1252000"] Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) InsertBlanks End Sub [/quote] Do I have to declare the function somehow in Page_Load()?
    Posted to Data Presentation Controls (Forum) by AnnaMaria on 7/16/2009
  • Re: Gridview: datasource with user defined function

    Thank you very much - works fine!!
    Posted to Data Presentation Controls (Forum) by AnnaMaria on 7/16/2009
  • How to give error message in ValidateUser()?

    Hallo, I am using <asp:Login> for the authentication. There is a VB class Public Class Authentication Inherits MembershipProvider ... Public Overrides Function ValidateUser... The validation works fine. But now I would like to give an error message if e.g. the connection to the database could not be established. 1. What is the best way to show an error message on my login page? 2. I've tried Response.Write within functino ValidateUser(), but I get an error message: "Name Response is
    Posted to Security (Forum) by AnnaMaria on 6/29/2009
    Filed under: login, asp:login, error message
  • Re: How to give error message in ValidateUser()?

    Thanks for your help! The idea of throwing an exception sounds reasonable, but: 1. Where shall I catch the exception? The login.aspx.vb consists of sub page_load() and sub ctLogin_LoggedIn() only. 2. Where shall I throw the exception - in the CATCH part of ValidateUser()? If so, why can't I catch the "normal" exceptions of ValidateUser() directly on the login page instead of throwing a new one?
    Posted to Security (Forum) by AnnaMaria on 6/29/2009
  • Handling connections to MS Access database

    Hallo, I'm developing a web interface to a MS Access database with ASP.NET 3.5. There are about 10 users. I guess that each of them will have a look into the database 20 times per day and will add about 20 new records per day. Now I'm thinking about the best way to handle the connections to the database. Keeping a single connection during the whole session does not seem to be a good idea as a session might last a whole day. But is it ok to open a new connection for each SQL command? Is there
    Posted to Access Databases and AccessDataSource Control (Forum) by AnnaMaria on 6/26/2009
    Filed under: connection Access database
  • GridViewRow does not contain new values when Datasource is changed

    Hallo, I'm using a GridView that is filled with Data from an Access-MDB using DataAdapter, DataTable and DataBind(). Data are displayed properly. In order to sort the GridView, I do the following: Grid.DataSource = SortDataTable(CType(Grid.DataSource, DataTable)) Grid.DataBind() where SortDataTable() gives back a sorted DataView. Sorted data are displayed properly. But: if I use Grid.Rows(index) after sorting, I still get the values from the version before sorting! Did I forget any operation
    Posted to Data Presentation Controls (Forum) by AnnaMaria on 6/18/2009
    Filed under: GridView, gridviewrow, "Asp.net 3.5"
Page 1 of 2 (13 items) 1 2 Next >