Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    Gridview, web form e quantità di record visualizzati

    Ciao a tutti.
    Porvi questa domanda è abbastanza complicato, ma cercherò di essere più chiara possibile.

    Ho una webform che contiene un gridview. Il gridview visualizza i record di una tabella access. Posso poi selezionare ogni record in modo che mi visualizzi una mascherina sotto il gridview per modificare i dati (non mi piaceva modificarli direttamente nella griglia).

    Funziona tutto egregiamente (paginazione, tutti i pulsanti, la selezione del record ecc) fino a quando nella tabella ci sono pochi record.

    Quando riempio la tabella con 10.000 record, la pagina mi si carica mostrando la gridview correttamente paginata, ma qualsiasi cosa (selezione del record, clicco su un pulsante che mi deve caricare un'altra pagina ecc...) succede che mi viene dato il seguente errore:

    codice:
    The page cannot be displayed 
    The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. 
    
    --------------------------------------------------------------------------------
    
    Please try the following:
    
    Click the  Refresh button, or try again later.
    
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    
    To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP). 
    See if your Internet connection settings are being detected. You can set Microsoft Windows to examine your network and automatically discover network connection settings (if your network administrator has enabled this setting). 
    Click the Tools menu, and then click Internet Options. 
    On the Connections tab, click LAN Settings. 
    Select Automatically detect settings, and then click OK. 
    Some sites require 128-bit connection security. Click the Help menu and then click About Internet Explorer to determine what strength security you have installed. 
    If you are trying to reach a secure site, make sure your Security settings can support it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0. 
    Click the  Back button to try another link. 
    
    
    
    Cannot find server or DNS Error
    Internet Explorer

    E non riesco a capire dove sia il problema... qualcuno mi può autare?
    Grazie
    Liz

  2. #2
    Mi rispondo sola...
    E' un problema di quantità di dati contenuti del viewstate, quindi basta inserire all'interno del webconfig questa dicitura:

    <httpRuntime maxRequestLength="15360" />

    In questo modo funziona!
    Ciao ciao
    Lidia

  3. #3
    Utente di HTML.it L'avatar di fede_00
    Registrato dal
    May 2004
    Messaggi
    279
    può essere un timeout? tieni conto che la paginazione, se non gestita anche a livello di query, è solo per una visualizzazione più comoda e cioè ad ogni cambio pagina ti prendi sempre i tuoi 10000 record

  4. #4
    Utente di HTML.it L'avatar di fede_00
    Registrato dal
    May 2004
    Messaggi
    279
    ma i dati che superano quella lunghezza che fine fanno?
    prova ad inserire 20000 record e lasciare il limite nel web.config

  5. #5
    Quella lunghezza arriva fino a 35000 record circa..
    Ciao ciao
    Lidia

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.