gpt4 book ai didi

mysql - 代码已运行但没有输出,我的错误是什么?

转载 作者:行者123 更新时间:2023-11-29 11:26:50 24 4
gpt4 key购买 nike

 Protected Sub View_click(ByVal sender As Object, ByVal e As EventArgs)
Dim id As Integer = Integer.Parse(TryCast(sender, LinkButton).CommandArgument)
Dim lsfilename As String
Dim lsfilepath As String
Dim savePath As String = "c:/Users/Administrator.VCIDEX3/Downloads"

Dim embed As String = "<object data=""{0}"" type=""application/pdf"" align=""center"" width=""500px"" height=""600px"">"
embed += "</object>"
objdbconn.OpenConn()
msSQL = "select Id,FileName,FilePath from tblfiles where Id='" & id & "'"
objODBCDataReader = objdbconn.GetDataReader(msSQL)
If objODBCDataReader.HasRows = True Then
objODBCDataReader.Read()
lsfilename = objODBCDataReader.Item("FileName").ToString
lsfilepath = objODBCDataReader.Item("FilePath").ToString
End If
msSQL = " select * from tblfiles where id='" & id & "' "
ltEmbed.Text = String.Format(embed, ResolveUrl("'" & savePath & "' /q.pdf"))
objdbconn.CloseConn()
End Sub




<asp:Literal ID="ltEmbed" runat="server" />

here I tried to view a PDF file using literal, the code is executed and I got c:/Users/Administrator.VCIDEX3/Downloads/q.pdf correctly but the file is not shown.

最佳答案

您的文本中有两个参数占位符,即 {0} 和 {1},但您只提供一个值,即 ResolveUrl 的结果。如果文本需要替换两个值,那么您需要提供两个值。

关于mysql - 代码已运行但没有输出,我的错误是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38068584/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com