I have a textbox with a RegularExpressionValidator and a ValidatorCallOutExtender and ontextchanged event i call RegularExpressionValidator.validate() but ValidatorCallOutExtender doesn't fire and no erro message appear.
My friend, you will need to read about User Controls and Page Life cycle as well in order to create your dynamic controls at runtime, not hard if you got the idea right, and I believe CP has some articles on creating dynamic controls at runtime in asp.net, for saving the data I don't see this as an issue ... it will be as just any other static user control.
Sincerely Samer Abu Rabie
Note: Please remember to rate this post to help others whom reading it.
You are creating dynamic controls without having proper knowledge on ASP.NET page life cycle and viewstate. ASP.NET will not maintain viewstate for your dynamic control as it is created in button click event.
I have one idea, When user login into the sides , store the UserID in a database and this are the user who are presently online. When users logoff from the sites remove the user id .
This is one of the simple approach that you can developed.
Yeah m getting ur point but my confusion is about the page refresh how would I find the data after each refresh of a page.bacause current online and offline users can be changed in every second.So I will have to fetch data of every second.
Hmm, Don’t go for hitting database on every page refresh. That will hit badly on your performance. You caching. Add Dependency with caching data and database that when ever data will changed on a database your cache will be update. You just access cache data.
Use a DB in which save every user login/logout detail with coresponding userids.It can done by Session_start and Session_end mathod in asax file.For the count ,take a application variable,update it every time on user's when login/logout.or simply get the same from DB.
As I am seeing you are a new members of CP , First of all Welcome to CP .
Before Post in any of the CP Forum, First Please Read the Posting guide line .
Did you every try to find out in Google. Have a look what can be the modules of CRM[^]