[Mono-bugs] [Bug 417872] gridview selectcommand has error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Aug 17 17:24:08 EDT 2008


User miblogic at yahoo.com added comment

--- Comment #2 from M Buen <miblogic at yahoo.com>  2008-08-17 15:24:06 MDT ---
exact cause is, LinkButton(inside of TemplateField)'s CommandArgument doesn't
allow string, and.. CommandArgument was mistakenly used by Mono/ASP.NET for
highlighting the row of GridView.  when i assign it the value of 3, it
highlights the fourth row.  hope this helps.  i really needed to pass column
value (primary keys) to CommandArgument, i want to make my ASP.NET program as
event-based as possible

example (selRecord is LinkButton inside of TemplateField):

   protected void selRecord_Command(object sender, CommandEventArgs e)

      string[] s = ((string)e.CommandArgument).Split(':');

      string tlistRecId = s[0]; // primary key of record
      bool hasApprovedTr = Convert.ToBoolean(s[1]);

      Session["selected_tlist_rec_id"] = tlistRecId;

      ShowOptions(true, hasApprovedTr, false);


Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list