Click here to Skip to main content
15,915,702 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: can anybody help!! Pin
TigerNinja_22-Aug-02 12:02
TigerNinja_22-Aug-02 12:02 
General".aspx" extensions do not execute Pin
Julien Martin17-Aug-02 6:46
Julien Martin17-Aug-02 6:46 
GeneralRe: ".aspx" extensions do not execute Pin
Nick Parker17-Aug-02 12:55
protectorNick Parker17-Aug-02 12:55 
GeneralRe: ".aspx" extensions do not execute Pin
Richard Deeming19-Aug-02 1:04
mveRichard Deeming19-Aug-02 1:04 
GeneralMore DataGrid issues Pin
afronaut16-Aug-02 21:05
afronaut16-Aug-02 21:05 
GeneralRe: More DataGrid issues Pin
Paul Riley18-Aug-02 10:20
Paul Riley18-Aug-02 10:20 
GeneralWhile Deploy my applan in remote server i am getting ADODB not found Pin
Jude Asis Prabhu16-Aug-02 19:51
Jude Asis Prabhu16-Aug-02 19:51 
GeneralServer.Execute Issues Capturing resulting HTML from aspx page execution. Pin
Tom G16-Aug-02 10:15
Tom G16-Aug-02 10:15 
I'm currently buidling an ASP.NET application that requires custom HTML emails be sent. I was going to use "Sever.Execute" to capture the result of an aspx template execution and use it as the body of an HTML email. This works, but it only works if it is called from the "Page_Load" Sub. As soon as I call it from an event sub it fails and returns a "Corrupt ViewState" Error. Is this normal? Does "Server.Execute" only work in Page_Load? Is there another/better way to do this? Help is appreciated.

Code:
**** This Works ****
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
SendItDude()
End Sub

**** This Doesn't Work ***
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
SendItDude()
End Sub

Public Sub SendItDude()
Dim EM As CarSystem.Emailer = New CarSystem.Emailer()
Dim writer As New StringWriter()
Dim x As Integer = 1
Dim List(x) As Integer
List(0) = 3332
List(1) = 3332
Server.Execute("../Assignpreview.aspx?car_id=7", writer)
Response.Write(EM.Email_it(8, List, 3332, "This is a test", writer.ToString()))
End Sub

GeneralRe: Server.Execute Issues Capturing resulting HTML from aspx page execution. Pin
Tom G1220-Aug-02 15:14
sussTom G1220-Aug-02 15:14 
GeneralCustom Validator Control Pin
afronaut15-Aug-02 13:46
afronaut15-Aug-02 13:46 
QuestionDataGrid Problem? Pin
Pradhip15-Aug-02 12:38
Pradhip15-Aug-02 12:38 
AnswerRe: DataGrid Problem? Pin
TigerNinja_22-Aug-02 12:33
TigerNinja_22-Aug-02 12:33 
QuestionASP/SQL Alphabetical list? Pin
TerrieL15-Aug-02 12:33
TerrieL15-Aug-02 12:33 
AnswerRe: ASP/SQL Alphabetical list? Pin
afronaut16-Aug-02 6:04
afronaut16-Aug-02 6:04 
QuestionWhy XQuery? Pin
Jamie Nordmeyer15-Aug-02 5:38
Jamie Nordmeyer15-Aug-02 5:38 
AnswerRe: Why XQuery? Pin
Paul Watson15-Aug-02 23:32
sitebuilderPaul Watson15-Aug-02 23:32 
GeneralRe: Why XQuery? Pin
Jamie Nordmeyer16-Aug-02 7:34
Jamie Nordmeyer16-Aug-02 7:34 
GeneralASP Wildcard Issue Pin
Robby15-Aug-02 5:37
Robby15-Aug-02 5:37 
GeneralRe: ASP Wildcard Issue Pin
Paul Watson15-Aug-02 23:49
sitebuilderPaul Watson15-Aug-02 23:49 
GeneralURLs of History Entries Pin
jerry0davis14-Aug-02 23:03
jerry0davis14-Aug-02 23:03 
GeneralRe: URLs of History Entries Pin
Jeremy Falcon19-Aug-02 5:31
professionalJeremy Falcon19-Aug-02 5:31 
GeneralRe: URLs of History Entries Pin
jerry0davis19-Aug-02 21:57
jerry0davis19-Aug-02 21:57 
GeneralGood ASP.NET MAtrix resource Pin
Davy Mitchell14-Aug-02 8:51
Davy Mitchell14-Aug-02 8:51 
GeneralISAPI file reading.. Pin
code dope13-Aug-02 22:59
code dope13-Aug-02 22:59 
GeneralRe: ISAPI file reading.. Pin
Roger Wright15-Aug-02 4:29
professionalRoger Wright15-Aug-02 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.