![]() |
|
|
|||||||
![]() |
ASP Net - Is there a way to keep a specific EditCommandColumn from firing? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi, I have code that hides the EditCommandColumn in some places where I
do not want the user to be able to edit that row. However, to do it, I change the visible property to false. What I would like to do is put some text in there that says "n/a" or something like that. I cannot do it at the moment because I changed the visible property of the button to be, of course false. Is there a way to put it in the cell itself or have it so that I can cause a certain button not to fire the edit event on that particular record? So you know. Everything works. I can reference the control just fine. I am only trying to find an alternative to myButton.Visible=false. I just don't want it to fire. Thank you for any help. needin4mation@gmail.com |
|
|
|
|
#2 |
|
Posts: n/a
|
Sorry, answered my own question. I just added this:
myButton.Attributes.Add("onclick","return false"); myChangeButton.Attributes.Add("onclick","return false"); myChangeButton.Text="n/a"; myButton.Text="n/a"; needin4mation@gmail.com |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript not firing becasue of Response.Redirect | CorpAmis | Software | 1 | 04-30-2009 07:46 AM |
| master page does not change due to preinit event not firing | franchise63 | General Help Related Topics | 0 | 02-13-2008 09:18 AM |
| help restoring specific file from Nero Backitup | bocabosco | General Help Related Topics | 0 | 01-02-2008 08:08 PM |
| How to store dataset to a table in the database. Please be specific. Urgent | fullblown | General Help Related Topics | 0 | 09-20-2006 03:55 PM |
| Are there specific Chipset questions on the exam? | vikenk@aol.com | A+ Certification | 2 | 05-03-2005 10:35 PM |