javascript - Problems with using hyperlinks in asp.net
phpcn_u1582
phpcn_u1582 2017-05-19 10:32:36
0
1
590

1. I am currently working on a project with asp.net and use GridView for data binding. The binding method is the result of the gridview binding database query set in the background:

The problem I encountered is that I want to send the student ID to the target page when clicking the hyperlink. How should I do this?
The picture below is the property window corresponding to the field of admission ticket number:

How can I modify it to pass the current student ID to the RightMain.aspx page?

Also, my current page displays two columns. How can I delete the column on the right? I am a beginner in .net and I don’t quite understand it. Please give me some advice!

phpcn_u1582
phpcn_u1582

reply all (1)
漂亮男人

CommandArgument="field name"
Use e.CommandArgument in the Gridview command to get it
Or write it in the Template
Use request.Querstring["name of the value to be passed"] in the .cs of the directed url to get it

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!