Just Yourshadow
New Member
I need to bind title to the datasource so the web page title will show depends on the data in datasource.When i'm using the Formview and the hiddenfield to get the data from datasource the code cannot compileHow to create a script that the pagetitle can be display based on the data in datasource?\[code\] <Script runat = "server"> Protected sub Page_load(Byval sender as Object, Byval e As System.eventargs) Title = Hiddenfield1.valueEnd sub</Script><asp:FormView ID="FormView2" runat="server" DataSourceID="SqlDataSource1"><ItemTemplate><asp:HiddenField ID="HiddenField1" runat="server" Value= 'http://stackoverflow.com/questions/12808931/<%#eval ("PageTitleConstruct") %>' /></ItemTemplate></asp:FormView> \[/code\]