Visualizzazione dei risultati da 1 a 4 su 4

Discussione: impostare valore campo

  1. #1
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970

    impostare valore campo

    'Value' is not a member of 'String'.

    Line 22:
    Line 23: While myreader.Read()
    Line 24: id.Value = myreader("ID").ToString()
    Line 25: passv.Value = myreader("password").ToString()
    Line 26: End While

    come faccio ad assegnare un valore di un database ad un campo di testo?

    grazie !!

    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  2. #2
    Utente di HTML.it
    Registrato dal
    Sep 2002
    Messaggi
    4,127
    id = myreader("ID").ToString()

  3. #3
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    allora io ho un input ke ha come id="id" ed un altro con id="passv"

    adesso mi dice ke "passv" non è dikiarato

    ke devo fare???
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  4. #4
    Utente di HTML.it
    Registrato dal
    Aug 2001
    Messaggi
    1,482
    <Input..... Runat="Server">

    Evita di chiamare i controlli con nomi tipo "ID" potrebbero crearti dei problemi.

    Hey hey, my my Rock and roll can never die!

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.