Hi ,
I am trying to use Channel Factory and caching it in my asp.net mvc.
I am using PerSession Instance mode as I need to know the state.
Because of this I cannot close the proxy immediately. And I dont want
to reopen ,close proxy everytime.
If I leave the proxy open it is timing out at the 12th time. I can
increase the concurrent sess...
I'd like to create columns of links in an MVC2 view, like this:
a g m
b h n
c i o
d j
e k
f l
I could build a table row by row, doing some math to determine which items should be in the row, or I could build a table per column, but I'm hoping there's a simpler way to do this.
Is there?
...
I'm passing an XElement to my Edit view and want to have the usual HTML controls built for me and correctly named. The code I have is:
...
<div class="editor-label">
<%= Html.LabelFor(model => Model.XPathSelectElement("site[@id = 'customerName']").Value)%>
</div>
<div class="editor-fie...
I'm new to web programming, right now, I'm working on on a Web Based Survey Application on which I want to utilize XML.
My Questions are the following:
Using ASP.NET MVC, how do I return an XML File from the database to the Client?
Usually, where does an XML file reside on the Client's directory and how to I locate it using JQuery or ...
Hi to all,
Basically, I have an HTML Form and would want to pass the data from the form to n asp.net mvc controller, then the controller would return an XML for client side manipulation.
Here is my initial code:
Client:
$(function() {
$('#btnSubmit').click(function() {
$.post('/Home/Create', $('form').serialize(), functio...
Hi everyone,
With asp.net MVC 2, I have been trying to get Matt Hawley's Localization helper to work in my web application, but I am getting stuck feeding a null into the Language string variable. I can't figure out why I am doing this.
namespace MvcLocalization
{
public abstract class LocalizedControllerBase : Controller
{
public ...
Hi,
So I've eagerly added the System.ComponentModel.DataAnnotations namespace to my model.
I've added things such as:
[Required] [DisplayName("First Name")]
public string first_name {get;set;}
I really like these attributes because they save me from having to write custom T4 and/or modify views heavily. This way, I can regenerate a...
Hi,
I have a controller with the following actions...
public ActionResult YellowList()
public ActionResult RedList()
public ActionResult BlueList()
All these actions populate the same viewModel (ListViewModel).
How do I get them all to point to the same view (aspx)?
Thanks,
ETFairfax.
...
Hello,
I have some problems on passing an id from URL into my controller action
Lets say I have this Url : Bing/Index/4
In my master page I would like to generate a form that submits to BingController SearchAction. I did something like this
using(Html.BeginForm<BingController>(action => action.Search(id)))
How to get id (4 in this e...
All,
My PHP Zend MVC Application structure is like this:
billingsystem
-application
-design
-public
--index.php
--.htaccess
-library
-- Zend
whenever the application loads, it goes to index.php in public folder and it gets rerouted from there.. I want to make sure users to access the system by going http://billingsyste...
Hi.
I have created an application with a modal view that I can display and then dismiss. Is there an easy way to know when the modal view has been dismissed? I would like to reload the data in a table once the modal view has been dismissed and don't know the best way of doing this.
Thanks
...
Let's say I have some classes implementing interface Item and another class MyItemCatalog that implements interface ItemCatalog which contains a complex hierarchical database of Items that I want to give the user an opportunity to select interactively.
What I would like to do is to have an ItemSelectionDialog which can be instantiated i...
I'd like to have a section of my page where, lets say, some basic contact fields can be entered. Without having to hit the "Save" submit button, the user can add more contacts by hitting a "+" button, which adds more fields to the page.
This would be fairly easy in standard web forms, but I'm a little lost as to how it should work in MV...
I'm trying to wrap my head around implementing MVC with as much useful abstraction as I can for purposes of automated unit testing. In the process, I came up against an interesting conundrum: How and where do I declare the mock object for my database?
Here's what I have.
ContactView is a form that implements IContactView. It has know...
All,
My Zend framework Application structure is like this:
billingsystem
-application
-design
--css
--struct.css
--icons
--styles
--images
--js
--common
--thirdparty
-public
--index.php
--.htaccess
-library
-- Zend
My Apache VHost is like this:
<VirtualHost *:80>
ServerAdm...
Hi,
I created a report in Report Viewer using the source 3 of 9 barcode, (for bar code), put the font in the Fonts folder in Windows. But the export to PDF the font does not appear, but now when I export to excel is perfect.
Does anyone have any idea what can be?
I'm using VS2008 - MVC - LINQ and C # language.
Thank you,
...
Should entities know how to draw themselves? I've used this approach: it's simple and it works, but after learning MVC-patterns I feel uneasy about this. It's hard to change the art style when all the display logic is buried in the model.
One could introduce a view class, which takes the level as an argument and draws it, but this would...
All,
I want to redirect all traffic that comes to http://mysite/ to http://mysite/public folder. Currently I am doing this using the below in an .htaccess file and it works for the root directory. But if I browse to http://mysite/application, it doesn't redirect and shows the directory listing. I want all traffic regardless of what fold...
I am trying to get JQuery events to work with partial views in ASP.NET MVC. However, after you load a partial view through Ajax, JQuery seems not able to fire events for any of the elements in the partial view. I suspect that this issue will also happen if you are using other frameworks or JavaScript libraries to load partial html code w...
Im running an ASP.NET MVC application hosted with Mosso, there are telling me that they cannot enable DTC because they run everything in medium trust.
So when executing code that references: TransactionScope I get the following error. The transaction manager has disabled its support for remote/network transactions. (Exception from HRESU...