[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

In VS2008 WebDesigner dragging a label to the WebForm seems to drop out the Style option

Asked by DennisKean in Programming for ASP.NET, Microsoft Visual Studio Express

Tags: Microsoft, Visual Suite, 2008, Working in Designer GUI mode

I do not know why, but dragging a Label to the form (.aspx) from the Toolbox seems to exclude the "Style" option in the code.  In 2005 it was easy to automate and make it absolute via Layout-Position-Auto_Position_Options,  but I do not know how to achieve the same thing in the 2008 VS WebFoms.  Here I have to do it manually.  That is crippling for a guy like me who prefers the GUI designer for building the form.

Here is some code to make this clearer.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WEP2.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>MS KRAPP</title>
    <style type="text/css">
        #form1
        {
            height: 288px;
            width: 405px;
            top: 7px;
            left: 5px;
            position: absolute;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" name="This is the name LALA"
    title="My first WEB Page">
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click"
        style="z-index: 1; left: 53px; top: 214px; position: absolute; height: 34px; width: 176px"
        Text="Button" />
    <asp:Button ID="Button2" runat="server" onclick="Button2_Click"
        style="z-index: 1; left: 253px; top: 63px; position: absolute" Text="Button" />
    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
    <br />
    <br />
    <br />
    <p style="top: 111px; left: 113px; height: 34px; width: 179px; position: absolute">
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </p>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />

//  THIS IS HOW IT COMES UP
    <asp:Label ID="Label3" runat="server"
        Text="Label"></asp:Label>
    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
 
/*  BUT IT SHOULD COME UP AS FOLLOWS
   <asp:Label ID="Label3" runat="server"
        style="z-index: 1; left: 147px; top: 94px; position: absolute" Text="Label"></asp:Label>
    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
*/
    </form>
</body>
</html>

Notice the   ' style="z-index: 1; left: 147px; top: 94px; position: absolute" '     is excluded from the code and I know that it can be automated, since it was automatic in 2005.  Somebody please help...  

DK

[+][-]01/30/08 07:52 AM, ID: 20777942Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Programming for ASP.NET, Microsoft Visual Studio Express
Tags: Microsoft, Visual Suite, 2008, Working in Designer GUI mode
Sign Up Now!
Solution Provided By: boro_bob
Participating Experts: 1
Solution Grade: A
 
[+][-]01/30/08 10:13 AM, ID: 20779370Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 / EE_QW_2_20070628