Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have an asp.net application that is mainly a front end to a database. For some of the tables there is some text that accompanies it that I don't really want to store in the database but want to include on the web page.

 

The pages containing the text are simple html pages in the same folder as everything else so I was inluding them using:

 

Try
Dim l As New Literal
Dim textWriter As New System.IO.StringWriter
Server.Execute(strTable & "info.htm", textWriter)
l.Text = textWriter.ToString() & "<br><br>"
Me.phGrid.Controls.Add(l)
Catch ex As Exception
      strError=ex.ToString
End Try

 

This all looked fine. The problem though is that now my postbacks don't work and nothing is displayed. If I comment out the server.execute then the pages work fine but without the included files. If I enclose it in a if not me.ispostback then it still doesn't work...

 

Afetre searching the net it seemed to be a documented issue fixed by this service pack:

 

http://www.microsoft.com/downloads/details.aspx?familyid=A8F5654F-088E-40B2-BBDB-A83353618B38&displaylang=en

 

But installing di not solve the problem.

 

Therefore does have anyone have any ideas on how to a) solve it or b) use something else to the same effect.

 

Thanks.

 

:)

Please check the Knowledge Base before you post.

"Computers are useless. They can only give you answers." - Pablo Picasso

The Code Net

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...