Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 73
Search took 0.01 seconds.
Search: Posts Made By: shmacgregor
Forum: ASP.NET 1.0 and 1.1 Basics April 5th, 2004, 04:11 PM
Replies: 12
Views: 2,278
Posted By shmacgregor
Yes, it does behave differently. I do exactly the...

Yes, it does behave differently. I do exactly the same process and get an abstract class. I named the class Imar and got:
public abstract class Imar : System.Web.UI.UserControl
{



Sandy
Forum: ASP.NET 1.0 and 1.1 Basics April 5th, 2004, 02:22 PM
Replies: 12
Views: 2,278
Posted By shmacgregor
OH! YES! I see. Dank U Imar. That clears up...

OH! YES! I see. Dank U Imar.

That clears up all manner of problems with my UserControls.

"Why are you using an abstract class for the User Control?" Because when I create a UserControl in...
Forum: ASP.NET 1.0 and 1.1 Basics April 4th, 2004, 10:59 PM
Replies: 12
Views: 2,278
Posted By shmacgregor
Imar, I really appreciate your help. The .ascx.cs...

Imar, I really appreciate your help. The .ascx.cs page has:
using System.Web.UI.WebControls;

namespace NoLimitEngin
{
public abstract class C_AlsoBought : System.Web.UI.UserControl
{...
Forum: ASP.NET 1.0 and 1.1 Basics April 3rd, 2004, 07:05 PM
Replies: 12
Views: 2,278
Posted By shmacgregor
Imar, AlsoBought itemBought =...

Imar,

AlsoBought itemBought = (AlsoBought)ProdList.Items[ProdList.SelectedIndex].FindControl("AlsoBought1");

produces the same error.

And the declarations:
public AlsoBought AlsoBought1;...
Forum: ASP.NET 1.0 and 1.1 Basics April 3rd, 2004, 12:01 PM
Replies: 12
Views: 2,278
Posted By shmacgregor
I've tried changing public UserControl...

I've tried changing
public UserControl itemBought;
to
public AlsoBought1 itemBought; produces Error "The type or namespace could not be found"

And I've tried changing
UserControl itemBought =...
Forum: ASP.NET 1.0 and 1.1 Basics April 2nd, 2004, 10:18 PM
Replies: 12
Views: 2,278
Posted By shmacgregor
This question never did come up in the active...

This question never did come up in the active list.

Sandy
Forum: ASP.NET 1.0 and 1.1 Basics April 2nd, 2004, 02:36 PM
Replies: 12
Views: 2,278
Posted By shmacgregor
UserControls in DataLists

Another similar question, but with a UserControl.
<asp:datalist id="ProdList" runat="server" DataKeyField="productTypeID" OnItemCommand="ProdList_ItemCommand">
<ItemTemplate>...
Forum: ASP.NET 1.0 and 1.1 Basics April 1st, 2004, 03:30 PM
Replies: 4
Views: 1,737
Posted By shmacgregor
I found the problem. This syntax must be used: ...

I found the problem. This syntax must be used:
<asp:Label id=lblProductTypeID runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "productTypeID") %>'>
</asp:Label>

and then it works.
...
Forum: ASP.NET 1.0 and 1.1 Basics April 1st, 2004, 03:17 PM
Replies: 4
Views: 1,737
Posted By shmacgregor
Arrrrrrgh!!! (Sound of chewing nails) But -...

Arrrrrrgh!!! (Sound of chewing nails)

But - - now
<asp:Label id="lblProductTypeID" runat="server">
<%# DataBinder.Eval(Container.DataItem, "productTypeID") %>
</asp:Label>

and I get the same...
Forum: ASP.NET 1.0 and 1.1 Basics April 1st, 2004, 02:25 PM
Replies: 4
Views: 1,737
Posted By shmacgregor
Labels in DataLists

Please help again. I have a
<asp:datalist id="ProdList" runat="server" DataKeyField="productTypeID" OnItemCommand="ProdList_ItemCommand">
<ItemTemplate>
<asp:Label id="lblproductTypeID"...
Forum: VS.NET 2002/2003 March 26th, 2004, 02:39 PM
Replies: 2
Views: 905
Posted By shmacgregor
I understood there was a problem with VS.NET...

I understood there was a problem with VS.NET declaring Web User Controls that had been added. Is this also a known problem?

Sandy
Forum: VS.NET 2002/2003 March 25th, 2004, 08:09 PM
Replies: 2
Views: 905
Posted By shmacgregor
Control not added to code page

I can not successfully create a control in an Item Template.

1). Add a new page to an existing project.
2). Add between the form tags in the html page view:
<table height="100%" cellSpacing="0"...
Forum: General .NET March 1st, 2004, 04:31 PM
Replies: 6
Views: 3,735
Posted By shmacgregor
Thank you Imar, I have, Project Property...

