c# - Alert message in ASP.NET -


I'm new to ASP.NET programming. I need to display a message if radio button is not clicked

My code:

  if (rbTest.Checked == true ) I have already written javascript for the  onclick  event to handle a selection. {// My code} other {string message = "Please select the case to download"; Download Lnkbtn. Features. Add ("OnClick", "Alert ('" + Message +' '); Return False; ");}  

It keeps on displaying a alert message even if I have a radio Why is the button chosen?

You need to find out if the radio button is clicked or not Attach Attributes ("OnClick", "If (Document! GetElementById ('rbTest') checked)) Alert ('Message')"). ;


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -