Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom dia
Tenho uma tela onde são cadastrados questões onde formarão um questionário, gravando no banco de dados.
Minha dúvida é como fazer aparecer esse questionário de forma dinâmica para o entrevistado, sem que eu precise criar uma página para cada questão?
Mais uma vez conto com vcs
>
Passe o ID da sua questão como referência para seu formulário, utilize este ID para fazer a busca no seu banco.
Abraços...
minha dúvida esta em que componente usar e como fazer para exibir essas questões para serem respondidas.
todas as questoes referentes aquele questionario deverão ser exibidas, mas em páginas diferentes, onde a pessoa vai clicando em proximo e vai exibindo outra pergunta pra ela responder.
Como já falamos em outros tópicos seu, o mais indicado é o repeater ou DataList.
Abraços...
>
Como já falamos em outros tópicos seu, o mais indicado é o repeater ou DataList.
Abraços...
ate consegui exibir usando o repeater, mas agora como faço pra conseguir identificar a resposta de cada pergunta para gravar no banco?
Sua pergunta é muito ampla, não consegui entender o que quer.
Abraços...
>
Sua pergunta é muito ampla, não consegui entender o que quer.
Abraços...
to tentando postar o codigo mas n to conseguindo da erro
quero pegar o valor do raddiobutton selecionado de cada questao, o id da questao e gravar no banco associado a quem preencheu, o codigo que eu fiz so esta exibindo dentro de um repeater.
a proposito parece que apareceu varias vezes, desculpe tava dando erro pode apagar
Exclui seu post com o código. Tem que retirar aquelas tags color.
O id da sua pergunta não vem por Request?
Abraços...
>
Exclui seu post com o código. Tem que retirar aquelas tags color.
O id da sua pergunta não vem por Request?
Abraços...
da pergunta nao, pq sao varias, vem o da prova.
to querendo postar sem as tags mas qdo colo o codigo do visual studio, ele enche de tag
Utilize alguma propriedade do textbox para informar o código da pergunta.
Por exemplo o textbox tem a propriedade tag, alimente esta propriedade com código das perguntas.
Abraços...
>
Utilize alguma propriedade do textbox para informar o código da pergunta.
Por exemplo o textbox tem a propriedade tag, alimente esta propriedade com código das perguntas.
Abraços...
<BR><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><table><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td style="text-align: center"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Button ID="Button5" runat="server" PostBackUrl="~/aluno.aspx" <o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN>Text="Home" /><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN>Selecione o tema:<SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><asp:DropDownList ID="DropDownList1" runat="server" <o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN>DataSourceID="AccessDataSource1" DataTextField="tema" DataValueField="id" <o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN>AutoPostBack="True"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></asp:DropDownList><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:AccessDataSource ID="AccessDataSource1" runat="server" <o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN>DataFile="~/projeto.mdb" SelectCommand="SELECT * FROM [tema_questao]"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN></asp:AccessDataSource><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Repeater ID="Repeater1" runat="server" DataSourceID="AccessDataSource2"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><ItemTemplate><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><table><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td colspan="2"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td colspan="2"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Label ID="Label2" runat="server" Text='<SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><%</SPAN>#Eval("num_questao")<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%></SPAN>'></asp:Label> - <asp:Label ID="Label3"<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN>runat="server" Text='<SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><%</SPAN>#Eval("questao")<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%></SPAN>'></asp:Label><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td rowspan="4"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:RadioButtonList ID="RadioButtonList1" runat="server" TextAlign="Left" Height="100%"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><asp:ListItem>A</asp:ListItem><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"> </SPAN><asp:ListItem>B</asp:ListItem><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"> </SPAN><asp:ListItem>C</asp:ListItem><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"> </SPAN><asp:ListItem>D</asp:ListItem><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US></asp:RadioButtonList><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Label ID="Label4" runat="server" Text='<SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><%</SPAN>#Eval("alternativa1")<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%></SPAN>'></asp:Label><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Label ID="Label5" runat="server" Text='<SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><%</SPAN>#Eval("alternativa2")<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%></SPAN>'></asp:Label><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Label ID="Label6" runat="server" Text='<SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><%</SPAN>#Eval("alternativa3")<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%></SPAN>'></asp:Label><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:Label ID="Label7" runat="server" Text='<SPAN style="BACKGROUND: yellow; mso-highlight: yellow"><%</SPAN>#Eval("alternativa4")<SPAN style="BACKGROUND: yellow; mso-highlight: yellow">%></SPAN>'></asp:Label><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></table><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></ItemTemplate><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></asp:Repeater><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:AccessDataSource ID="AccessDataSource2" runat="server" <o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes">DataFile="~/projeto.mdb" <o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"> </SPAN>SelectCommand="SELECT [id_tema], [num_questao], [questao], [alternativa1], [alternativa2], [alternativa3], [alternativa4] FROM [questoes] WHERE ([id_tema] = ?) order by num_questao"><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SelectParameters><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN><asp:ControlParameter ControlID="DropDownList1" Name="id_tema" <o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN>PropertyName="SelectedValue" Type="String" /><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></SelectParameters><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></asp:AccessDataSource><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></td><o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-ansi-language: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes"> </SPAN></tr><o:p></o:p></SPAN></P><P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"> </SPAN></table></SPAN><o:p></o:p></P><BR>como faço pra postar o codigo? n to conseguindo entender ou me explicar? toda vez que posto fica assimCola no bloco de notas antes, acho que se copiar do vs pro bloco de notas ele não vai carregar as cores.
Abraços...
>
Cola no bloco de notas antes, acho que se copiar do vs pro bloco de notas ele não vai carregar as cores.
Abraços...
<table>
<tr>
<td>
<asp:Button ID="Button5" runat="server" PostBackUrl="~/aluno.aspx"
Text="Home" />
</td>
</tr>
<tr>
<td>
Selecione o tema:
<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="AccessDataSource1" DataTextField="tema" DataValueField="id"
AutoPostBack="True">
</asp:DropDownList>
<asp:AccessDataSource ID="AccessDataSource1" runat="server"
DataFile="~/projeto.mdb" SelectCommand="SELECT * FROM [tema_questao]">
</asp:AccessDataSource>
</td>
</tr>
<tr>
<td class="style3">
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="AccessDataSource2">
<ItemTemplate>
<table>
<tr>
<td colspan="2">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Label ID="Label2" runat="server" Text='<%#Eval("num_questao")%>'></asp:Label> - <asp:Label ID="Label3"
runat="server" Text='<%#Eval("questao")%>'></asp:Label>
</td>
</tr>
<tr>
<td rowspan="4">
<asp:RadioButtonList ID="RadioButtonList1" runat="server" TextAlign="Left" Height="100%">
<asp:ListItem>A</asp:ListItem>
<asp:ListItem>B</asp:ListItem>
<asp:ListItem>C</asp:ListItem>
<asp:ListItem>D</asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:Label ID="Label4" runat="server" Text='<%#Eval("alternativa1")%>'></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label5" runat="server" Text='<%#Eval("alternativa2")%>'></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label6" runat="server" Text='<%#Eval("alternativa3")%>'></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label7" runat="server" Text='<%#Eval("alternativa4")%>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
<asp:AccessDataSource ID="AccessDataSource2" runat="server"
DataFile="~/projeto.mdb"
SelectCommand="SELECT [id_tema], [num_questao], [questao], [alternativa1], [alternativa2], [alternativa3], [alternativa4] FROM [questoes] WHERE ([id_tema] = ?) order by num_questao">
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="id_tema"
PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:AccessDataSource>
</td>
</tr>
</table>
agora sim ve se pode me ajudar, preciso pegar o id do combo (id do questionario), o num_questao (número da questao), e o valor da alternativa selecionada (A, B, C, D) e gravar no banco.
mais uma vez obrigada
Acho que pode dar certo, por exemplo na sua label que esta dentro do Repeater você tem:
<asp:Label ID="Label2" runat="server" Text='<%#Eval("num_questao")%>'></asp:Label>
Mude o ID da sua label para o código da sua questão:
<asp:Label ID='<%#Eval("num_questao")%>' runat="server" Text='<%#Eval("num_questao")%>'></asp:Label>
Veja se desta forma você consegue saber qual é o número da questão.
Abraços...
>
Acho que pode dar certo, por exemplo na sua label que esta dentro do Repeater você tem:
<asp:Label ID="Label2" runat="server" Text='<%#Eval("num_questao")%>'></asp:Label>
Mude o ID da sua label para o código da sua questão:
<asp:Label ID='<%#Eval("num_questao")%>' runat="server" Text='<%#Eval("num_questao")%>'></asp:Label>
Veja se desta forma você consegue saber qual é o número da questão.
Abraços...
ao colocar essa linha:
<asp:Label ID='<%#Eval("num_questao")%>' runat="server" Text='<%#Eval("num_questao")%>'></asp:Label>ele mostra a seguinte mensagem:error creating control - databound
Duplicate component name 'Databound'. Component names must be unique and case-insensitive
E não exibe nada no label correspondente ao número da questão.
Gostaria de saber como pego o valor dos labels, e radiobuttons que estao no repeater para criar o insert?
Tem label com o mesmo número de questão?
A questão repete?
Basta você dar um for nos controls do seu formulário para ler qualquer controle, o problema é você não tem lógica pra conseguir entender como saber qual componente corresponde a qual campo, e é o que eu to tentando ajudar.
Abraços...
>
Tem label com o mesmo número de questão?
A questão repete?
Basta você dar um for nos controls do seu formulário para ler qualquer controle, o problema é você não tem lógica pra conseguir entender como saber qual componente corresponde a qual campo, e é o que eu to tentando ajudar.
Abraços...
não tem não, a questao n repete
tah dando erro:
Erro de Servidor no Aplicativo '/projeto'.
***Erro do Analisador* **
Descrição: Erro ao analisar um recurso necessário para atender esta solicitação. Examine os detalhes específicos do erro de análise e modifique o arquivo de origem apropriadamente.
Mensagem de Erro do Analisador: A propriedade ID de um controle só pode ser definida com o uso do atributo ID na marca e um valor simples. Exemplo: <asp:Button runat="server" id="Button1" />
Erro de Origem:
Linha 80: <tr>Linha 81: <td colspan="2">Linha 82: <asp:Label ID='<%#Eval("num_questao")%>' runat="server" Text='<%#Eval("num_questao")%>'></asp:Label> - Linha 83: <asp:Label ID="Label3" runat="server" Text='<%#Eval("questao")%>'></asp:Label>Linha 84: </td>
Arquivo de Origem: /projeto/questionario.aspx Linha: 82
Informações sobre a Versão: Microsoft .NET Framework Versão:2.0.50727.4927; Versão do ASP.NET:2.0.50727.4927
Esquece a idéia do ID então, faz o seguinte utilize a propriedade ToolTip da label, mas verifique se tem mais de uma label com o mesmo ToolTip se não, não será possível.
Abraços...
>
Esquece a idéia do ID então, faz o seguinte utilize a propriedade ToolTip da label, mas verifique se tem mais de uma label com o mesmo ToolTip se não, não será possível.
Abraços...
nao to conseguindo
tentei fazer assim:
Partial Class questionario
Inherits System.Web.UI.Page
Protected Sub Button6_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim rep As RepeaterItem
Dim nquestao As WebControls.Label
Dim resp As WebControls.RadioButtonList
For Each rep In Repeater1.Items
nquestao = rep.FindControl("lbl_numquestao")
resp = rep.FindControl("rbl_resposta")
Next
With Repeater1
Session("num_questao") = nquestao
Session("resposta") = resp.SelectedValue
End With
End Sub
End Class
>
Esquece a idéia do ID então, faz o seguinte utilize a propriedade ToolTip da label, mas verifique se tem mais de uma label com o mesmo ToolTip se não, não será possível.
Abraços...
depois de muito pesquisar na net, consegui encontrar.
bem mais simples do q eu pensava, segue a solução, pode mudar o tópico para resolvido.
Protected Sub Button6_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim conexao As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("projeto.mdb"))
Dim cmd As New OleDbCommand
Session("tema") = DropDownList1.SelectedValue
conexao.Open()
cmd.Connection = conexao
Dim item As RepeaterItem
For Each item In Repeater1.Items
Dim nquest As String = CType(item.FindControl("lbl_numquestao"), Label).Text
Dim resp As String = CType(item.FindControl("rbl_resposta"), RadioButtonList).SelectedValue
cmd.CommandText = "Insert into questionario_respondido(login,id_tema,questao,resposta)values('" & Session("login") & "', '" & Session("tema") & "', '" & nquest & "', '" & resp & "')"
cmd.ExecuteNonQuery()
Next item
Dim texto As String
texto = "Questionário respondido com sucesso!"
ScriptManager.RegisterClientScriptBlock(Me, Me.GetType, "Error", "alert('" & texto & "'); window.location.href = 'aluno.aspx';", True)
End Sub
espero que sirva de ajuda pra alguém
Legal, parabéns.
Abraços...
Passe o ID da sua questão como referência para seu formulário, utilize este ID para fazer a busca no seu banco.
Abraços...