Thank you Imar,
I have,

Project Property Pages:

Common Properties:
General:
Startup Object: (Not Set) - Although I have set this and it has always started on that page.

Configuration...
Forum: General .NET February 29th, 2004, 03:02 PM
Replies: 6
Views: 3,735
Posted By shmacgregor
The configuration manager shown after selecting...

The configuration manager shown after selecting Solution ->Configuration Manager is set on debug. But I can't find a way to get to the larger Configuration Manager. (Like the one in C#.) I haven't...
Forum: General .NET February 27th, 2004, 10:17 PM
Replies: 6
Views: 3,735
Posted By shmacgregor
Can't Debug

All of a sudden my VS.NET program will no longer stop at a breakpoint, not in any file.

Since I last successfully did stop at a breakpoint
1) I have uploaded a copy of the program to a Web Host....
Forum: VS.NET 2002/2003 February 24th, 2004, 07:12 PM
Replies: 6
Views: 1,214
Posted By shmacgregor
Peter, Hope you weren't offended by...

Peter,

Hope you weren't offended by EVERYTIME, I was exceedingly frustrated.

I had about 8 different errors on that page, resulting from inserting the UC while copying and pasteing from other...
Forum: VS.NET 2002/2003 February 23rd, 2004, 04:42 PM
Replies: 6
Views: 1,214
Posted By shmacgregor
Peter, "Are you adding an event to...

Peter,

"Are you adding an event to SearchList_Select in page_init that you shouldn't be? That's the only thing I can imagine."

EVERYTIME I add or replace a control in the template, the .cs...
Forum: VS.NET 2002/2003 February 23rd, 2004, 03:28 PM
Replies: 6
Views: 1,214
Posted By shmacgregor
Hi Peter, Thanks for your reply. I'm using...

Hi Peter,

Thanks for your reply. I'm using aspx controls in the UC, with the form in the file that uses the UC. However, that can't be connected with this problem, because the other file,...
Forum: VS.NET 2002/2003 February 23rd, 2004, 02:05 PM
Replies: 6
Views: 1,214
Posted By shmacgregor
Flow Control

I'm haveing a flow control problem in a code page, SearchResults.aspx.cs, which contains:

private void Page_Load(object sender, System.EventArgs e) {

string tryit = Request.Params["term"];...
Forum: VS.NET 2002/2003 February 22nd, 2004, 03:28 PM
Replies: 18
Views: 9,215
Posted By shmacgregor
Imar, First, I was wrong about the HtmlForm...

Imar,

First, I was wrong about the HtmlForm working. It did at first, but not the next day (after the computer was off for the night). So I'm using your way of putting the VS form in the UC. Does...
Forum: VS.NET 2002/2003 February 21st, 2004, 04:34 PM
Replies: 18
Views: 9,215
Posted By shmacgregor
Imar, Yes! You are absolutely right. That's...

Imar,

Yes! You are absolutely right. That's a better design for a multi-use UC. However, in this case it's only used in one place and always redirects to SearchResults, which contains the...
Forum: VS.NET 2002/2003 February 21st, 2004, 01:47 AM
Replies: 18
Views: 9,215
Posted By shmacgregor
Imar, Experimentation shows that the <form>...

Imar,

Experimentation shows that the <form> works the same whether it's put in the UC or in the page that uses the UC, but it must be in one, and not in both. Second, no matter which file the...
Forum: VS.NET 2002/2003 February 20th, 2004, 06:32 PM
Replies: 18
Views: 9,215
Posted By shmacgregor
Imar, Now I'm confused. If the...

Imar,

Now I'm confused. If the action="SearchResults" in the form of the use of the UC is removed, and it posts back, to which page does it post back, to the UC code page, or to the code page that...
Forum: VS.NET 2002/2003 February 20th, 2004, 06:16 PM
Replies: 18
Views: 9,215
Posted By shmacgregor
Peter, The HtmlForm declaration is removed....

Peter,

The HtmlForm declaration is removed. But removing it has no effect.

Thanks anyway.



Sandy
Forum: VS.NET 2002/2003 February 20th, 2004, 03:28 PM
Replies: 18
Views: 9,215
Posted By shmacgregor
Very Happy To Do So! Here's the UC: <%@...

Very Happy To Do So! Here's the UC:

<%@ Control Language="c#" AutoEventWireup="false" Codebehind="_Header.ascx.cs" Inherits="NoLimitEngin.__Header"...
Showing results 1 to 25 of 73

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.