CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 5/17/2007 4:25:48 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 26 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
bcsmith100
Asp.Net User
detailsview headers getting mashed up at top of control5/17/2007 4:25:48 PM

0/0

I have a detailsview control using which is using the default css page (from the examples).   However when I try to display the  grid I get

a mashup of which shows all of the headers in one line and a * where each of the headers should be....something like this:

 

  ***************     (this is the control header....it actually shows all of the headers overwritting each other..but I can't duplicate this here..)

 

       *           8         (this the value)

       *          Yellow

 

 

Here is the code:

 <%@ Page Language="C#"
         CodeFile="Equipment_Edit.aspx.cs"
         Inherits="PredominantUse.UI.Equipment.EquipmentEdit"
         MasterPageFile="~/MasterPage.master"
         AutoEventWireup="true"   %>


<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">


   <br />
   <div id="SampleDetailsView" >
      
      <asp:DetailsView  ID="DetailsView1" runat="server"    
                        DataSourceId            ="ObjectDataSource2"
                        DataKeyNames            ="EquipmentId"
                        AutoGenerateRows        ="False"
                        HeaderText              ="Equipment Details"
                        SkinID                  ="SampleDetailsView"
                        CssSelectorClass        ="PrettyDetailsView" >
          <Fields>
              <asp:BoundField    HeaderText="EquipmentId"      DataField="EquipmentId"         />
              <asp:BoundField    HeaderText="Description"      DataField="Description"         />
              <asp:BoundField    HeaderText="LongDescription"  DataField="LongDescription"     />
              <asp:BoundField    HeaderText="ItemNumber"       DataField="ItemNumber"          />
              <asp:BoundField    HeaderText="Model"            DataField="Model"               />
              <asp:BoundField    HeaderText="Volt"             DataField="Volt"                />
              <asp:BoundField    HeaderText="Amp"              DataField="Amp"                 />
              <asp:BoundField    HeaderText="Ph"               DataField="Ph"                  />
              <asp:BoundField    HeaderText="Hp"               DataField="Hp"                  />
              <asp:BoundField    HeaderText="Kilowatt"         DataField="Kilowatt"            />
              <asp:BoundField    HeaderText="ValidatedBy"      DataField="ValidatedBy"         />
              <asp:BoundField    HeaderText="ValidatedDate"    DataField="ValidatedDate"       />
              <asp:BoundField    HeaderText="EnteredDate"      DataField="EnteredDate"         />
              <asp:BoundField    HeaderText="EnteredBy"        DataField="EnteredBy"           />        
              <asp:CheckBoxField HeaderText="IsEnteredByUser"  DataField="IsEnteredByUser"     />
              <asp:CheckBoxField HeaderText="IsDeleted"        DataField="IsDeleted"           />
              <asp:CheckBoxField HeaderText="IsValidated"      DataField="IsValidated"         />  
              <asp:CommandField  ShowInsertButton="True" />
              <asp:CommandField  ShowEditButton="True" />
              <asp:CommandField  ShowDeleteButton="True" />  
          </Fields>
      </asp:DetailsView>
   
      <asp:Button  ID="btnCancel" runat="server" text="Cancel" OnClick="btnCancel_click" />
   </div>
    <br />
    <br />
       
       
    <asp:ObjectDataSource  
              OnUpdated="Equipment_Updated"
              OnInserted="Equipment_Inserted"
              OnDeleted="Equipment_Deleted"
              ID="ObjectDataSource2"
              runat="server"
              SelectMethod="GetEquipmentByID"
              DeleteMethod="DeleteEquipment"
              InsertMethod="InsertEquipment"
              UpdateMethod="UpdateEquipment"
              TypeName="PredominantUse.BLL.Equipment"
              DataObjectTypeName="PredominantUse.BLL.Equipment">
       <SelectParameters>
           <asp:QueryStringParameter Name="EquipmentId" querystringfield="EquipmentId" defaultvalue="1" />
       </SelectParameters>            
    </asp:ObjectDataSource>
     
 
</asp:Content>

 

This was working as a regular control before converting to CSSFriendly and the nature of the problem leads me to think that this is a bug in CSSFriendly.   I had another problem in CSSFriendly which I found and the solution to...but which was was a bug so I know that there are still problems with this code.  Any help here would be appreciated.   Thanks.

 

 


bcsmith100
Asp.Net User
Re: detailsview headers getting mashed up at top of control5/17/2007 9:55:37 PM

0/0

 I found the problem.   I had not included the line

 

<link runat="server" rel="stylesheet" href="~/CSS/Import.css" type="text/css" id="AdaptersInvariantImportCSS" /> 

 

in the *.master file.... 

 

(I knew I had to include a line for the menus, but did not know about this line...opps)  now everything is working.  The strange thing was that without this line the details did display under some conditions, but not all conditions...which was why it looked like a bug.   I really like this CSSFriendly code.  Thanks to the writers. 

 

bcsmith100
Asp.Net User
Re: detailsview headers getting mashed up at top of control5/30/2007 12:56:02 PM

0/0

 I forgot to post that I found the solution to this problem.   The problem was in masterpage.   I forget the exact problem, but I was missing a parameter value.  This was no problem for the non-CSSFriendly controls, but caused the mashed up with CSSFriendly.

 

 

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Planet Miro I only have two that come up. I don’t visit Youtube often. .... When you nail it , you’re getting the best picture quality possible — go higher, ...
Coding4Fun : Extending the Personal Web Site Starter Kit To set up a SqlDataSource control that will be used to pull the site content data .... Examples include a header template, footer template, item template, ...
Wrye Mash Each of these is in turn divided into a list and a details view. ...... Bring up the context menu for the masters list column header, select "Edit", ...
TheMSsForum.com >> Asp >> DAL and Gridview - The Microsoft ... Salesforce mash-ups with SilverLight Iâ??m trying to make a mash-up to work with .... DAL usage Hello, I have a detailsview that I had bound to a ...
Diablogue - CRM Salesforce Winter '07 gives us the ability to "Mash-up" Salesforce Campaigns with i-Dialogue campaigns in a single user interface. A new inline S-Control ...
Mixcraft 3 Quick Start In Mixcraft 2, effects were accessed on the track header by clicking the FX ..... This is a good choice if you are making a remix, a mash-up or a loop based ...
September 2008 - 4 Direct Download direct download rapidshare Top Wallpaper Collection Pack 5 here ...... from recording your first solo album, remixing a song mash-up, pod-casting, ...
X-Ception: 8/1/08 - 9/1/08 Again it has now hugely improved and is a lot better but at the time the Rocketwerx projects we're a complete and utter mash up of whats what and where is ...
.NET ASP Page 3 - Bytes Site Map Net 1.1 Calendar control: getting the displayed date range · Publishing production versions of .... ItemCreated event in DetailsView control is not fired. ...
Spokane .NET User Group > Home ( DNN 2.1.2 ) NET server control wrapper for the Google Maps API that allows you to simply drag and drop a Google map into to your web pages and wire it up to your own ...




Search This Site:










problem with deployed version of commerce starter kit

webservice schemalocation - can it be?

css disapearning

some questions, please help

installation error: dbo.gettabbyname doesn't exist.

future directions for mhtml module

how to add content from another database

changing the column width of the table in run time

dynamically setting a hyperlink

redirects in my sitemap file

refreshing a page from code-behind

asp.net user account appeared please help!

aspx and flash

download skinning contest best overall skin

need help with compare() function

list ntfs folder permissions

microsoft menucontrol

c# mapserver

rsa problem

loginview/loginstatus not updating after validateuser()

msn messenger

easiest way to create and print web page

using stringbuilder to view the image from database

edit files in a browser

forum

problem with treeview control

advice about authorization and windows authentication

windows authentication avoid login screen

logo / menu issue

direct variables into html code or labels?

 
All Times Are GMT