Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
there are three or four activity on my pageload event. but at time i want only one activity how can i do?

plz help me
thanx in advance
Posted

you only need some filtering, what ever , base on session, querystring, route, user events , ...
you Have To Say why and with which parameter do you want to limit the process!

you can use if/else if statement or a loop like foreach, then use if clause in there,
its all base on your application logic.
 
Share this answer
 
Hi,

If you are having specific conditions for each of these events, then you can put all these activities in side there own if conditions.

Like,
if(conditon1)
1st activity
else if(conditon2)
2nd activity
....


Happy Coding :)
 
Share this answer
 
Nice CodeProject article is available at Multi Process Architecture with C#[^] for multiple .NET process execution at the same time. You can execute this methodlolgy withing Page_Load() method.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900