|
3/9/2010 11:59:11 AM
|
topic:
Using JavaScript and images for rollovers
Ken Cox Posts 165
|
The idea is to have a slightly different version of the image so that there's a visible indication that the mouse has passed over and back out.
It's fairly common to have an image button that glows (or otherwise changes appearance) on a mouse action. It's a simple little demo, similar to the one you see here:
http://www.designplace.org/static/rollover_button_example.html
It's not meant to be deep or anything so I'd say you're not missing anything. <grin>
Ken
|
|
3/8/2010 2:48:54 PM
|
topic:
Using JavaScript and images for rollovers
fxs Posts 3
|
Hi Ken,
The exercise you propose on rollovers using your picture has got me confused, namely the pictures are a different shade to begin with. If I use any other two pics of the same shade the trick does not work. So what is the point if I have to photoshop a copy of the picture I wan to to create a rollover effect for? What am I missing here?
Thanks,
Fed
|
|
3/5/2010 4:38:56 PM
|
topic:
nwind.mdb Chapter 9 Connecting to an Access DB
fxs Posts 3
|
Ha! You were spot on! I downloaded the db from you and it worked. I guess the one on the MS site must be corrupt.
Thanks!
|
|
3/5/2010 3:49:32 PM
|
topic:
nwind.mdb Chapter 9 Connecting to an Access DB
Ken Cox Posts 165
|
Hi!
Sorry you're having difficulty.
I'm not sure what the problem could be, but could you try downloading and installing the source code for the Chapter 9 to see if that database works on your machine?
Make sure your project has a web.config file in it, 'cause that's where the connection info is stored. If you send me the web.config, I might be able to see what's causing the failure.
Thanks,
Ken
|
|
3/5/2010 3:25:01 PM
|
topic:
nwind.mdb Chapter 9 Connecting to an Access DB
fxs Posts 3
|
Hi Ken,
Great book! Congrats! Now for the problem...
When I click next after configuring the data source in the AccessDataSource control I get the following error;
"Database schema could not be retrieved for this connection. Please make sure the connection settings are correct and that the database is online. Cannot open database"
Likewise if I double click the db in Solution Explorer I get "Cannot Open Database."
I am running XP SP3, Access 2007, and VS 2008 Team Edition.
Can you help?
PS
I also tried converting the db to access 2007 but that did not work either, same error.
Thanks
|
|
1/28/2010 5:17:29 PM
|
topic:
pg 81 Advanced SQL Generation Option greyed out
martinz Posts 2
|
Problem solved, shame on me .
I've skipped the not so unimportant point 6 on pg 81: "CHoose the Customers table"
So I've left the selection at the 1st table on top, and it seems that it was empty.
Now the Advanced box isn't greyed out anymore, and everything works smoothly.
Sorry for the disturbance.
|
|
1/28/2010 2:06:51 PM
|
topic:
pg 81 Advanced SQL Generation Option greyed out
martinz Posts 2
|
Dear Ken, at first thanks for your great book, it really eases my way into the last release of the .Net World.
My problem: -) I downloaded the Sample Databases from MS, no problem there. -) I attach the DB-File northwind.mdf -) I draw a SQL Data Source into the form -) But when I click on the advanced button, both options are greyed out.
Do I have to enable wrte access to the database somehow?
The test query works fine, but I can just select, not do any changes to the table.
TIA, Martin
|
|
1/22/2010 4:08:21 PM
|
topic:
Chapter 5: CheckBox and CheckBoxList Controls
Ken Cox Posts 165
|
Hi Christian,
I wasn't aware of the Portuguese version until a reader contacted me. It looks like the publisher did a bad job on transcribing the code snippets. You've found some of the typos and there are obviously more.
If you go to this page and enter 68 (as the page number) and click GO, you'll see the correct source code:
http://kencox.ca/sourcecode.aspx
You can also download the complete code for the chapter here:
http://www.kencox.ca/samplecode/195925_CH05_Code.zip
I'm sorry about the mistakes. If I had been given a chance, I'd have checked the manuscript.
Ken
|
|
1/15/2010 5:49:03 AM
|
topic:
Chapter 5: CheckBox and CheckBoxList Controls
thered Posts 1
|
Hello, Ken
Some errors ocurred in the script of this part in chapter 5. First, in the following script (in bold):
If Not IsPostBack Then Dim arrlGames As New ArrayList arrlGames.Add("Scrabble") arrlGames.Add("Crosswords") arrlGames.Add("Wonderwords") arrlGames.Add("Sudoku") arrlGames.Sort() CheckBoxList!.DataSource = arrlGames CheckBoxList!.DataBind() End If
I think the correct script is:
If Not IsPostBack Then Dim arrlGames As New ArrayList arrlGames.Add("Scrabble") arrlGames.Add("Crosswords") arrlGames.Add("Wonderwords") arrlGames.Add("Sudoku") arrlGames.Sort() CheckBoxList1.DataSource = arrlGames CheckBoxList1.DataBind() End If
Also, a script error was found in the script of the button.
Dim strSel As String = " " For Each chbx As ListItem In CheckBoxList1.Items If chbx.Selected Then strSel = srtSel & chbx.Text & "<br/>" End If Next Label1.Text = strSel
According to the program, the error is in the 4th line: strSel = srtSel & chbx.Text & "<br/>", concerning about the srtSel. The message in visual basic is that wam not declared.
Could you check, please what is going on?
My book version is the Portuguese Version. The scripts I mentioned are on page 68.
Thanks
Christian edited by thered on 1/15/2010
|
|
12/22/2009 1:21:20 PM
|
topic:
Page 119 - C# Code May Need an Imports Directive
Ken Cox Posts 165
|
Depending on the type of project you used to create the Web, Visual Studio may not include all the references that you require for the C# version of the code on Page 119. The symptom is the following error message:
CS1935: Could not find an implementation of the query pattern for source type 'System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement>'. 'Where' not found. Are you missing a reference to 'System.Core.dll' or a using directive for 'System.Linq'?
The fix is to add the following reference at the top of the page:
<%@ Import Namespace="System.Linq" %>
An alternate fix is to ensure that the web.config file references all of the namespaces by including this in the <system.web> section:
<pages> <namespaces> <clear/> <add namespace="System"/> <add namespace="System.Collections"/> <add namespace="System.Collections.Generic"/> <add namespace="System.Collections.Specialized"/> <add namespace="System.Configuration"/> <add namespace="System.Text"/> <add namespace="System.Text.RegularExpressions"/> <add namespace="System.Linq"/> <add namespace="System.Xml.Linq"/> <add namespace="System.Web"/> <add namespace="System.Web.Caching"/> <add namespace="System.Web.SessionState"/> <add namespace="System.Web.Security"/> <add namespace="System.Web.Profile"/> <add namespace="System.Web.UI"/> <add namespace="System.Web.UI.WebControls"/> <add namespace="System.Web.UI.WebControls.WebParts"/> <add namespace="System.Web.UI.HtmlControls"/> </namespaces> <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </controls> </pages>
Ken
|
|
12/3/2009 10:11:30 PM
|
topic:
Page 58 about insertion at <script> and </script>
paddyinuae Posts 2
|
Hi Ken,
Thanks for the amazingly prompt reply - you should do this as a business :-)!
All fixed - it works like a charm. I probably would never have figured out the syntax to that import statement.
Thanks very much for the help, and great book btw. It's made all the better for the eratta (minor though it is), download chapter code, and this forum. Well done, and thanks again.
Ian.
|
|
12/3/2009 12:05:24 PM
|
topic:
Page 58 about insertion at <script> and </script>
Ken Cox Posts 165
|
paddyinuae wrote:
I've tried all sorts of techniques and I've pasted that import directive just about everywhere, but still can't get the examples to work with code behind.
Hi Ian,
Could you post the code that's not working?
In the codebehind, you use the Imports statement with a different syntax:
Imports System.Linq
Partial Class linqtest Inherits System.Web.UI.Page Protected Sub Page_Load _ (ByVal sender As Object, ByVal e As System.EventArgs) _ Handles Me.Load Dim q = From f In System.Drawing.FontFamily.Families For Each fnt In q Response.Write(fnt.Name & "<br />") Next End Sub End Class
Does the preceding work for you?
Ken
|
|
12/3/2009 8:54:33 AM
|
topic:
Page 58 about insertion at <script> and </script>
paddyinuae Posts 2
|
Greetings.
I've looked through the FAQs, and I apologize in advance if this is a dumb question. As it's to do with LINQ and code behind files, I though here would be an opportune place to raise the question.
I notice that all examples use the "single page model" of coding. I've successfully followed the examples in the book, but would like to use the ""code behind model" of coding. I've tried all sorts of techniques and I've pasted that import directive just about everywhere, but still can't get the examples to work with code behind.
Can it be done, and if so, how difficult is it?
Thanks in anticipation.
Ian.
|
|
11/19/2009 4:00:30 PM
|
topic:
Page 171 - Repeated Instruction
Ken Cox Posts 165
|
Step 6 on Page 171 should be deleted as it duplicates Step 4 on Page 170.
|
|
11/19/2009 9:13:25 AM
|
topic:
c# chapter 13, no databases in app_data folder
jason palmer Posts 9
|
Ken,
Think I saw this much earlier in the examples as well, will let you know when I find problems, they all very minor so can see how they slipped in.
regards
JP
|
|
11/19/2009 8:50:49 AM
|
topic:
chapter 11, install small business starter kit
jason palmer Posts 9
|
I was a bit confused about how to get the kit working, this made it clearer
http://forums.asp.net/t/1484972.aspx
"I am using Visual Web Developer 2008 Express also and downloaded the Small Business Starter kit.
I double clicked the SmallBusiness.vsi file and it ran the install.
Next, opened Visual Web Developer.
On the Start Page selected Create Web Site.
On the Create Web Site box that opens you will see Templates at the bottom.
If installed correctly, you will see SmallBusiness as an option.
Selected it and since we are using VWD2008/ASP.NET 3.5 it will ask to convert the template from 2.0 to 3.5, select yes.
It then opens the entire "project".
There are directions on how to use it, once it is opened.
Already started modifying it, works great."
|
|
11/19/2009 5:44:19 AM
|
topic:
chapter 10, c# example problems
jason palmer Posts 9
|
default.aspx complained about not having a sqldatasource1 and the App_Data folder is missing a database, I copied the one over from chapter 6 and put a sqldatasource on the form, but, for those new to programming,this could be scary
|
|
11/19/2009 5:26:40 AM
|
topic:
chapter 9 , c# examples problems
jason palmer Posts 9
|
Ken,
checkcolour.aspx not working
but
rgbservice.asmx is
so not sure of the cause, if I do checkcolour with debug i get
The request failed with HTTP status 404: Not Found.
|
|
11/19/2009 4:41:21 AM
|
topic:
a c# version would be good
jason palmer Posts 9
|
Ken,
Perhaps you should do videos and bypass publishers, like this kind of thing ?
http://www.learnvisualstudio.net/
I think your a great teacher and it would be a great loss, to lose that.
|
|
11/18/2009 1:53:47 PM
|
topic:
Tool Placement on Forms
Ken Cox Posts 165
|
Choroid wrote:
I am new to ASP.net 3.5 so if this tip has been covered elsewhere my apologies. When you first start with MS Visual Web Developer placing tools on a page is not fun Here is a configuration setting to help solve the issue Click on Tools then select Options Expand the HTLM node Highlight CSS Styling under the HTML node Place a check or select Change position to absolute for controls added using Toolbox, paste or drag & drop
Thanks for the tip!
Sometimes I wonder if the people who designed the tools have actually spent any time trying to use them for real work. <grin>
Ken
|
|
pages:
1 2
|