Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 14th, 2005, 07:05 AM
Registered User
 
Join Date: Mar 2005
Location: Lucknow, Uttar Pradesh, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ravindrasingh77 Send a message via Yahoo to ravindrasingh77
Default Calling codebehind C# function from aspx page

urgent !!
  Can somebody help... plz tell me how to call a codebehind c# function from aspx page or javascript... urgent plz...

ravindrasingh77

Ravindra Pratap Singh
Programmer
Webspiders India Pvt. Ltd
Kolkata
 
Old March 15th, 2005, 02:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Sure, you just call it by name if a function within the same page class. Otherwise, if declared static, you can call it by classname.methodname(), or if not declared static, instantiate an instance of that class to call the method.

Could you give me an example so I can show you more specifically?

Brian
 
Old March 16th, 2005, 12:08 AM
Registered User
 
Join Date: Mar 2005
Location: Lucknow, Uttar Pradesh, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ravindrasingh77 Send a message via Yahoo to ravindrasingh77
Default

Actually what I am doing is I am adding a record to the datagrid... and while adding I want to set the edit itemindex to -1 on the add button click. this is not working because the page gts posted back and when it returns it is into the itemcommand handler function so if i write some client side functionality which in turn calls a function i code behind that sets the edititem index to -1 then the task will be done ... so plz tell me how this can be done...

Thanx

ravindrasingh77

Ravindra Pratap Singh
Programmer
Webspiders India Pvt. Ltd
Kolkata




Similar Threads
Thread Thread Starter Forum Replies Last Post
calling javascript as well as codebehind code k.manisha C# 1 November 27th, 2006 08:47 AM
calling javascript as well as codebehind code k.manisha ASP.NET 1.x and 2.0 Application Design 0 November 24th, 2006 04:28 AM
calling a codebehind function on onblur event vishnupriya.kamalakaram ASP.NET 1.0 and 1.1 Basics 2 July 7th, 2006 08:25 AM
Calling a function from .vb file to aspx file !! NitinJoshi General .NET 4 February 10th, 2005 06:23 AM
Call codebehind function from ASPX collie VB.NET 2002/2003 Basics 1 September 2nd, 2004 03:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.