Quote:HI all, I am experimenting with the asp Repeateer Control. I have populated its item template like below. XML <asp:Repeater ID="Repeater1" DataSourceID="dsrcWebChat" runat="server"> <ItemTemplate> <span style="cursor:hand;text-decoration:underline;" onclick="OpenChatBox('<%#Container.DataItem("UserID")%>','<%#Container.DataItem("UserID")%>_<%#HttpContext.Current.User.Identity.Name%>_<%#DateTime.Now.Ticks.ToString()%>')"><%#Container.DataItem("Name")%></span><br /> </ItemTemplate> </asp:Repeater> Further I have a hidden field in the form outside of the Repeater control and i also want to add that hidden field's value inside the OpenChatBox function as parameter. Any one can give me idea of doing this?? Either on the .cs side or design side?? :)
<asp:Repeater ID="Repeater1" DataSourceID="dsrcWebChat" runat="server"> <ItemTemplate> <span style="cursor:hand;text-decoration:underline;" onclick="OpenChatBox('<%#Container.DataItem("UserID")%>','<%#Container.DataItem("UserID")%>_<%#HttpContext.Current.User.Identity.Name%>_<%#DateTime.Now.Ticks.ToString()%>')"><%#Container.DataItem("Name")%></span><br /> </ItemTemplate> </asp:Repeater>
OpenChatBox
<%=HiddenField1.Value%> <asp:HiddenField ID="HiddenField1" Value ="test" runat="server" /
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)