Re: quick issue

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: troy (troy_at_ttech.com)
Date: 06/01/04


Date: Tue, 1 Jun 2004 02:01:54 -0700

sorry - didnt mean to offend anybody.

The issue is that I dont know how to update the fields changed in the
datagrid when a user clicks on the edit function. I tried using the
following logic but it gives me an castring error:

// Gets the value the TextBox control in the third column
   tb = (TextBox)(e.Item.Cells[1].Controls[0]);
   username = tb.Text;

"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
news:MPG.1b26542e5556bb8498aab3@msnews.microsoft.com...
> Bruno Jouhier [MVP] <bjouhier@club-internet.fr> wrote:
> > What's the problem?
> >
> > You cannot just post a piece of code and expect that people are going
to:
> > a) try to figure out what you are trying to do
> > b) try to figure out what is going wrong
> > c) fix your problem
>
> Agreed.
>
> > You need to give more context. Otherwise nobody's going to help you.
> > Also, don't post whole files like this, only post small pieces of code
that
> > are relevant to your problem.
>
> While I agree that posting huge chunks of code isn't nice (especially
> when OE has mangled it so there's an empty line between each line of
> code), I have a strong personal preference for whole files. Whole files
> can be cut and paste, and then compiled with no further effort.
> Snippets take more time. I just like the whole files to still be small
> :)
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



Relevant Pages

  • Re: quick issue
    ... Bruno. ... > sorry - didnt mean to offend anybody. ... > The issue is that I dont know how to update the fields changed in the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: quick issue
    ... > sorry - didnt mean to offend anybody. ... > The issue is that I dont know how to update the fields changed in the ... > following logic but it gives me an castring error: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Theory of beliefs, belief fields
    ... An accusation of fraud but the fraud didnt happen yet. ... You register in the Library of Congress if you need to sue, ... I still dont know if they heard my music or read my ... I just remembered the party I didnt attend. ...
    (sci.econ)
  • Re: Opus Dei loses some influence
    ... will, at some point in their life, offend". ... which show that they dont see it as wrong and dont see why the law should be ... What excellent reason was given? ... that *all* paedophiles will at some point offend. ...
    (uk.religion.christian)