Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap() namespace not recognised in razor view #424

Open
dm7777 opened this issue Jun 8, 2016 · 3 comments
Open

Bootstrap() namespace not recognised in razor view #424

dm7777 opened this issue Jun 8, 2016 · 3 comments

Comments

@dm7777
Copy link

dm7777 commented Jun 8, 2016

Hi Dimitry

I have download a trial of TwitterBootstrapMVC and followed the instruction of how to add the dll's to the project. The licence file is in the root of the project and the web.config in the Views root folder includes the TwitterBootstrap namespace.

The project compiles successfully. However the Bootstrap namespace (intellisense) is not recognised in the razor views.

I have included the print screen of the error message
error

Can you please help as I want to use your library in my project

Sorry but can you also please provide a VS solution with a working solution of this library. I have tried codeproject.com and the download links from your articles are missing
package

editcshtml
gobasasax
webconfig

Regards
Dairy Milk

@gicalle
Copy link

gicalle commented Jun 8, 2016

in your web.config file (under the views folder!) you forgot to add the desired namespace: TwitterBootstrap3 (see installation info, step 3, point 4):

Depending on version of Bootstrap that you are using add one of the two namespaces:
TwitterBootstrap2 or
TwitterBootstrap3

<add namespace="System.Web.Routing" /> <add namespace="TwitterBootstrapMVC" /> <add namespace="TwitterBootstrap3" />

@dm7777
Copy link
Author

dm7777 commented Jun 8, 2016

Hi gicalle

Many thanks for pointing that out. I dont know how I missed that one out.

I read and re read the instructions half a dozen times to ensure that I have not missed anything before posting here.

I am definitely buying the licence for this library

Would be nice if there was a sample VS solution for asp.net mvc

Regards
Dairy Milk

@DmitryEfimenko
Copy link
Owner

@dm7777 Glad you got this working! Good idea on having a configured sample VS solution available to people. I'll put something together.

@gicalle Thanks for stepping in! It's a great help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants