That's fine, thanks to everyone to see that silly stuff.
On Wed, May 19, 2010 at 2:36 PM, Theraot <[email protected]> wrote:

> Hello,
>
> For a while I though you left in panic... now I see you are bit more
> serious. Look, I'm still seeing a function inside of another, and you
> can do something like that with anon methods (or lambda expressions).
> Now, you can always have a private function do the stuff... Ok it's
> ASP.NET, so you can put the code you need to call in the folder
> App_Code or in... a Web Service... or in your code behind code file
> generated by the designer (if any).
>
> In my attempt to read your mind, I think that some_var has something
> to do with "some Database stuff", ok, now, if you are passing pure SQL
> (in a string) to the database, then what you will do is convert that
> some_var and append it to the string you'll pass. Note that for
> complex queries a string builder is a good thing.
>
> For example: string query = "SELECT * FROM SomeTable WHERE ID = " +
> some_var.toString();
>
> I think you get the idea. You can use string.Format too: string query
> = string.Format("SELECT * FROM SomeTable WHERE ID = {0}",
> some_var.toString());
>
> Did I hit anything of what you have in mind? I'm not helping futher
> with no more info.
>
> Now may be I overlooked at your "*" because it's pseudocode... just in
> case that can't be part of an indentifier (a name for a variable or a
> function). By the way you are "openning" database and closing
> databe :P
>
> Theraot
>
> On 18 mayo, 10:57, Awais <[email protected]> wrote:
> > lol, i'm getting funny replys . yes im newbie to asp.net. :(
> > i made a one change, now please tell me is this possible? will my
> function
> > my_function_call work correctly.
> >
> > protected void btsignup_Click(object sender, EventArgs e)
> >     {
> >
> >         if (Page.IsValid)
> >         {
> >                          database open
> >
> >                         //some DataBase stuff  (here i want to use
> *Insert
> > Query*)
> >
> >                        *my_function_call*( some_var);   //my change
> >
> >                              databe close    //my change
> >
> >             public void *my_function_call*(string  some_var)
> >             {
> >                       database open
> >
> >                         //some DataBase stuff  (here i want to use
> *Select
> > Query*)
> >
> >                         databe close
> >
> >             }
> >        }
> >
> >
> >
> > }
> > On Tue, May 18, 2010 at 11:49 AM, Theraot <[email protected]> wrote:
> > > May be you want to see something about anon methods:
> > >http://msdn.microsoft.com/en-us/library/0yw3tz5k(VS.80).aspx
> > > Lambda Expressions:
> http://msdn.microsoft.com/en-us/library/bb397687.aspx
> > > And LINQ:http://msdn.microsoft.com/es-es/library/bb397965(VS.90).aspx
> >
> > > Just because If I understand your pseudocode you have a function
> > > inside of another, and that's the part that requires more chemical
> > > synapse in newbies brains.
> >
> > > Now is it possible, yes, you just did it! You posted that here.
> > > Now if "achive" is "archive" then don't worry, google groups have this
> > > thread already archived in their server >.<.
> > > And last, alternative solutions... there are a couple from ask better
> > > to pay me passing through finding something else to do, and of course
> > > you can always suicide.
> >
> > > Is just my idead or awais is feeling too shame :P
> >
> > > Theraot.
> >
> > > On 16 mayo, 03:32, Awais <[email protected]> wrote:
> > > > Is it possible or how can i achive this? or tell me plz alternative
> > > > solution. Thanks in advance.
> >
> > > >  protected void btsignup_Click(object sender, EventArgs e)
> > > >     {
> >
> > > >         if (Page.IsValid)
> > > >         {
> > > >                          database open
> >
> > > >                         //some DataBase stuff  (here i want to use
> > > *Insert
> > > > Query*)
> >
> > > >                         databe close
> >
> > > >                        *my_function_call*( some_var);
> >
> > > >             public void *my_function_call*(string  some_var)
> > > >             {
> > > >                       database open
> >
> > > >                         //some DataBase stuff  (here i want to use
> > > *Select
> > > > Query*)
> >
> > > >                         databe close
> >
> > > >             }
> > > >        }
> >
> > > > }
>

Reply via email to