TabContiner with razor - asp.net-mvc-3

I have a question. Is it possible to work with AJAX Control Toolkit in razor views?
I need to use TabContainer or similar (it could be a HTML Helper)
I know I can use it in aspx but I'm using Layouts on my project... so maybe a partial view is the solution, I really don't know.
Regards.

I have a question. Is it possible to work with AJAX Control Toolkit in razor views?
Not recommended. The AJAX Control Toolkit consists of server side controls which depend on ViewState and PostBack which are notions that no longer exist in ASP.NET MVC. So referencing the AjaxControlToolkit assembly inside an ASP.NET MVC application is like attaching a caravan on a Lamborghini.
As an alternative you might take a look at jQuery UI which has many useful widgets such as Tabs.

Related

How can view the Figma Telerik UI form on the blazor project?

Already created Telerik UI from by Figma. How can that plugging and view on blazor page?
Thanks!
I am not familiar with Figma but I think it is about styling so you probably have the CSS theme for the Telerik components from it. So, now you need the content - that is the actual form. Perhaps you just need a model with the desired fields and the TelerikForm to show them in.

Design View for ASP.NET MVC3 Views

Is there a Design View in ASP.NET MVC3 ?
There is no 'Design' view in MVC, like there is in Forms. However your views are just HTML so you can use any HTML editor, although they will not be able to interpret the Razor syntax.
What most people do is make changes to the HTML, save (you don't have to recompile,) and refresh your browser. Google Chrome has a very help full tool built in (Firebug or something like it.) Just right click on the page and select Inspect Element. This will come in very handy.
Also one thing to think about since you're new to MVC is that you can easily use most any css themes that you can find online to make the site look very different out of the box.

Creating Orchard Module with aspx View Engine

i have an existing MVC3 Application.
This application uses the Razor view engine AND the aspx Viewengine (for rendering telerik reports).
I want to integrate this MVC Application to Orchard (never used Orchard before).
My question is:
is this possible?
can orchard render views with a aspx viewengine?
thanks for your answers!
Orchard can render aspx, yes, but to make this application work inside of Orchard you'll have to transform it into an Orchard module. if those aspx reports are not MVC but use Webforms postbacks you probably won't be able to use them unless you isolate them into a separate application.
The question to ask would be why do you want to integrate this MVC app to Orchard?

_Layout.cshtml in MVC3 with Razor has view mode?

I need some help!
I try to design my master page by _Layout.html with Razor. But I can see it as review cause there's no View mode in Visual Studio. I just want to know: Does _Layout.cshtml in MVC3 has view mode, source mode and split mode like masterpage (*.Master) ? If yes, how can I use it?
Thanks all!
No, there is currently no WYSIWYG editor in Visual Studio for ASP.NET MVC view designing.
But there is a brighter side to that answer. Use FireFox and a plug-in called Firebug. Firebug is possibly one of the greatest tools that a web developer can have. It not only lets you see everything from markup to Ajax requests, but it also allows you to do real-time editing/modifying of HTML and CSS.
Firebug

ASP.NET MVC 3 : Design choice for view engine

I'm going to create a website with lots of business logic, connected to a background data model. For these reasons I chose ASP.NET MVC3 as development platform.
Unfortunately, I left web programming at the time of the old ASP and JSP and lately I worked with windows applications and C#.
Now I'm wondering which is the best(easiest, fastest, most reliable, most compatible with browsers) technique to create user views?
I explored a little Razor, but it is unclear for me, is it a so good choice? Is it supported by forums or still too fresh?
I'm very tempted of using webcontrols since I'm now addicted to them. Would this be a good choice? Can I use webcontrols just in aspx or in razor as well?
What about Ajax controls? Would it be a better choice?
Thanks!
Yes, Razor is a good choice. See here for a pretty good summary.
As Robert mentioned, "controls" go against the MVC pattern and will not even work in Razor. You want html helpers for small bits of markup (for example, to render a text box) and partial views for more complicated things (like a shopping cart widget)
Use of AJAX depends on the UI needs of your application. Initially it would be simpler to start without AJAX. Also, some clients might have JavaScript disabled and then AJAX would not work.
"web controls" are not appropriate for MVC at all - they go against the MVC pattern. Instead, look into "partial views" for creating common bits of UI that get reused across multiple pages

Resources