sir
i want to use Url link from the database
Is it possible in following link
<iframe src="http://docs.google.com/gview?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>
I want to apply google document viewer in following code.
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string
embed = "<object data=\"{0}{1}\" type=\"application/pdf\" width=\"690px\" height=\"500px\">";
embed += "If you are unable to view file, you can download from <a href = \"{0}{1}&download=1\">here</a>";
embed += " or download <a target = \"_blank\" href = \"http://get.adobe.com/reader/\">Adobe PDF Reader</a> to view the file.";
embed += "</object>";
System.Data.DataRowView DataRowView_1 = (System.Data.DataRowView)e.Row.DataItem;
(e.Row.FindControl("ltEmbed") as Literal).Text = string.Format(embed, ResolveUrl("~/File.ashx"), "?PN=" + PId_Num_String + "&SN=" + SrNo_String + "&AC=" + AcYear_String + "&CC=" + Comp_Code_String);
}
}
<asp:Literal ID="ltEmbed" runat="server" />