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

    recuperare valore dal form

    Ciao, ho una pagina che fa il ridimensionamento delle immagini in C#.
    ho dovuto necessariamente mettere nell'html un radio button (ex pagina asp e quindi html normale)

    il mio problema è che adesso non so come intercettare qul valore e metterlo dentro la insert che faccio dopo il resize dell'immagine.
    come posso fare ?

    devo trasformare il normale radio button in un oggetto HTML lato server ?
    grazie
    -------------------------
    ..::`DrUmM\n0`::..
    www.jonathandomenici.com

  2. #2
    nessuno sa aiutarmi ?
    -------------------------
    ..::`DrUmM\n0`::..
    www.jonathandomenici.com

  3. #3
    Utente di HTML.it L'avatar di Franz78
    Registrato dal
    Sep 2004
    Messaggi
    730
    prova semplicemnete a mettere l'attributo runat="server" nel tag del radiobutton..
    e riprenderti il valore.

  4. #4
    allora ho fatto questo...

    Codice PHP:
     <td>
                                                                            <
    asp:RadioButton ID="RadioButton1" runat="server" GroupName="prova" Text="NO" />NO
                                                                            
    <asp:RadioButton ID="RadioButton2" runat="server" GroupName="prova" Text="SI" />SI
                                                                        
    </td
    ma ho questo errore...

    Control 'RadioButton1' of type 'RadioButton' must be placed inside a form tag with runat=server.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Web.HttpException: Control 'RadioButton1' of type 'RadioButton' must be placed inside a form tag with runat=server.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    strano no ?
    la pagina è run at server...

    come posso fare ?

    tnx
    -------------------------
    ..::`DrUmM\n0`::..
    www.jonathandomenici.com

  5. #5
    sei sicuro che il form che contiene i radiobutton sia runat=server?
    "...non è detto che sia tardi se non guardi che ora è..."

  6. #6
    eh no.... ora provo grazie
    -------------------------
    ..::`DrUmM\n0`::..
    www.jonathandomenici.com

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.