karan shah

karan shah

  • NA
  • 6
  • 5.3k

Database Of Gridview

Mar 23 2016 7:22 AM
I have My Website Which has database of gridview with image and News with ReadMore
But on ReadMore I Want Session When User Clicks on ReadMore it should go to registration Page and When user Login It should go to that id of That News.
i m uploading From RichTextData the Text of News and Readmore Hyperlink 
 
I m Attaching the screen shot and Code
 Code of aspx:
 
 
<asp:TemplateField HeaderText="RichTextData" SortExpression="RichTextData" ShowHeader="False">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("RichTextData") %>' ></asp:Label>
</ItemTemplate>
<ItemStyle Horizontal VerticalAlign="Middle" Wrap="False" Width="100px" />
</asp:TemplateField>
 
<asp:ImageField DataImageUrlField="FilePath" ShowHeader="False" ReadOnly="True">
<ItemStyle Height="90px" HorizontalAlign="Center" VerticalAlign="Middle" Width="180px" Wrap="False" />
</asp:ImageField>
<asp:BoundField DataField="date" DataFormatString="“{0:MMMM d, yyyy}”" HeaderText="date" SortExpression="date" ShowHeader="False" Visible="False" />
<asp:HyperLinkField DataNavigateUrlFields="FilePath" DataNavigateUrlFormatString="FullArticle.aspx?FilePath={0}" HeaderText="ReadMore" Text="ReadMore" ShowHeader="False" Visible="False" >
<ItemStyle HorizontalAlign="Right" VerticalAlign="Bottom" Wrap="False" />
</asp:HyperLinkField>
 
 
 
 
 
 
 

Answers (1)