Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am in a unique situation where the search button is in a control but the grid and the databinding of the grid is not part of the control.

But I want to show the popup on the seach button if the grid is empty and need to prompt the user to choose to get data from a different database.

I added the attribute to the button in the code behind of the web page but the popup does show on the same click. On clicking the button next time it shows up.

Pls. help.

Thanks
Posted
Updated 7-Jul-11 10:03am
v2
Comments
[no name] 7-Jul-11 14:57pm    
What controls? What platform?

Remember that we are not sitting next to you and know everything about your project. Take the time to explain and you may get better answers
#realJSOP 7-Jul-11 16:06pm    
My guess is ASP.Net since his title mentions "codebehind" (unless that means he's standing with his back to an air conditioner, in which case it would be warm in front of him, and code behind him).

1 solution

First of all, tag your questions properly. Where did you say it was ASP.NET ? We have to guess ? Second, your site does not care about controls on the client side, it's all one blob of HTML. So, there's no reason you can't use delegates or exposed properties to set up communication between elements so that everything knows how to render to interact in your page on the client side.
 
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