Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > BOOK: Beginning Ajax with ASP.NET
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Ajax with ASP.NET
This is the forum to discuss the Wrox book Beginning Ajax with ASP.NET by Wallace B. McClure, Scott Cate, Paul Glavich, Craig Shoemaker; ISBN: 9780471785446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ajax with ASP.NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 15th, 2006, 07:26 PM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Does the CssClass property works with AJAX ?

I built an ASP.NET 2.0 web site in my computer which has about 30 web pages.

I needed to use AJAX ( latest version ) only in the last page.

So I created a web site with just one page to test the “ASP.NET Ajax-Enabled Web Site” code of this page separately before integrating it with the previous big web site which is based simply on ASP.NET.

Both web sites work fine separately but when I added the web page with the AJAX code and also the modified web.config, it messed up the CSS formats( coded in the AB.css file ) on all Web controls that use the CssClass property. As result of that the text appears only with its default attributes with big black character founts which destroy the aesthetics and organization of the pages.

Here is a simple code example where the this problem appears:

<asp:Label ID="usernameLb" CssClass="Test" runat="server" ></asp:Label>

And here is its CSS code ( inside a “.css” file ) :

.Test
{
  position:absolute;
  left:450px;
  top:110px;
  z-index:3;
  color: #0000ff;
  font-family: Verdana,Arial,Helvetica;
  font-size: 15px;
  font-weight: normal;
}


What could be the cause ?

( my OS is windows XP prof and I am using Visual Studio 2005 and IE 6 )
  #2 (permalink)  
Old December 15th, 2006, 08:59 PM
Registered User
 
Join Date: Nov 2006
Location: scottsdale, az, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to scottcate Send a message via MSN to scottcate Send a message via Yahoo to scottcate
Default

Can you be more specific on this line?

"it messed up the CSS formats( coded in the AB.css file )"

What does that mean? This might help figure it out.



-=- Scott Cate
  #3 (permalink)  
Old December 16th, 2006, 08:53 AM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It means that after adding the AJAX capability to the web site, the CssClass properties in all controls ceased to work.

For instance, in the above example, the “.Test” settings ( position:absolute; left:450px; top:110px; z-index:3; color: #0000ff; font-family: Verdana,Arial,Helvetica; font-size: 15px; ) stop working.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Ajax works internally,socket,port? vinod_yadav1919 Ajax 4 January 4th, 2008 06:37 AM
Recommend an AJAX IDE - JoyiStar AJAX WebShop. kingstar Ajax 4 December 15th, 2006 05:12 AM
new Ajax article: Creating an Ajax Search Widget jminatel Ajax 0 May 11th, 2006 02:50 PM
Push Button Column in DataGrid (CssClass) doonbug General .NET 0 July 20th, 2004 10:34 AM



All times are GMT -4. The time now is 08:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.