Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Studio .NET and ASP.NET development.
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00733795
Message ID:
00734127
Views:
18
Good morning Cathi;

Thank you for your reply.

Here is what I have determined.

From the header row of the form:

1. codebehind = name given to form.
2. inherits = project name plus the word WebForm followed by a number. The number indicates the order of form creation for that project and begins with the number 1.

I created a second project with new forms. The forms of the two projects behave differently. If I remove the header row I can still use absolute positioning and it works fine. So my guess that the header row determined the ability to use Web controls and Absolute Positioning was not correct. However, even with the header row removed I cannot fire code from the Page_Load.

With my first project the behavior of the above was not the same. I lost Absolute Positioning if the header row was removed but had the ability to fire code from the Page_Load.

Obviously something is basically wrong so I have to just keep at it until I get it to work.

The good thing is that I have a good deal of experience with ASP and OOP development and have a basic concept of what I should do. That little knowledge will get me into big trouble I am sure!

Just think I have barely gotten my feet wet and I am having so much fun! Well, really I am as I can do some really neat things with the data grid. I know I will have many questions in the future and look forward to learning this product well enough to help others.

Tom



>Hi Tom,
>
>From a quick glance at your header of your aspx page, it doesn't look right to me. If you create a new solution and look at the default page called "WebForm1", the header should look like the following:
>
>
>< % ERROR: @ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="VBWebApplication1.WebForm1" % >
>
>
>As you can see, the default for the Codebehind file name (WebForm1) is the same name used inside the Inherits namespace. That isn't the case with your header. Your solution should definitely be executing the Page_Load event. Have you tried taking all the defaults for creating a new solution in VS.NET and try adding one control and a simple line of code in the Page_Load and confirm that it is firing?
>
>>A little knowledge is indeed a dangerous thing. This question may be beyond the ability to receive an answer on a user forum but what the heck! It might be easier to find a good book or take a good course on Visual Studio .NET.
>>
>>Specifically, I am working with ASP.NET at this point. Here is what I am doing:
>>
>>1. Web Form.
>>2. Web Controls.
>>3. Attach to a table.
>>
>>Here are my results.
>>
>>When I create a web form VS.NET enters a line of code into the first row:
>>
>>
>>< % ERROR:  Page Language=”vb” AutoEventWireUp=”false” codebehind=”WebControls1.aspx.vb” Inherits=”WebApplication1.Webform2” % >
>>
>>
>>I can then drop Web Controls on the form and position them in Design Mode exactly where I want them! This is outstanding! If I need to reposition them that is no problem. My clients change his/her minds every few hours and my ASP forms have over a hundred objects on them. I can see where ASP.NET could save me a great deal of time.
>>
>>However, I cannot get any code to fire from the Page_Load. All methods can be called from Script and work fine. Code related to data does not fire.
>>
>>So, what I did was to remove that first line of code and Page_Load fires as does code related to data. I can populate a datagrid and it looks very promising!
>>
>>When I go to reposition an object on the form is collapses to the bottom left of the form. Absolute Position code is gone and it behaves like a typical HTML control without Absolute Positioning.
>>
>>So I have to include that line of code ASP.NET creates to have Absolute Positioning and give up handling data and code called from Page_Load.
>>
>>Any suggestions from anyone would be greatly appreciated.
>>
>>Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform