Using Web Spark Program?
Aug 26, 2010is anyone in the webspark program, if so do you think it is worth it.
View 6 Repliesis anyone in the webspark program, if so do you think it is worth it.
View 6 RepliesI have a web form in SPARK which allow the editing of a Facility class that contains Rooms. When editing the Facility all the Rooms are listed for editing too. The form works fine for editing, but I would like to include a button "Add Room" that adds a new blank room below the existing ones.
Currently I am doing this in my SPARK page:
[code]....
AddFacilityRoom contains the html elements for editing a room.
I would like add.mvc to create a new empty Room class and inject a new identical (but empty) control below the existing ones. Currently, though it opens a new page when the "Add a Room" button is clicked.
I have a VS2010 project that I want to move back and forth between an x86 and an x64 machine. On the x86 machine, several assemblies are located in Program Files, and the path of the assemblies are shown as c:Program Files...... When I move this project to the x64 machine, the same assemblies are located in C:Program Files (x86).... Is there a way that I can confugure VS2010 so I don't have to manually change the path when I move the project from one machine to another?
View 1 RepliesI'm using both spark and .aspx view engines. My partial is in aspx so i'm tring to call from my spark engine.
I've seen something like the following
${Html.RenderPartial("HeaderControl")}
Seems like i'm missing a reference, can't really see what.
Dynamic view compilation failed. d:WebsiteViewsRetailerIndex.spark(11,23): error CS1061:
'System.Web.Mvc.HtmlHelper' does not contain a definition for 'RenderPartial' and no extension method 'RenderPartial' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
spark
<use namespace="MvcContrib.UI"/>
<use namespace="MvcContrib.UI.Grid"/>
<use namespace="MvcContrib.UI.Pager"/>
<use namespace="MvcContrib.UI.Grid.ActionSyntax"/>
<viewdata model="EStore.Domain.ViewModel.RetailerViewModel"/>
<content name="MainContent">
${Html.RenderPartial("HeaderControl")}
</content>
how to fix "Method not found: 'Void System.Web.Mvc.ViewContext..ctor(System.Web.Mvc.ControllerContext, System.Web.Mvc.IView, System.Web.Mvc.ViewDataDictionary, System.Web.Mvc.TempDataDictionary)'." exception. This solution doesn't work http://dotnetslackers.com/articles/aspnet/installing-the-spark-view-engine-into-asp-net-mvc-2-preview-2.aspx.
View 3 RepliesI'm trying to render a partial view as a string so it can be returned as HTML to a jquery ajax call. After a lot of searching I found this code.
public string RenderAsString(string viewName, string modelName, object model)
{
// Set up your spark engine goodness.
var settings = new SparkSettings().SetPageBaseType(typeof(SparkView));
var templates = new FileSystemViewFolder(Server.MapPath("~/Views"));
var engine = new SparkViewEngine(settings) { ViewFolder = templates };.......
I was going through the spark view engine documentation and found a lot of literals showing up in code for which I couldn't find any references. For e.g. ! , #, $ , !$ , ... What are these for? What do the combinations mean? When do they come into use? Am I missing any more literals that precede or comes after {
View 3 RepliesWill 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?
View 3 RepliesHow do you modify a ASP.NET MVC 2.0 project to work with the Spark View Engine?
I tried like described here:
[URL]
But somehow it still tries to route to .aspx files.
Here the code of my global.asax:
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(.......
I am looking for a way to save index information when iterating through items in a ASP.net MVC 2 using the SPARK view engine. I often have a partial view that iterates through items and a button to add new items.
I want to save the index after displaying the existing items and then pass it back to the same partial view to create and display a new item.
For instance:
<div class="small">Enter the rooms associated with this facility.</div>
<div class="add">
<div id="rooms">
<AddRoom each="var roomModel in Model.FacilityRooms" RoomModel="roomModel" Index="roomModelIndex" />
</div>
<div class="add">
<a id="addRoom" class="add" href="events/room/add.mvc">Add a room</a>
</div>
</div>
<p>
<input type="submit" value="Submit" />
</p>
</form>
I would like to save the Index from the AddRoom loop and use it for the "Add a room" button which calls the AddRoom view again with a blank room object.
I try to use HtmlHelper.TextBoxFor with spark view engine but view crashed with exception "Dynamic view compilation failed. 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'TextBoxFor' and no extension method 'TextBoxFor' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found(are you missing a using directive or an assembly reference?)".
It is my _global.spark:
<use namespace="System"/>
<use namespace="System.Linq"/>
<use namespace="System.Text" />
<use namespace="System.Web.Mvc"/>
<use namespace="System.Web.Mvc.Html"/>
<use namespace="System.Web.Routing"/>
<use namespace="System.Linq.Expressions" />
<use namespace="MyModels" />
In spark-view using:
${Html.TextBoxFor(m => m.UserName)}
I'm currently using ASP.NET MVC 2 and the spark view engine. The main master page (application.spark) contains all of the CSS link tags that need to be present for all pages (global stuff). However, I have some content pages that have page specific CSS tags and currently I'm just sticking the link tag in the body as something like:
<content name="MainContent">
<!-- page specific csss -->
<link rel="stylesheet" href="/Content/css/page_specific.css" />
My problem is that when the page renders, this tag ends up in the which is not where it needs to be. Is there a solution for this?
I had was to check the controller in the Application.spark page and write out which page specific css file is required for that particular controller, however, that solution doesn't seem to scale well and I would imagine there is some way of creating the link in the child page and having it render where it's supposed to by the browser.
I have a Access program in which there are a lot of queryes, forms and reports.Is it possible by clicking a button in a ASP.NET PAGE to let user run Access program, such as enter parameter to open Access report?After running Access report, close Access and back to ASP.NET page.
View 1 RepliesI would like to program MicrosoftReportViewer. I couldn't try to find a sample/tutorial online.
View 2 RepliesIs there any way to convert C++ program into ASP.NET?
View 2 Replieshow to Design web program (asp.net) ? I'm used to WinForm Design when i drag any control to the screen - He did not refuse me but in asp.net (web Design) the control Do not want to settle where i want. i came from the WinForm world and now i do my first steps in the WebForm.
View 3 RepliesIs there any way I can call a SAS program from ASP.NET? I am developing a web-based randomization system for block randomization. I did some googling and I did not get any article on block randomization using ASP.NET But, I got an article on SAS. [URL] So, I am trying to use SAS and ASP.NET. How can I call a program written in SAS from ASP.NET?
View 1 RepliesIn my office I am the only Web Developer. There are no other Web Developer.
I was confused by my co-worker programmers regarding the meaning of Code Behind. They told me there is no such Code Behind.
highlight which is CodeBehind from these 2 sets of sample coding:
these are from HTML
[code]....
Of the 2 sets of sample cpding which one is called CodeBehind ?
I'm attempting to deploy my new MVC 2 app to a windows server 2003 box (IIS6). The app is on it's own web site, scripts and executable rights given, asp.net version set at 4.0.30319. ASP.NET MVC was installed via the web platform installer and server was since rebooted.
I've used this technique in the global.asax to put ".aspx" in the URLs:
[Code]....
No matter what i do I still get an error on Browse: "This Program cannot display the webpage." Times out in Firefox. This is constant if i do wildcard or .mvc mapping, suggesting it is an IIS problem.
Nothing in the event viewer that displays any info or any error.
Is there anything extra special that needs to be done to get IIS to recognize MVC?
I am volunteering to build a web application for my town's library. When I finish it I want the librarian to be able to run it from the desktop, but I know I have to enter MS web developer and then press run in order to start the server, and just then the web app can run.
How do I run the web app. without entering the program?
I am learning C# in Visual Studio (VS), and in VS i have successfully made different 'projects' under the 'solution' for each fo the samples in my C# book as can be seen here:
[URL]
the thing is when i press the green play button to run the debugger/program, it always executes "ConsoleApplication1" (look at the above image) when i want to try out the new application i wrote (named ConsoleApplication3)
How do i do that?
so I'm in a strange development situation and am a noob at the bits I'm tasked with - just to make life fun and interesting.
My fellow developer has written programs in VB.Net and placed them on the server. He wants a web front end that users can click a link and have that run the program on the server.
Sounds simple, but I've spent days searching the internet and found only two solutions one of which looks sketchy on security and the other is so complex I'm not sure how to make it fit my local variables.
I'm writing ASP.Net on an MVC Framework using C#.
So, in terms for the simple minded to understand, is there a way to do this? Are there links which I used the wrong keywords and completely missed?
i'm trying to send faxes with a asp.NET (C#) program , Can you please suggest any reliable third party control . Need to generate PDF and send it via Fax in my web application.
View 2 Replies(1) Customer would like data resides with their machines/server without expose the data to internet
(2) I want ASP code resides in remote PC in my office
So the idea is they access (via internet) my office PC/server with ASP codes on it and use the software, and the client PCs use data on their own server and these 2 combined to produce the result. I know this seems impossible but any idea to fine tune and still achieve (1) +(2) practicably?
I will receive an XML file from an application which I am using. The result will be in alphabetical order. I want to read the titles andput it in a different order which my client is interested in.The result should be in EXCEL format. Can anyone help me with a sample program,
View 13 Replies