473,399 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to call a method (code behind) from the asp.net front end by passing parameters

I am executing a select query in a C# component and populating a ASP Grid in Search.aspx.
Now one of the columns in the Grid in Search.aspx is Policy Number(hyper link)
Basicallly I want to call a ASP.net method by sending parameters from that link.
For example
Select a, b, policy_number from x

Policy_Number is the hyperlink.

Now I want to call a ASP.net method sending in a and b as input parameters.

Basically all i want to know is how to call a method (code behind or java script) from the asp.net front end by passing 2 parameters.

Can you please help me here. Thanks
Jul 3 '07 #1
2 2877
dip_developer
648 Expert 512MB
I am executing a select query in a C# component and populating a ASP Grid in Search.aspx.
Now one of the columns in the Grid in Search.aspx is Policy Number(hyper link)
Basicallly I want to call a ASP.net method by sending parameters from that link.
For example
Select a, b, policy_number from x

Policy_Number is the hyperlink.

Now I want to call a ASP.net method sending in a and b as input parameters.

Basically all i want to know is how to call a method (code behind or java script) from the asp.net front end by passing 2 parameters.

Can you please help me here. Thanks
whats the problem????
if you have a class which holds the method you are calling...then just create an instance of that class and call the method with parameter...

//Suppose policyNumClass is the class name and policyNumMethod is the method then

Expand|Select|Wrap|Line Numbers
  1.  policyNumClass myClass; 
  2. myClass.policyNumMethod (a,b);
  3.  
Jul 4 '07 #2
radcaesar
759 Expert 512MB
ASP .NET Front end ?

ASP .NET is the front end here. What you exacly want to do ?
Jul 4 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
24
by: ALI-R | last post by:
Hi All, First of all I think this is gonna be one of those threads :-) since I have bunch of questions which make this very controversial:-0) Ok,Let's see: I was reading an article that When...
5
by: TS | last post by:
From my presentation layer, I call a validation method in my business layer that i pass a custom class to that holds all parameters. I am currently also passing an error message by reference so...
2
by: Marek | last post by:
Hi I'm trying to call a native C++ dll using the following code (both C# and C++ code segments included). When I make the call to the method (AddTwoDoubles) that has no return value all is fine. ...
1
by: Eric | last post by:
When I run my script it gives error on the following line: strEmail = Right(strEmail, (Len(strEmail) - 1)) I enclose my code and the sample text file too Thanks,...
10
by: ravi | last post by:
Hi, i am a c++ programmer, now i want to learn programming in c also. so can anybody explain me the difference b/w call by reference and call by pointer (with example if possible).
4
by: Dom | last post by:
In the days of VB, it was possible to do the following: "Call Button1_Click()", although there was some argument about whether this was asking for trouble. Is it possible to do it in CSharp? ...
1
by: mikegolden | last post by:
An application I'm working on makes extensive use of output parameters and return values, thus forcing me to use the ADODB Command object to execute the stored procs. For recordset returning stored...
9
dmjpro
by: dmjpro | last post by:
************************** Sorry the title would be Overriding. Please experts, correct the title ;) ************************** Method signature includes ... 1.Modifiers 2.Return type...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.