CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 7/30/2006 9:09:26 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 9 Views: 40 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
10 Items, 1 Pages 1 |< << Go >> >|
Rattlerr
Asp.Net User
DetailsView Not Appearing during Debug7/30/2006 9:09:26 PM

-1/1

I'v now added a DetailsView to the Main.Master file...This is the information i have put into the Main.Master file...The Default.aspx Theme is Set to Enhanced,i checked it at the top of the page...The Master Page Inherits is the Default page...I currently dont have any coding on the Default page...I'm using the Master Page To control the Home Page Setup..

<%

@ Master Language="C#" AutoEventWireup="true" CodeFile="Main.master.cs" Inherits="_Default" %>

<!

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>HiddenDangers.com</title>

<!--[if lt IE 9]>

<link runat="server" rel="stylesheet" href="~/BrowserSpecificCSS/IEMenu.css" type="text/css" id="IEMenuCSS" />

<![endif]-->

</

head>

<

body>

<form id="MasterForm" runat="server">

<img id="header" src="App_Themes/Enhanced/Body_01.gif" width="1024px" alt="HiddenDangers.com" height="165px" />

<div id="Banner">

<asp:Menu ID="MainNav" runat="server" DataSourceID="SiteMapDS" SkinID="MainNav" Orientation="Horizontal" CssSelectorClass="PrettyMenu" MaximumDynamicDisplayLevels="3" StaticDisplayLevels="1" Width="186px" />

<asp:SiteMapDataSource runat="server" ID="SiteMapDS" ShowStartingNode="false" />

<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">

<img id="header1" src="App_Themes/Enhanced/Body_02.gif" width="1024" alt="" />

<

table id="Login1" style="width: 139px; height: 160px; border-right: black 1px solid; border-top: black 1px solid; border-left: black 1px solid; border-bottom: black 1px solid;" cellpadding="0" cellspacing="0">

<tr>

<td style="width: 32px">

<img alt="" src="" style="width: 57px; height: 69px;" /></td>

<td>

<asp:TextBox ID="TextBox1" runat="server" BackColor="Transparent" BorderColor="Black"

BorderStyle="Solid" BorderWidth="1px" ForeColor="Cyan" Height="69px">Hello</asp:TextBox></td>

<td>

</td>

</tr>

<tr>

<td style="width: 32px; height: 19px">

<img alt="" src="" style="width: 57px; height: 69px;" /></td>

<td style="height: 19px">

<asp:TextBox ID="TextBox2" runat="server" BackColor="Transparent" BorderColor="Black"

BorderStyle="Solid" BorderWidth="1px" ForeColor="Cyan" Height="69px">Hello</asp:TextBox></td>

<td style="height: 19px">

</td>

</tr>

<tr>

<td style="width: 32px;">

<img alt="" src="" width="57" style="height: 69px" /></td>

<td>

<asp:TextBox ID="TextBox3" runat="server" BackColor="Transparent" BorderColor="Black"

BorderStyle="Solid" BorderWidth="1px" ForeColor="Cyan" Height="69px">Hello</asp:TextBox></td>

<td>

</td>

</tr>

</table>

<div id="ScrollingNews" style="width: 100px; height: 100px">

<asp:Panel ID="Panel2" runat="server" BackColor="Transparent" BorderColor="Black"

BorderStyle="Solid" BorderWidth="1px" ForeColor="Cyan" Height="256px" ScrollBars="Auto"

Width="389px">

</asp:Panel>

</div>

&nbsp;

<div id="NewMem" style="width: 100px; height: 100px">

<asp:Panel ID="Newmembers" runat="server" BackColor="Transparent" BorderColor="Black"

BorderStyle="Solid" BorderWidth="1px" Height="93px" Width="835px" ForeColor="Cyan">

Scrolling Images of New members

</asp:Panel>

</div>

<div id="SiteStatz">

<div id="SiteStatz1" style="width: 100px; height: 100px">

<asp:DetailsView ID="DetailsView1" runat="server" DataSourceID="OnlineSiteStatz" AutoGenerateRows="false" HeaderText="Site Statz" AllowPaging="false" CssSelectorClass="PrettyDetailsView" SkinID="Sitestatz" EnablePagingCallbacks="True" >

<Fields>

<asp:BoundField HeaderText="UsersOnline" DataField="au_UsersOnline" />

<asp:BoundField HeaderText="UsersInChat" DataField="au_UsersInChat" />

<asp:BoundField HeaderText="SiteMembers" DataField="0" />

<asp:BoundField HeaderText="ActiveCams" DataField="0" />

<asp:CommandField ShowEditButton="True" />

</Fields>

</asp:DetailsView>

</div>

<asp:XmlDataSource ID="OnlineSiteStatz" runat="server" DataFile="~/App_Data/OnlineSiteStatz.xml" XPath='.//OnlineSiteStatz[@au_UsersOnline="0"]'></asp:XmlDataSource>

