OT: Need UI Webcontrol Advice

OT: Need UI Webcontrol Advice

Old forum URL: forums.lhotka.net/forums/t/875.aspx


david.wendelken posted on Thursday, August 10, 2006

I built a set of pages similar to the ResourceList.aspx and ResourceEdit.aspx for my application.

Now I want to tie some of them together using a Wizard Control on another page.  But, I also want users to be able to navigate directly to the page.

It seems like I should turn my pages into Webcontrols instead of Webforms.  That way, I should be able to embed the same control on a stand-alone page and on a wizard step.

I converted my ResourceList.aspx equivalent into an ascx file (first one I ever built!) and dragged it onto the wizard step.  Then I converted my ResourceEdit.aspx into an ascx file also, and tried to navigate to it by choosing a record to edit. 

I get this error:

This type of page is not served.

The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.ascx' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

I couldn't find a setting in IIS that seemed to have anything to do with this error.  Ditto in my web.config file based upon the ProjectTracker web.config file.

So, how do I make this happen?

Thanks!

ajj3085 replied on Friday, August 11, 2006

Did you try running aspnet_regiis -i from the version directory of the framework?

In server 2003, you need to check the IIS manager's allowed extensions.

david.wendelken replied on Friday, August 11, 2006

ajj3085:
Did you try running aspnet_regiis -i from the version directory of the framework?

In server 2003, you need to check the IIS manager's allowed extensions.

Realized I wasn't completely clear.  The ResourceList.ascx works just fine.  It's the hyperlink to the ResourceEdit.ascx that is giving the error.

I couldn't figure out in IIS where the list of allowed extensions is.  Help?

david.wendelken replied on Friday, August 11, 2006

Ok, I've learned some more.

The problem is (apparently) that we're not allowed to hyperlink directly to a web user control. 

 

david.wendelken replied on Sunday, August 13, 2006

I'm trying to access the actual database column data values held in the GridView in a RowCommand event handler. 

I can't figure out where they are! 

Could someone give an example of referencing one of them in a code-behind event handler?

Preferably by column name instead of its index position...

Thanks!

Copyright (c) Marimer LLC