hi u can do it any where in the method.
just u need to connection objects and sqlcommand to perform operation with regards srikanth manda On Wed, May 19, 2010 at 2:33 PM, Naveen Kumar <[email protected]>wrote: > No, your Code will not work. U have to put the > > public void *my_function_call*(string some_var) > { > database open > > //some DataBase stuff (here i want to use *Select > Query*) > > databe close > > } > > out side of Btsignup_Click event. > > > > > On Tue, May 18, 2010 at 9:27 PM, 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<http://msdn.microsoft.com/en-us/library/0yw3tz5k%28VS.80%29.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<http://msdn.microsoft.com/es-es/library/bb397965%28VS.90%29.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 >>> > >>> > } >>> > } >>> > >>> > >>> > >>> > } >>> >> >> >