</div>

</asp:contentplaceholder>

</div>

</form>

<div id="#Header"></div>

</

body>

</

html>
Click "Mark as Answer" on the post that has helped you.

The Member that helped you gets Credit and you earn points. Mark the Thread as Resolved so members know you have been helped..
Russ Helfand
Asp.Net User
Re: DetailsView Not Appearing during Debug7/31/2006 2:17:37 AM

-1/1

Rattlerr, I'm a bit confused.  The kit comes with a page called Default.aspx that has a code behind file called Default.aspx.cs (or Default.aspx.vb).  This code behind file sets up a class called _Default that derives from DynamicAdaptersPage which derived from System.Web.UI.Page. You seem to be using _Default as the code behind class for a master page.  In the code you posted you have:

Inherits="_Default"

in the @Master directive.

However, I believe that master pages must ultimately derive from System.Web.UI.MasterPage not System.Web.UI.Page.  So I think there is a basic conflict in your code.


Russ Helfand
Groovybits.com
Rattlerr
Asp.Net User
Re: DetailsView Not Appearing during Debug7/31/2006 3:17:44 AM

0/0

Here is the Code Behind File info for that Main.Master.cs ::

using

System;

using

System.Data;

using

System.Configuration;

using

System.Collections;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

using

CSSFriendly;

public

partial class _Default : System.Web.UI.MasterPage

{

protected void Page_Load(object sender, EventArgs e)

{

}

}


Click "Mark as Answer" on the post that has helped you.

The Member that helped you gets Credit and you earn points. Mark the Thread as Resolved so members know you have been helped..
Rattlerr
Asp.Net User
Re: DetailsView Not Appearing during Debug7/31/2006 3:28:06 AM

0/0

Here is the Default.cs I changed the .Page to  .MasterPage and get a few errors now...lol

using

System;

using

System.Data;

using

System.Configuration;

using

System.Collections;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

using

System.Drawing.Design;

using

System.Drawing.Drawing2D;

using

System.Drawing.Text;

using

System.Drawing;

using

CSSFriendly;

public

partial class _Default : System.Web.UI.MasterPage

{

protected void Page_Load(object sender, EventArgs e )

{

}

}

When i change the  System.Web.UI.Page too .MasterPage i get the following Errors::

Error 4 'ASP.default_aspx.GetTypeHashCode()': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_c4m0eash.0.cs 

Error 5 'ASP.default_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_c4m0eash.0.cs 

Error 6 'ASP.default_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_c4m0eash.0.cs 


Click "Mark as Answer" on the post that has helped you.

The Member that helped you gets Credit and you earn points. Mark the Thread as Resolved so members know you have been helped..
Russ Helfand
Asp.Net User
Re: DetailsView Not Appearing during Debug7/31/2006 2:40:05 PM

1/1

OK.  I understand now that you have modified the kit to make _Default derive from MasterPage rather than Page.  That's good.  The errors you are seeing are coming from deep within the framework.  They have to do with the fact that earlier _Default was declared to be derived from a different class.  One way to get rid of those errors is to delete the temp files that the ASP.NET framework creates when it compiles the pages for a site.

You need to shut down Cassini if it is running (i.e., the web server normally used when you run from Visual Studio) and any sites from IIS that might be running on the box.  Then you need to go to

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

There, you'll see a bunch of folders that the framework has created.  They need to be deleted. If you are told that some are locked and can't be deleted then you haven't shut down your web servers sufficiently.

After you get those files deleted the errors you show directly above in this post should go away.


Russ Helfand
Groovybits.com
Rattlerr
Asp.Net User
Re: DetailsView Not Appearing during Debug7/31/2006 6:50:02 PM

1/1

I did what you said than did a Run without Debug I get the same errors as mentioned before along with this one..

Warning 2 The type '_Default' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_yz9bpjqd.0.cs' conflicts with the imported type '_Default' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_qnqweohg.dll'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_yz9bpjqd.0.cs'. c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website1\dbdda51f\647a7be1\App_Web_yz9bpjqd.0.cs 


Click "Mark as Answer" on the post that has helped you.

The Member that helped you gets Credit and you earn points. Mark the Thread as Resolved so members know you have been helped..
Rattlerr
Asp.Net User
Re: DetailsView Not Appearing during Debug7/31/2006 6:57:25 PM

1/1

Also noticed you guys have this on your Default,which I dont have that

using

CSSFriendly;

public

partial class _Default : DynamicAdaptersPage

{

}

This is what i have on my Default:

using

System;

using

System.Data;

using

System.Configuration;

using

System.Collections;

using

System.Web;

using

System.Web.Security;

using

System.Web.UI;

using

System.Web.UI.WebControls;

using

System.Web.UI.WebControls.WebParts;

using

System.Web.UI.HtmlControls;

using

System.Drawing.Design;

using

System.Drawing.Drawing2D;

