I'm very new to .NET and this is driving absolutely crazy. I want to pull a value from my database and then assign it to a variable that I can pass into javascript. Printing the value is easy, but does nothing for me!
<asp:Repeater ID="Repeater3" runat="server" DataSourceID="SqlDataSource11">
<ItemTemplate>
<asp:BoundField DataField="videofile" />
<%#DataBinder.Eval(Container.DataItem, "videofile")%>
<%=vidfile%>
</ItemTemplate>
videofile is the variable from the database, and vidfile is the variable I want to assign it to. I also tried this <%# vidfile = DataBinder.Eval(Container.DataItem, "videofile")%> and that gave me the output of 'False'.
help!