<asp:DropDownList ID="mainsubject" runat="server" Width="200px"> <asp:ListItem>Select Topic</asp:ListItem> <asp:ListItem>Music</asp:ListItem> <asp:ListItem>Entertainment</asp:ListItem> <asp:ListItem>Sports</asp:ListItem> <asp:ListItem>Politics</asp:ListItem> <asp:ListItem>General</asp:ListItem> </asp:DropDownList>
string quryAddBlog = "select sno,title, image, body, date, time from Blog_tb where subject='" + mainsubject.SelectedItem.Text.Trim() + "' order by sno desc"; adp1 = new SqlDataAdapter(quryAddBlog, con); adp1.Fill(dt1); Repeater1.DataSource = dt1; Repeater1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)