0

I have a link button control on my home page side bar nav. When a user clicks this button they are taken to another page called CRM. I have many panels with grids on the CRM page. Which are all set to be hidden or shown on the Page Load event.

However when a user clicks a specific link button from the home page and is taken to the CRM page, I need to hide all grids and show a new panel of text boxes.

In a similar task, I have a radio button on a page and if a user clicks a specific Link Button from another Page, I need the radio button to be clicked or pressed already when the user arrives on the page.

I hope this makes sense.

How do I determine if the user is coming to my CRM page because he clicked one specific button in my sidebar navigation and show/hide panels based on that? Same for radio button. How do I set radiobutton.clicked = true; If the user clicked a specific linkbutton from a previous page?

Thanks EB

4

1 に答える 1

0

You have to pass a value through the query string, session, cookie, or cache, to indicate they selected the feature that the radio button needs to be checked. Nothing exists by default to automatically trigger it. So you set:

Session("ClickRadioButton") = true

and in the code, on page init, for the first time, do:

if (Session("ClickRadioButton") = true) then
   radiobutton.Checked = true
end if
于 2012-06-28T19:56:41.410 に答える