Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Response.Write - content appears outside the module
Previous Previous
 
Next Next
New Post 6/12/2008 2:04 PM
User is offline Kau
26 posts
10th Ranked


Re: Response.Write - content appears outside the module 

Hello,

This time I am not using Respose.Write, I am using this code:

test = "<form ACTION='cgi-bin/formmail.pl' METHOD='POST'>" +"<INPUT TYPE='HIDDEN' NAME='Name' VALUE='name' SIZE='25' MAXLENGTH='50'>" +"<INPUT TYPE='HIDDEN' NAME='Email' VALUE='email' SIZE='25' MAXLENGTH='50'>" +"<INPUT TYPE='SUBMIT' NAME='name' VALUE='label'>'";

Label1.Text = test;

I mean that after I pressed the button the IE goes to Server but does not return, or better it looks like when you type an URL in the IE and press Go but the page does not come and the browser keeps trying to show it. I hope this time I made myselft clear.

Thanks,

Kau.

 
New Post 6/13/2008 2:02 PM
User is offline Joshua Beall
134 posts
9th Ranked


Re: Response.Write - content appears outside the module 

It sounds to me as if the script in cgi-bin/formmail.pl is not working correctly for some reason.  I don't think this would affect things, but I noticed you did not close your form tag.  Lastly, are you nesting your form inside another form?  Keep in mind that ASP.NET apps in general (and DNN is no exception) tend to wrap most of the page in a <form runat='server'> tag.

On a totally different topic, let me give you a suggestion on how to handle long strings in C#.  Try this:

test = @"

<form ACTION='cgi-bin/formmail.pl' METHOD='POST'>
    <INPUT TYPE='HIDDEN' NAME='Name' VALUE='name' SIZE='25' MAXLENGTH='50'>
    <INPUT TYPE='HIDDEN' NAME='Email' VALUE='email' SIZE='25' MAXLENGTH='50'>
    <INPUT TYPE='SUBMIT' NAME='name' VALUE='label'>
</form>
";

It's called a "Verbatim Literal" -- you can use linebreaks right inside the string.  One of the reasons I prefer C# over other .NET languages :-)

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Response.Write - content appears outside the module
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Venexus, Inc.
Need custom a custom DotNetNuke module? From module planning to deployment, including training and support, Venexus developers deliver end-to-end web solutions on time and on budget.
www.venexus.com
Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP