Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Control gives empty output: Response.End misteryControl gives empty output: Response.End mistery
Previous
 
Next
New Post
10/9/2008 2:26 PM
 

Hello,

I'm getting crazy with this problem: I have a module control that works perfectly on my development machine, but that gives empty output on the staging server.

I defined a very simple control to serve some ajax calls for data: something like an "ajax responder" that is called with parameters to use no skin and no container, and that gives textual output. From javascript (jQuery) I use such control as my "ajax back-end ", and it works perfeclty.

But this control, installed on the staging server, does not work at all: I only get an empty page. Not an error or an empty page with the control panel (logged in as admin), like when you call a ctl parameter that's not defined: IE shows

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

The control key is correctly configured, module definition is correct, everyting appears to be the same as on my machine.... restarted both DNN and IIS, checked anything I can think of.

What could cause such a problem?

 

Edit: I found it to be a problem with Response.End, nothing to deal with control definition. On the staging server, if I call Response.End I always get en empty response!

Here's my code (tried both in Page_Load and Page_Init):

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
            Response.Clear()
            Response.ClearContent()
            Response.Buffer = False
            Response.ContentType = "text/plain"
            'some output generated here
            Response.Write("Hello World")
            response.flush()
            Response.End()
        End Sub

On my develoment machine this gives me the expected result ("Hello World"), even when I'm logged-in as admin (response.end avoids the control panel to be rendered). On my staging server, no matter the flush: response is empty. If I comment the Response.End I get the output, but off course followd by html of the control panel.

Is this related with some IIS or DNN settings? Can anybody help?

Bye,

al.

 
New Post
10/12/2008 10:03 AM
 

On your presentation page, lets say you create a page called mypage.aspx
you just need to place this code on the top of the code:

<%@ Page Language="VB" AutoEventWireup="true" CodeFile="mypage.aspx.vb" Inherits="mypage" %>

Please make sure the behind code inherits mypage or whatever your behind code inherits to.

Hope this help.
 

 
New Post
10/14/2008 5:01 AM
 

suwandy,

I actually solved by using a callback page, but still cannot understand exactly why I can't use a control.

Yes that's probably not good to modify entire page output from a control, but... using a control inside my module does really work on my development machine, while on the staging server the "response.end" causes an empty response to be sent to the client. No idea of why.

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Control gives empty output: Response.End misteryControl gives empty output: Response.End mistery


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out