473,320 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Seeking Help About Web Templates with ASP 1.1

I'm an accomplished C# WinForms programmer but am now trying to get quickly
up to speed building websites. I current use ASP.net 1.1 and C#.

From the get go, it was clear to me to build web user controls that would
contain such items as the Header, the Sidebar, and the Footer. So I read
these two articles:
http://www.devx.com/dotnet/Article/18011
http://www.codeproject.com/aspnet/Pa...d=102656&exp=0

But, being new to this kind of programming, I've struggled with this every
point along the way. As an example, I want to have a link button on the
header. But this web control requires it to be wrapped in a <Form> </Form>
construct. Fine. Except that apparently you can't have 2 of those
constructs on the same page!

With the first article I converted all the code over to C# but am getting
really confused about how to implement it. With the 2nd article, though it
runs okay right-off, when I tried inserting a link button in the header it
failed for the reason stated above.

So I'm wondering if anyone out there has some advice about how I could best
move forward and turn the frustration into progress?

--
Robert W.
Vancouver, BC
www.mwtech.com

Mar 31 '06 #1
3 1089
Basically you just put everything in the form. You don't need more
than one form, and the way that ASP.NET handles postbacks makes it
impossible to have more than 1 form.

Here's the trick. Rather than having different forms that submit to
different url's, you take, say, a button, and puit the logic in the
OnClick event. Then, as the event fires, your logic is run.

Just as with WinForms, it's an event driven environment. Certain
elements will raise events (through postbacks, or Async/AJAX events),
which runs the associated logic. I suggest just keep banging through
tutorials, as well as maybe grabbing an open source project, like
DotNetNuke, so you can see how other people have done asp.net websites.
However, you may want to start at a lower level than Dot Net Nuke if
you are just starting. Maybe the PayPal Commerce starter kit
(www.commercestarterkit.org)?

Best of luck,
Darren Kopp
http://blog.secudocs.com/

Mar 31 '06 #2
Thanks for the inspiration, Darren! You know, when I started learning C#.net
a year ago this month there were some similar "cloudy" days. But eventually
it made sense and soon I was onto Reflection and doing some really great
things.

I just read this article and things seem to be working better now:
http://www.codeproject.com/aspnet/page_templates.asp

Thank you again for responding!

--
Robert W.
Vancouver, BC
www.mwtech.com

"Darren Kopp" wrote:
Basically you just put everything in the form. You don't need more
than one form, and the way that ASP.NET handles postbacks makes it
impossible to have more than 1 form.

Here's the trick. Rather than having different forms that submit to
different url's, you take, say, a button, and puit the logic in the
OnClick event. Then, as the event fires, your logic is run.

Just as with WinForms, it's an event driven environment. Certain
elements will raise events (through postbacks, or Async/AJAX events),
which runs the associated logic. I suggest just keep banging through
tutorials, as well as maybe grabbing an open source project, like
DotNetNuke, so you can see how other people have done asp.net websites.
However, you may want to start at a lower level than Dot Net Nuke if
you are just starting. Maybe the PayPal Commerce starter kit
(www.commercestarterkit.org)?

Best of luck,
Darren Kopp
http://blog.secudocs.com/

Mar 31 '06 #3
No problem man. Yeah, once you see how the ASP.NET engine works (page
class, inheritance, etc), then it's not too bad. It's that pesky html
that I spend the most time with.

Happy .NETing,
Darren Kopp
http://blog.secudocs.com/

Mar 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Larry Lard | last post by:
Until Generics arrives, the only way to do things like: create a strongly-typed ArrayList-like object; create a strongly-typed HashTable with given types for key and value; and so on; is to churn...
11
by: herpers | last post by:
Hello, I probably don't see the obvious, but maybe you can help me out of this mess. The following is my problem: I created two classes NormDistribution and DiscDistribution. Both classes...
10
by: sandy | last post by:
I have been given a class, stack to work with. I have created a class called Job that I want to push on the stack. I cannot seem to figure out why the push isn't working. (I know the stack...
75
by: Steven T. Hatton | last post by:
No, this is not a troll, and I am not promoting Java, C-flat, D, APL, Bash, Mathematica, SML, or LISP. A college teacher recently posted to this newsgroup regarding her observation that there has...
3
by: Jia Lu | last post by:
Hello all I see there are lots of flat db or db-like modules in the standard python modules. What about the keywords seeking speed of them ? (I want to put about 10000 articles with 10000...
17
by: JohnQ | last post by:
Is that I can approximate using my ideal of a language in it. On the flip side, what I dislike most about it is all the flak/protecting-the-golden-calf one gets when using it that way. I think a...
15
by: Devon Null | last post by:
I was simply wondering if this was a mal-formed class header: #ifndef _items_h_ #define _items_h_ #include <iostream> #include <string> #include <vector> using namespace std;
3
by: webnewbee | last post by:
All, I am an absolute beginner when it comes to web development. I have built a few sites using tools like FrontPage and WebPlus, but when it comes to programming in HTML, XML, .Net etc., I am as...
0
by: Reedick, Andrew | last post by:
<snip> I have a Perl background and have found the O'Reilly books to be useful. The Learning Python book (or whatever it's called) is good because it covers the paradigm shifts and potential...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.