CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Adding a simple form tag to an .ASPX file

Print topic Send  topic

Author Message
Vincent

Posts: 31
Posted: 02/14/2007, 1:50 PM

Hi everyone,

It sounds probably stupid but I have a footer file where I need to put a textbox with a submit button for a newsletter registration hosted by another company, where basically the action of the form will be a link to the newsletter hosting company . If I try to add the code in the html portion the form tag disapear when the page is published. The form tries to submit the info to itself. Any advice?

Thank you,

Vincent
View profile  Send private message
Stan
Posted: 02/15/2007, 8:23 AM

CCS automatically removes all form tags and replaces them by one with runat="server" attribute. But there is one trick which should work. You should create the .inc file on the disk which will contain the html code of your form

  
</form>  
<form>  
Your content going here  

Note that first tag in the file will close the server form, and second will open yours. The closing form tag after the content is not required, because it is exists already. Now you should include your file into the page by using

<!-- #include file="form.inc" -->

before the closing body tag of the page.

Stan
E43509

Posts: 283
Posted: 02/15/2007, 9:30 AM

Basically I edit the .aspx file in the code view knowing that CCS will not properly regenerate if I add new fields to the form.
See my note below:

DEVELOPER NOTE : The aspx form has been modified and ccs will not regenerate. The modification is to add autocomplete = "off" to the form so that the user password/login won't be saved. Thus you need to go into the aspx form and delete all the code and let it regenerate.

<!-- Had to manually edit the aspx file to set autocomplete="off" in the form tag as CCS 2.2.2.40 does not pass this parameter
but this now causes the form to not regenerate any changes from the design screen. -->

<form runat= "server" autocomplete= "off">
View profile  Send private message
Vincent

Posts: 31
Posted: 02/15/2007, 11:17 AM

:-) Stan, your solution did the trick thanks to both of you for your answers.

Vincent
View profile  Send private message
Tuong Do
Posted: 02/21/2007, 2:56 PM

To set the autocomplete="off" you don't have to edit your aspx file

Solution
Your form name LoginForm
Your field name Username

If you want to disable autocomplete the of the Username field

In the before show event of your form, add this line

LoginFormUsername.Attributes("autocomplete") = "off"


"E43509" <E43509@forum.codecharge> wrote in message
news:845d498c3df43d@news.codecharge.com...
> Basically I edit the .aspx file in the code view knowing that CCS will not
> properly regenerate if I add new fields to the form.
> See my note below:
>
> DEVELOPER NOTE : The aspx form has been modified and ccs will not
> regenerate.
> The modification is to add autocomplete = "off" to the form so that the
> user
> password/login won't be saved. Thus you need to go into the aspx form
> and
> delete all the code and let it regenerate.
>
> <!-- Had to manually edit the aspx file to set autocomplete="off" in the
> form
> tag as CCS 2.2.2.40 does not pass this parameter
> but this now causes the form to not regenerate any changes from the
> design
> screen. -->
>
> <form runat= "server" autocomplete= "off">
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.