question

CristianGomez-1571 avatar image
0 Votes"
CristianGomez-1571 asked CristianGomez-1571 answered

Wrong Selection GridView ASP.NET

Hello Friends, I am trying to select a cell from a gridview and send it to another page but the truth is that it selects anything for me. Tried several alternatives and nothing. I hope you can give me a hand.

178723-1.png
178650-2.png


 Dim index As Integer = GridView1.SelectedRow.RowIndex
         Dim TctValue As String = GridView1.SelectedRow.Cells(1).Text.ToString()
         Dim contacto As String = GridView1.SelectedRow.Cells(0).Text
         Session.Add("recid2", TctValue)
         Session.Add("contacto", contacto)
         Response.Redirect("~/datos_contacto.aspx?colect=" & TctValue)


dotnet-aspnet-webforms
1.png (4.2 KiB)
2.png (8.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YijingSun-MSFT avatar image
0 Votes"
YijingSun-MSFT answered

Hi @CristianGomez-1571 ,
Currently in Microsoft Q&A we only support English, could you please edit your question into English?Then we can help to solve your issues, thanks for your understanding.
According to your result, you may have garbled.What's your TctValue's value?

Best regards,
Yijing Sun


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CristianGomez-1571 avatar image
0 Votes"
CristianGomez-1571 answered AgaveJoe converted comment to answer

Hello @YijingSun-MSFT ,

I already modified the question.
The value that I must obtain is the one of the column (1) "8(#%.mz)!!$¶", but it gets me "8(#%.mz)!!$¶"

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AgaveJoe avatar image
0 Votes"
AgaveJoe answered

¶ us the URL encoded value of ¶. URL decode the value to get the paragraph character.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CristianGomez-1571 avatar image
0 Votes"
CristianGomez-1571 answered

Hello @AgaveJoe,
how can i decode?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.