Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't see my user control ASP.NET 1.1 1

Status
Not open for further replies.

TipGiver

Programmer
Joined
Sep 1, 2005
Messages
1,863
In the root i have a folder "user controls" and inside the "logincontrol.ascx". I drag it to a web form, and it generates this:

<%@ Register TagPrefix="uc1" TagName="LoginControl" Src="../User%20Controls/LoginControl.ascx" %>
The ".." is because the page that hosts the uc is in a folder at root.

When i load the page (i know that there will be an error cause i cant see th uc1 in design time), i get the error:

Parser Error Message: The file '/mysite/User%20Controls/LoginControl.ascx' does not exist.

I;m stuck.. any help on that?
Thanks
 
The page shows my uc, but i cannot see it in design time.
So do you mean that it works when viewing the website but it doesn't work when using the Designer window? If so, does it really matter? I personally think the designer window is a redundant feature anyway and never use it.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
" that it works when viewing the website "
> It works now for some reason. Earlier it did not.

" designer window is a redundant feature "
> So, i should place my controls controls and browse the page immediately to see the "real" output result ?

Thanks so far ca8msm
 
So, i should place my controls controls and browse the page immediately to see the "real" output result ?
I only use the Source window to put the relevant controls in place. All layout is done via CSS anyway and the designer doesn't properly render CSS (nor does it account for checking what it will look like in multiple browsers) hence why I don't use it. I just put the controls on the page and then run it and view it in different browsers to check it looks OK and that it functions correctly. I would suggest going with this route but it's up to you as to what you think works best for you.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I did a change..
i deleted the uc and placed the code for the html designed in the web form-page. I think that this is better, cause my main page consists of many other pages... all together they make the site's appearance.
In my early post i said that it would be the last to do in order to "fix" the problem. I dont see it as a fix but as a 'must' .
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top