DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Simple ASP.NET form (http://www.daniweb.com/forums/thread160747.html)

squarkman Dec 5th, 2008 2:15 pm
Re: Simple ASP.NET form
 
Thanks. Now that you understand the issue, is it possible for me to take a working asp form and add fields or am I screwed because I will still need to get at the compiled code-behind pages.
You would think that one could take a form that works and add fields without access code-behind pages.
It must be possible, yes?
It's just a form.
Why can't HTML be added to the .aspx that correlates to the extra fields?

squarkman Dec 5th, 2008 2:28 pm
Re: Simple ASP.NET form
 
here's the original td with the copied td
can anyone see an error why this would not work to create a form element from an existing one?

                <tr>
            <td class="Listings" valign="top" width="62">
                Comments2
            </td>
            <td class="Listings" width="303">
                <asp:TextBox cssclass="inputTXT" TextMode="MultiLine" Rows="5" ID="txtComments2" runat="server"></asp:TextBox>
            </td>
            <td class="Listings" valign="top" width="50">
                <asp:RequiredFieldValidator ID="rfvMailBody2" runat="server" ControlToValidate="txtComments"
                    ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></td>
        </tr>
               
                               
                  <tr>
            <td class="Listings" valign="top" width="62">
                Comments
            </td>
            <td class="Listings" width="303">
                <asp:TextBox cssclass="inputTXT" TextMode="MultiLine" Rows="5" ID="txtComments" runat="server"></asp:TextBox>
            </td>
            <td class="Listings" valign="top" width="50">
                <asp:RequiredFieldValidator ID="rfvMailBody" runat="server" ControlToValidate="txtComments"
                    ErrorMessage="Required" Display="Dynamic"></asp:RequiredFieldValidator></td>
        </tr>

squarkman Dec 5th, 2008 2:55 pm
Re: Simple ASP.NET form
 
I think there is some critical form element crap in the compiled dll file called App_Web_i5ksdbwd and inherited into the form. Since it's a dll file, is there no software that will open it so I can edit it?



<%@ page language="VB" masterpagefile="~/pages/airedale911.master" autoeventwireup="false" inherits="feedback, App_Web_i5ksdbwd" title="airedale911.org: Feedback" %>

4advanced Dec 6th, 2008 5:08 am
Re: Simple ASP.NET form
 
Squarkman,
Please notice that you can't have nested forms in a page. Each form is a single instance. The main-form-tag is in the masterpage probably opening at the beginning-tag of the contentplaceholder and closing after the contentplaceholder. This means that ALL your code in the page is within the form-tag.

for example like this:
<Masterpage>
  <Form>
      <ContentPlacehoder \>
  <\Form>
<\Masterpage>

The only option would be to add another form in the masterpage but I think that is not what you want.....

Regards,

[edit]
Ofcourse there is some reverse-engineering software available but that still requires you to reverse the complete webapplication and choose to upload the uncompiled version ór the compiled application.
Compiled applications have a slightly better performance than uncompiled applications because the FrameWork has to compile the code-behind at each 1st-request.


All times are GMT -4. The time now is 5:41 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC