i want to declare a webcontrol in my webservice then pass it through a function that will render it to a string then return the value. How do i declare it? example dim myControl as new ASP.MyWebcontrol return RenderMy(mycontrol) Public Function RenderMy(ByVal ctrl As Control) As String Dim sb As New StringBuilder() Dim tw As New IO.StringWriter(sb) Dim hw As New HtmlTextWriter(tw) ctrl.RenderControl(hw) Return sb.ToString() End Function
C
Cannery
@Cannery
Posts
-
How can i declare a webcontrol in a webservice? -
AjaX TIMER will not start in ascxHere is my code. Front end
codebehind
Protected Sub Timer1\_Tick1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick MyEven! End Sub
it never triggers the tick? i dont know what it cant be.
-
AJAX Accordion controlHow can i disable panes so they do not expand on click until i change it via code behind? Thank you for your help.
-
GridView, Multiple Images in one cellCan you please give me a sample of that you wrote? What do you mean make images column as a template? i don't think i know how to make it a template column.
-
GridView, Multiple Images in one cellHi, lets say i have a datatable with a column called images. and in the images column i have images/image1.png,images/image2.png,images/image3.png Now how can i make the column it is bound to display all 3 images? Thank you ahead of time.