Les pego el código esperando que me puedan ayudar a localizar el error ya que no se como solucionarlo. Muchas gracias.
Default.aspx.vb
Código:
Default.aspxImports System.IO
Public Class WebForm1
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
popupcabeceracondiciones.InnerHtml = ReadFile(Server.MapPath("./Textos/condiciones_cabecera_es.txt"))
popupcuerpocondiciones.InnerHtml = ReadFile(Server.MapPath("./Textos/condiciones_cuerpo_es.txt"))
End Sub
Public Shared Function ReadFile(ByVal stFilePath As String) As String
Dim mySR As StreamReader = Nothing
Dim stReturn As String = Nothing
Try
If File.Exists(stFilePath) Then
' Open file.
mySR = File.OpenText(stFilePath)
stReturn = mySR.ReadToEnd()
mySR.Close()
End If
Return stReturn
Catch ex As Exception
Return Nothing
End Try
End Function
End Class
Código HTML:
<%@ Page Language="vb" ValidateRequest="true" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="WebForm1" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head id="Head1" runat="server"> .... .... .... .... .... <AjaxControlToolkit:ModalPopupExtender id="ModalPopupExtenderCondiciones" runat="server" TargetControlID="mostrarcondiciones" DropShadow="true" BehaviorID="MyMPE2" PopupControlID="pnlPopUpFootCondiciones" cancelcontrolid="btnVolver2" BackgroundCssClass="FondoAplicacion" /> <asp:Panel id="pnlPopUpFootCondiciones" style="display: none" runat="server"> <div class="popup"> <div class="popupcabecera" id="popupcabeceracondiciones" runat="server"></div> <div class="popupcuerpocondiciones" id="popupcuerpocondiciones" runat="server"></div> <div class="textaligncen"> <input id="btnVolver2" type="button" value="Volver" /><br /> </div> </div> </asp:Panel> <div class="clear"></div>


