Microsoft
Software
Hardware
Network
Question : Another way of coding this
I have this code in
OnPreRender
event. I tried IF statement but it didnt work. Below works for ONE value but when I add the other 2 lines, of course, it only takes the value of 3rd line.
Not sure why IF statement didnt work. Maybe because it's onPreRender event. How can I write this WITHOUT using IF?
btnNA.Visible = mvApplication.ActiveViewIn
dex == 1; //this works but i need all 3 values
btnNA.Visible = mvApplication.ActiveViewIn
dex == 2;
btnNA.Visible = mvApplication.ActiveViewIn
dex == 3;
Answer : Another way of coding this
What do you want? Do you want to make it visible if it's one of those ActiveViewIndex'?
Because if so do this:
btnNA.Visible = (mvApplication.ActiveViewI
ndex >= 1 && mvApplication.ActiveViewIn
dex <= 3);
Random Solutions
asp.net mssql I have a need to update records where the record column needs modifing in orde to match the Id value
Java web service accesing error
Filling a TextBox on a Form with Data from a Field from an SQL Database Table in Visual Studio 2008
Convert Doc files to Docx in SharePoint
To change asni_padding setting of a column.
Sharepoint Webpart page load event issue
Exchange Error as posted
Intel Sata RAID controller on RHEL 4 problem
Roaming Profiles in Windows 7 Pro and SBS 2008
Backup on Hyper-V Cluster