using

System.Drawing.Text;

using

System.Drawing;

using

CSSFriendly;

public

partial class _Default : System.Web.UI.MasterPage

{

protected void Page_Load(object sender, EventArgs e )

{

}

}


Click "Mark as Answer" on the post that has helped you.

The Member that helped you gets Credit and you earn points. Mark the Thread as Resolved so members know you have been helped..
Rattlerr
Asp.Net User
Re: DetailsView Not Appearing during Debug7/31/2006 7:00:18 PM

0/0

Should it matter that i have the Default Set too Custom instead of Default to Master Content??
Click "Mark as Answer" on the post that has helped you.

The Member that helped you gets Credit and you earn points. Mark the Thread as Resolved so members know you have been helped..
Russ Helfand
Asp.Net User
Re: DetailsView Not Appearing during Debug8/1/2006 4:50:06 PM

0/0

I don't understand what you mean by the last question you posed (above).  Can you restate it differently?

Also, I'm very surprised that deleting all of the framework's temp files didn't remove the problem with conflicts you noted earlier.  Frankly, I don't know what to advise you at this point.


Russ Helfand
Groovybits.com
Rattlerr
Asp.Net User
Re: DetailsView Not Appearing during Debug8/2/2006 3:17:42 AM

0/0

By right Clicking the .Master file i added Content (Default.apsx) on the Default page you have a Content Place Holder,top right corner you can Select Either:

A: Default to Masters Content

or

B: Create Custom Content...


Click "Mark as Answer" on the post that has helped you.

The Member that helped you gets Credit and you earn points. Mark the Thread as Resolved so members know you have been helped..
10 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Learning ASP.NET 3.5 Authors: Jesse Liberty, Dan Hurwitz, Brian MacDonald, Pages: 576, Published: 2008
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006

Web:
DetailsView Not Appearing during Debug - ASP.NET Forums I'v now added a DetailsView to the Main.Master file...This is the information i have put into the Main.Master file...The Default.aspx Theme ...
FormView and GridView does not appear when i debug - ASP.NET Jun 1, 2008 ... FormView and GridView does not appear when i debug - ASP.NET Community and Forum - Our ASP.NET forum is the place for Q&A-style discussions ...
DetailsView does not appear despite visible = true, and how to ... I am trying to bind a hashtable to a detailsview in my ASP.NET web app. When I do this, the detailsview does not appear on the webpage when I do a debug. ...
FormView ItemUpdated: NewValues array not getting values on update GridView only reads data from the Activities table and does not appear to affect this problem. All of the controls read from the tables with ...
Warning CssSelectorClass - microsoft_downloads ... DetailsView Not Appearing during Debug - ASP.NET Forums ... Statz" AllowPaging=" false" CssSelectorClass="PrettyDetailsView" SkinID=" ...
.NET ASP.NET problem with checking null or empty value in detailsview Also, you appear not to be using any exception handling. ... Have you tried logging to debug output? For example Debug.Print(h.GetType. ...
problem with checking null or empty value in detailsview Also, you appear not to be using any exception handling. .... Use the built-in debugging features. Have you tried logging to debug output? ...
Release Notes LOG for any errors that may have occurred during the running of db2start. ..... You can search for specific text in the Details View of the Stored Procedure Builder ... You can specify whether or not error messages appear in the pop-up error console window ... 14.32.6.1 Setting up DB2 UDB to debug stored procedures ...
Using Custom Control in a FormView Gridview controls added programmatically does not appear later ... User Control access fails in debug mode, works in release mode ...
PIX Game Debugging Sample Not recommended to be used outside of the PIX environment. .... still doesn't appear to be any major mesh interference; Select "Details" view's Mesh tab ...




Search This Site:










setting controladapter programmatically

dynamic treeview in usercontrol: selectednodechanged event not firering

loginadapter cssfriendly

can we apply changes to all browsers?

adding controls to existing site

beta 3: menu not firing menuitemclick event

detailsview headers getting mashed up at top of control

saving css/browserspecific/mygridview.css file crashes vs 2005. also ports don't close.

setting id for menu adapter and output it in the li tags from exo_duz

menu adapter and sharepoint 2007 tr2

css adapters ok on sharepoint desinger?

treeview navigation beta3

checkboxlist and create a new css control adapter

spacing problem

adding checkbox to the treeview

treeview and selectednodechanged

adapters by default?

menu control - background images

loginstatusadapter requires membershipprovider

viewing the original methods

static template and <%# eval("text") %> dont work with css friendly menu?

login control dosen't hide when visisblewhenloggedin is set to false

asp menu shows over text in ie 7

gridview pager with css friendly adapter

patcheddatalistadapter for flowlayout (for cssadapters beta3)

.vsi broken?

where is persistantimage.ashx ?

error on treeview: would be it a bug?

menu z-index problem???

static display levels

  Privacy | Contact Us
All Times Are GMT