Last active
December 8, 2018 16:32
-
-
Save yohey03518/e7e9ea1a33727f7e3bee1808a8eb08ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<asp:SqlDataSource | |
id="SqlDataSource1" | |
runat="server" | |
DataSourceMode="DataReader" | |
ConnectionString="Data Source=DESKTOP-SMGAGD2\SQLEXPRESS;Initial Catalog=XssTest;Integrated Security=True;Connection Timeout=20" | |
SelectCommand="SELECT Text FROM Table_1"> | |
</asp:SqlDataSource> | |
<asp:GridView | |
id="GridView1" | |
runat="server" | |
DataSourceID="SqlDataSource1"> | |
<Columns> | |
<asp:TemplateField HeaderText="Text"> | |
<ItemTemplate> | |
<asp:TextBox ID="Text" runat="server" Text='<%# Bind("Text") %>'></asp:TextBox> | |
</ItemTemplate> | |
</asp:TemplateField> | |
</Columns> | |
</asp:GridView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment