Showing posts with label learn. Show all posts
Showing posts with label learn. Show all posts

Thursday, March 29, 2012

Newbie - Where Can I Get Examples To Learn From

Hi All,
As I am completing the ASP.NET Developer's Jumpstart book, I find there are
many things I want to do that are not covered in the book (I don't expect it
to have everything).
I learn best when I "play" with an already working page and disect it. I
went to www.asp.net and they have many starter kits, but either they are
too complicated for me, don't work (I am sure it is me and not them) or not
what I am looking for. It is not a slam on that page at all, I think it is a
great resource.
Does anyone have some suggestion on example pages that I can learn from? Or
maybe a book?
Thanks.
-RobHi Rob,
Are you new to ASP.NET in particular, or Web development in general?
IF you are new to Web development in general, then I'd suggest you start
with the basics - as taught in this wonderful e-book tutorial...
http://www.projectseven.com/books/f...onsmx/index.htm
You'll need Dreamweaver to do it, but if you are serious about learning Web
development fundamentals, then you'll like the control you get with
Dreamweaver. The e-book is NOT a Dreamweaver tutorial; rather it shows you
the fundamentals of solid Web page design (and walks you through everything
step-by-step using Dreamweaver). Highly recommended for any HTML/Web page
beginner.
IF you already know sound Web page design and HTML and are trying to get up
to speed on ASP.NET in particular, then I'd strongly recommend you stick
with the ASP.NET starter kits... specifically the Commerce application.
Learn what is all included in the tutorial package and take your time. It
will be well worth it. Learn how the documentation is organized and then
dive into the code - using the documentation as your tour guide.
Good Luck
G
"Rob G" <gumbatman@.hotmail.com> wrote in message
news:10ank0qk4vtut78@.corp.supernews.com...
> Hi All,
> As I am completing the ASP.NET Developer's Jumpstart book, I find there
are
> many things I want to do that are not covered in the book (I don't expect
it
> to have everything).
> I learn best when I "play" with an already working page and disect it. I
> went to www.asp.net and they have many starter kits, but either they are
> too complicated for me, don't work (I am sure it is me and not them) or
not
> what I am looking for. It is not a slam on that page at all, I think it is
a
> great resource.
> Does anyone have some suggestion on example pages that I can learn from?
Or
> maybe a book?
> Thanks.
> -Rob
>
> As I am completing the ASP.NET Developer's Jumpstart book, I find there are
> many things I want to do that are not covered in the book (I don't expect
it
> to have everything).
If you are familiar with Web development and just looking to learn
ASP.NET, I'd recommend:
ASP.NET Unleashed
http://www.amazon.com/exec/obidos/A...guysfromrollaco
ASP.NET KickStart
http://www.amazon.com/exec/obidos/A...guysfromrollaco
Both are written by Stephen Walther.
There are also a number of Web sites with loads of great, free information:
http://www.asp.net
http://www.4guysfromrolla.com
http://www.aspalliance.com
http://www.dotnetjunkies.com
http://msdn.microsoft.com/aspnet
And many others...
Hope this helps!
Scott Mitchell
mitchell@.4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com
* When you think ASP, think 4GuysFromRolla.com!
Grant and Scott,
Thank you both for the great information. It will really get me started.
-Rob
"Scott Mitchell [MVP]" <mitchell@.4guysfromrolla.com> wrote in message
news:40ABDFCF.7010808@.4guysfromrolla.com...
are
expect it
> If you are familiar with Web development and just looking to learn
> ASP.NET, I'd recommend:
> ASP.NET Unleashed
> http://www.amazon.com/exec/obidos/A...guysfromrollaco
> ASP.NET KickStart
> http://www.amazon.com/exec/obidos/A...guysfromrollaco
> Both are written by Stephen Walther.
> There are also a number of Web sites with loads of great, free
information:
> http://www.asp.net
> http://www.4guysfromrolla.com
> http://www.aspalliance.com
> http://www.dotnetjunkies.com
> http://msdn.microsoft.com/aspnet
> And many others...
> Hope this helps!
> --
> Scott Mitchell
> mitchell@.4guysfromrolla.com
> http://www.4GuysFromRolla.com
> http://www.ASPFAQs.com
> http://www.ASPMessageboard.com
> * When you think ASP, think 4GuysFromRolla.com!
The .Net SDK is free from Microsoft:
http://www.microsoft.com/downloads/...&displaylang=en
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Rob G" <gumbatman@.hotmail.com> wrote in message
news:10ank0qk4vtut78@.corp.supernews.com...
> Hi All,
> As I am completing the ASP.NET Developer's Jumpstart book, I find there
are
> many things I want to do that are not covered in the book (I don't expect
it
> to have everything).
> I learn best when I "play" with an already working page and disect it. I
> went to www.asp.net and they have many starter kits, but either they are
> too complicated for me, don't work (I am sure it is me and not them) or
not
> what I am looking for. It is not a slam on that page at all, I think it is
a
> great resource.
> Does anyone have some suggestion on example pages that I can learn from?
Or
> maybe a book?
> Thanks.
> -Rob
>

Newbie - Where Can I Get Examples To Learn From

Hi All,

As I am completing the ASP.NET Developer's Jumpstart book, I find there are
many things I want to do that are not covered in the book (I don't expect it
to have everything).

I learn best when I "play" with an already working page and disect it. I
went to www.asp.net and they have many starter kits, but either they are
too complicated for me, don't work (I am sure it is me and not them) or not
what I am looking for. It is not a slam on that page at all, I think it is a
great resource.

Does anyone have some suggestion on example pages that I can learn from? Or
maybe a book?

Thanks.

-RobHi Rob,

Are you new to ASP.NET in particular, or Web development in general?

IF you are new to Web development in general, then I'd suggest you start
with the basics - as taught in this wonderful e-book tutorial...
http://www.projectseven.com/books/f...onsmx/index.htm
You'll need Dreamweaver to do it, but if you are serious about learning Web
development fundamentals, then you'll like the control you get with
Dreamweaver. The e-book is NOT a Dreamweaver tutorial; rather it shows you
the fundamentals of solid Web page design (and walks you through everything
step-by-step using Dreamweaver). Highly recommended for any HTML/Web page
beginner.

IF you already know sound Web page design and HTML and are trying to get up
to speed on ASP.NET in particular, then I'd strongly recommend you stick
with the ASP.NET starter kits... specifically the Commerce application.
Learn what is all included in the tutorial package and take your time. It
will be well worth it. Learn how the documentation is organized and then
dive into the code - using the documentation as your tour guide.

Good Luck

G

"Rob G" <gumbatman@.hotmail.com> wrote in message
news:10ank0qk4vtut78@.corp.supernews.com...
> Hi All,
> As I am completing the ASP.NET Developer's Jumpstart book, I find there
are
> many things I want to do that are not covered in the book (I don't expect
it
> to have everything).
> I learn best when I "play" with an already working page and disect it. I
> went to www.asp.net and they have many starter kits, but either they are
> too complicated for me, don't work (I am sure it is me and not them) or
not
> what I am looking for. It is not a slam on that page at all, I think it is
a
> great resource.
> Does anyone have some suggestion on example pages that I can learn from?
Or
> maybe a book?
> Thanks.
> -Rob
> As I am completing the ASP.NET Developer's Jumpstart book, I find there are
> many things I want to do that are not covered in the book (I don't expect it
> to have everything).

If you are familiar with Web development and just looking to learn
ASP.NET, I'd recommend:

ASP.NET Unleashed
http://www.amazon.com/exec/obidos/A...guysfromrollaco

ASP.NET KickStart
http://www.amazon.com/exec/obidos/A...guysfromrollaco

Both are written by Stephen Walther.

There are also a number of Web sites with loads of great, free information:

http://www.asp.net
http://www.4guysfromrolla.com
http://www.aspalliance.com
http://www.dotnetjunkies.com
http://msdn.microsoft.com/aspnet

And many others...

Hope this helps!

--

Scott Mitchell
mitchell@.4guysfromrolla.com
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
Grant and Scott,

Thank you both for the great information. It will really get me started.

-Rob

"Scott Mitchell [MVP]" <mitchell@.4guysfromrolla.com> wrote in message
news:40ABDFCF.7010808@.4guysfromrolla.com...
> > As I am completing the ASP.NET Developer's Jumpstart book, I find there
are
> > many things I want to do that are not covered in the book (I don't
expect it
> > to have everything).
> If you are familiar with Web development and just looking to learn
> ASP.NET, I'd recommend:
> ASP.NET Unleashed
> http://www.amazon.com/exec/obidos/A...guysfromrollaco
> ASP.NET KickStart
> http://www.amazon.com/exec/obidos/A...guysfromrollaco
> Both are written by Stephen Walther.
> There are also a number of Web sites with loads of great, free
information:
> http://www.asp.net
> http://www.4guysfromrolla.com
> http://www.aspalliance.com
> http://www.dotnetjunkies.com
> http://msdn.microsoft.com/aspnet
> And many others...
> Hope this helps!
> --
> Scott Mitchell
> mitchell@.4guysfromrolla.com
> http://www.4GuysFromRolla.com
> http://www.ASPFAQs.com
> http://www.ASPMessageboard.com
> * When you think ASP, think 4GuysFromRolla.com!
The .Net SDK is free from Microsoft:

http://www.microsoft.com/downloads/...&displaylang=en

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Rob G" <gumbatman@.hotmail.com> wrote in message
news:10ank0qk4vtut78@.corp.supernews.com...
> Hi All,
> As I am completing the ASP.NET Developer's Jumpstart book, I find there
are
> many things I want to do that are not covered in the book (I don't expect
it
> to have everything).
> I learn best when I "play" with an already working page and disect it. I
> went to www.asp.net and they have many starter kits, but either they are
> too complicated for me, don't work (I am sure it is me and not them) or
not
> what I am looking for. It is not a slam on that page at all, I think it is
a
> great resource.
> Does anyone have some suggestion on example pages that I can learn from?
Or
> maybe a book?
> Thanks.
> -Rob

Monday, March 26, 2012

Newbie Access Database Question

I'm just starting to learn ASP.net, I have a lot of ASP experience, which probably makes ASP.net even more confusing. Basically what I'm trying to do is read data from an access database and then repeat a certain format until the last database entry. I'll give an example

Database has 5 columns: Section, Author, Title, Link, Bibiography

Website:

Section
Author, Title (linked), Bibiography
...
Author...
Section
Author...

Make sense?

This would be very easy in asp, but I haven't quite gotten the grasp of .netSuggestion: Forget ASP. Yeah it stinks to start over, but it's easier that way.

the 'dot net way':

Grab the data into a data set. Check out theTutorials (linked above). There are also a ton of other sites out there for accessing data from a database with .NET. Search for '.NET + Access + DataSet'.

Once you have it in a DataSet object the rest is sooooo easy. Just setup a repeater object on the page. Then an 'item template' and define how you want each item to look like. Lastly add a seperator template if you want something between records. Finally in the code section do MyRepeater.DataSource = MyDataSet.Tables(0) *your data, then MyRepeater.DataBind() and you'll be all set. If you want tabular data without too crazy of formatting, check out the DataGrid. If you just want to list the results in columns you do the DataSource line from above (except you use a DataGrid object) and the DataBind method call. The rest is automagic.

If you need help with the data access, check out the Access forum in the Data Discussions section.

-Ryan
You can use a Repeater, DataList, or DataGrid for this purpose. This tutorial might be helpful:Binding to Data Display Controls. See also the Tutorials section of this site (in particularData Access and Customization). I think a DataList might suit your purposes pretty well, or a Repeater if you need more control (but also requires more coding).

Terri
thanks for the quick responces...

I looked up how to use the repeater control and it seems like this is what I'm looking for. Is the best way to group all of the same sections together to make an if statment? Is that legal within a repeater? Here's what a sample database looks like

General, Blah, Blah
General, Blah2...
Science, Blah3...
Science, Blah4...

I'd like it to:

General
blah
blah2
Science
blah3
blah4

Thanks for all your help
I think you want to put a Order By clause in your SQL Query.


Select Section, Author, Title, Link, Bibiography from MyDB
Order By Section, Author DESC

This will return
General, bob, bobs book, xxx, xxxx
General, sarah, sarahs book, xxx, xxxx
General, tim, tims book, xxx, xxxx
Science, joe, joes book, xxx, xxx

It first sorts Section alphabetically and then within all matching sections it then sorts on the author.

Friday, March 16, 2012

Newbie needs help

Greetings,

I have been developing with ASP 3.0 and VB6 for the past few years and I decided it was finally time to learn .NET. I have recently purchased VB.NET and I am running on a win2k adv server box using Access 2002 as a back end (I am working on aquiring SQL Server). I am attempting to test my first code in ASP.NET but I am having difficulties. I am hoping somebody may be able to point me in the correct direction. The code I am using is posted below.


<HTML>
<HEAD>
<title>WebForm1</title>
<script language="vb" runat="server">
Sub Page_OnLoad(sender as Object, e as EventArgs)
Response.Write("called")
Dim strConnString As String = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\inetpub\wwwroot\webapp1\db1.mdb;"

Dim objConn as New OleDbConnection(strConnString)
Dim strSQL as String = "SELECT * FROM Names"
Dim objCmd as new OleDbCommand(strSQL, objConn)

MyDataGrid.DataSource = objCmd.ExecuteReader
MyDataGrid.DataBind()
End Sub

Sub MyButton_OnClick(Sender as Object, e as EventArgs)
Response.Write("called")
End Sub
</script>
</HEAD>
<body>
<form name="frmTest" runat="server">
<asp:Button ID="MyButton" Runat="server" Text="Click Me" />
<asp:DataGrid ID="MyDataGrid" Runat="server" BorderColor=#ff00ff />
</form>
</body>
</HTML>

For some reason when I view this .aspx page the datagrid doesn't show up and neither does the data access portion. Coming from an ASP 3.0 background my first instinct was to place the "response.write" command in the page_load sub to see if that sub was being called correctly. None of the above shows up on the page. However, if I place a plain text box or button it shows up fine. I have searched the forums here and found a few posts that had a similar problem, so I ran the aspnet_regiis -i from the cmd prompt and it installed correctly, but it didn't help my problems any. I also made sure that IIS has this set up as an application. Being new to .NET I am not sure where to go from here and would appreciate any feedback on how to fix this issue.

Regards,
Coreywell the first thin I see is that you are using Page_OnLoad which is incorrect, it is Page_Load. Also you have not opened the connection so just add this before you define your sql string

objConn.Open()

then after you you bind the data, make sure you close the connection using

objConn.Close()

That should solve the problem
Hi,

first off all: response.write was used a lot in classic asp but in asp.net it's nicer to use trace.write (or trace.warn). Make sure that tracing is enabled for the page.

You're probably using webmatrix as a tool so it's better to check out theguided tour first.

Grz, Kris.
Thanks for the replies. I began to experiment with the code behind files and finally figured out that my problem was with the name of my db table name. It was a reserved word and when I surrounded it by "[ ]" it began working properly.

Regards,
Corey

Newbie needs help - Online Manual?!?!?

Does anyone know of a good online ASP / ASP.NET manual (documentation) where a guy trying to learn ASP can go to get information on built it functions, syntax and other good stuff?I think these are put on your HD somewhere when you install the .net framework but it's just as easy to go here and look at them.

http://samples.gotdotnet.com/quickstart/aspplus/