Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Is there a way to keep a specific EditCommandColumn from firing?

 
Thread Tools Search this Thread
Old 08-12-2005, 03:14 PM   #1
Default Is there a way to keep a specific EditCommandColumn from firing?


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
  Reply With Quote
Old 08-12-2005, 03:18 PM   #2
needin4mation@gmail.com
 
Posts: n/a
Default Re: Is there a way to keep a specific EditCommandColumn from firing?
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46