I just ran into trouble with the AreaDescriptionFilter of Spark using MVC 2 Beta.
The following line is from my Application.spark file. It results in the view engine looking in all possible locations of the view - except in the folders of the area "Shell".
# Html.RenderAction("ShowMainMenu", "Navigation", new { area = "Shell" });
Run...
Is there any better, cleaner, way to set selected="true" ? Maybe a nested if?
<select id="State" name="State" if="(Model.StateList.Count() > 0 )" >
<option value="">Select One</option>
<for each="KeyValuePair<string, string> item in Model.StateList">
<option value="${item.Value}" if="(Model.State == item.Value)" selected...
What is the difference between ${...} and !{...} in the Spark View Engine?
There probably is a really distinct difference between the two, but I see them used interchangeably.
Does one encode the output and the other doesn't? Which I have seen some discussion about in the groups? If that is true then what does this do:
${H(Model.N...
Even with the following in spark section of web.config:
<pages automaticEncoding="false">
Things between ${...} Still get passed through H(...), which HTML encodes it.
How change this or should I just fall back to !{...}?
...
I am trying to use MVCContrib InputBuilders but I am having trouble. I am also using S#arp architecture and spark. My spark view looks like this:
new.spark:
<viewdata model="NewUserViewModel" />
${Html.InputForm<NewUserViewModel>()}
My global.asax.cs contains:
protected void Application_Start() {
XmlConfigurator.Configure();...
If i add pageBaseType="Spark.Web.Mvc.SparkView" in my web.config (necessary to fix intellisense), somehow it does not render links (probably not only) correctly anymore.
This is how it's supposed to look like (and does, if page base type is not specified)=>
This is how it looks when base type is specified=>
Chrome source viewer sh...
I am trying to develop an application using ASP.NET MVC 2 with Spark as View Engine for the Imagine Cup. To win the IE8 award, I must use some features of IE8. I saw that there are some server controls (Web Slice Control, Accelerator Control, Visual Search Control, Browser Helper Control at http://code.msdn.microsoft.com/WebAppToolkitIE8...
Using this to generate my resources. Problem is, spark dies when tries to generate dynamic views because there is app_globalresources.dll and myapp.dll somewhere there - deep into temp jungles.
.spark(9,36): error CS0433: The type 'Resources.Account' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET File...
Hello,
I am using the SparkViewEngine with ASP.NET MVC 1.0 and was wondering if there is a way to include another View within your current view.
For example, I have this view called ResourceManager.spark.
Inside this file, I want to include another sub-view called Resources.spark.
Thanks!
Abe
...
I read that it's possible, but didn't get idea how.
Any ideas?
...
I decided to use ASP.NET MVC, S#arp Architectur and the Spark View Engine for my new project.
First i created a new project with the help of S#arp.
I tried to update the view of the S#arp Architectur to .spark files.
That works fine except for one exception left. The ActionLinkForAreas Method used in the Application.spark is not found...
I am starting to develop a complex web application using S#arp Architectur and the Spark View Engine.
By default MVC 1.0 is used.
But i am thinking about upgrading everything to ASP.NET MVC 2.
Would u start developing in MVC 1 and upgrade to version 2 later or do the upgrade straight from the beginning?
Thanks for your advice,
-Ben...
Using ASP.NET MVC & Spark, I have a view that is listing a number of searches. The view has the following declaration at the top:
<viewdata model="IEnumerable<SearchModel>" />
On the same search page, I also render a partial which is used as the content of a popup window that enables users to add new searches.
My problem is: in the p...
THe variable email below is used twice: first inside the <p> tag, and then is passed as a value of a textbox.
Question: Will both occurencies yield the same text? Believe it or not - they are different.
#UserProfileEditForm form = (UserProfileEditForm)ViewData["form"];
#string email = form.email;
<p>Email: ${HttpUtility.HtmlEncode(ema...
I am looking for a starter kit that already is set up with the following?
ASP.NET MVC 1.0
Jquery/Jquery UI/JqGrid/
Sparkview engine
NHibernate
Code quality is important as well. Thanks in advance.
...
How do you modify a ASP.NET MVC 2.0 project to work with the Spark View Engine?
I tried like described here:
http://dotnetslackers.com/articles/aspnet/installing-the-spark-view-engine-into-asp-net-mvc-2-preview-2.aspx
But somehow it still tries to route to .aspx files.
Here the code of my global.asax:
public class MvcApplication : Sy...
Will I get the advantage of the new Strongly Typed Html Helpers with asp.net MVC 2 if were to use the spark engine for rendering?
...
I need some really good blogs to follow ASP.NET MVC, Fluent NHibernate, and Spark View Engine.
I would like to follow some good bloggers in these areas.
...
#Html.RenderPartial(MVC.Shared.Views._Sorter);
throws error =>
There is no build provider registered for the extension '.spark'. You can register one in the section in machine.config or web.config. Make sure is has a BuildProviderAppliesToAttribute attribute which includes the value 'Web' or 'All'.
Description: An unhandled ...
Hi guys,
I am having a very weird issue in the way strings get stored in my database, and as a result, I am getting these "unterminated string literal" errors in Javascript.
Here's an overview of what I am doing:
Platform: C#/ASP.NET MVC 1.0, SQL Server 2005, SparkViewEngine, YUI 2
In my view, I serialize an object into a JSON data ...