Click to See Complete Forum and Search --> : value from user control to div tag


forkirun
November 2nd, 2004, 05:00 AM
I have an ASP page myform.aspx where there is a user control in which there is a page name myform.ascx. And also beside user control i also have a div tag . I want to pass a value of the myform.ascx to the div tag.

Actually its a search page . Searching is done on ascx page and i want to show the result count on the div tag.. how can i do this please help

mmetzger
November 2nd, 2004, 10:23 AM
A likely thing to do in this case is create an asp:Label server control. Set the text of this control equal to the result set of your search.

The problem comes into play when you need to mix interactivity between server controls and standard html. You may end up with the same rendered html, but the difference is how much information can the server process access.

forkirun
November 3rd, 2004, 01:08 AM
not its giving me compilation error

as the label is in aspx file and server control source is in ascx file, its not recognizing that variable which belongs to server control :(