Hi. I have a radio button in a template column of a datagrid. All I need to know is how to get access to this to be able to set the radio button as checked or unchecked (depending on the results of a query).
I'm trying this:
Dim rbactionneeded As RadioButton = CType(e.Item.FindControl("rbactionneeded"), RadioButton)
If ansval = "Y" Then 'result from stored procedure
rbactionneeded.Checked = True
(very simplified). I'm getting an error "object reference not set to an instance of an object" right when it hits rbactionneeded.checked=true. I tried add the word "new" when declaring, but didn't work. I'm certain the rb in my grid is called rbactionnneeded because I use this to insert into the database.
This code is in the itemdatabound for the given datagrid.
Any suggestions? Am I doing this incorrectly? I am awarding 500 points because it's very urgent! Thanks!
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found. I hope it will be useful.
After closing a pop-up window, the parent page should be refreshed automaticall…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online)
The email signat…