C# - Building A Forms System Using DDD?

Feb 25, 2010

i'm building a form managment system, thats is, the system will contain many forms, will save them, and perform logic on them, I want to do it using the DDD approach.

I want to support easy form layout later on using ASP.NET MVC, so far i see the domain like this:

I'll have a base form entity, which should(for now) have a name, fields(and theire values) and validation logic.

My questions are:

How should i write the field valueobject using generics? i cant seem to figure it out.. Should i encapsulate the validation logic inside the form or do it using the specification pattern?

View 2 Replies


Similar Messages:

Web Forms :: Do Need To Run Compiler.exe After Building The WAP

Mar 10, 2010

I'm having trouble with a WAP (web application project). It builds fine within studio (and it uses a number of other assemblies which build before the web application). However, I've always used aspnet_compiler to publish web sites in the past which is then deployed to the server. So I'm building the WAP solution (including assemblies) then publishing just the website folder and not the assemblies within the solution.1) Do I need to run aspnet_compiler.exe after building the WAP. I guess the WAP build causes the bins to be created correctly but the ASPX pages are still uncompiled?

View 9 Replies

Web Forms :: A Building Map For The Company?

Nov 8, 2010

I need to make an asset map for the company. Some squares that contain text should pop-up whenever the user hovers on the predefined points in the map/image itself. upon clicking on the square that pops up, the user should be linked to another page.

I found this on the web, http://www.obout.com/em/ex_imagemap.aspx#top, are there any other ajax or built in controls within asp.net which can do a similar things?

View 1 Replies

Web Forms :: System.ArgumentException - Can't Convert To System.Int32

Dec 16, 2010

i work with visual studio 2005 and asp net 2.0. i have a method method as this :

[Code]....

this problem is follow if i run the web method and don't enter a string and a int a receive this message : System.ArgumentException: Cannot convert to System.Int32. ok when i arrive in the method i can check if lists is empty but how i can do if int is NULL because i don't want to returns a error if people run my web method and don't enter the parameters.

View 2 Replies

Web Forms :: Dynamically Building Controls?

Apr 23, 2010

I need to dynamically creates form with textboxes, dropdown list, required validators from database.Anyone has any idea on the best approach to do this? Can you please show me link to example, tutorial?

View 3 Replies

Web Forms :: Building File Path For Hyperlink?

Feb 16, 2010

I am storing one file per user on the server file system.

The path for each user is different and looks like this:

"~/resumes/<userName>/<userName>.xxx"

I ma able to get the path correct up to the filename, meaning I can get this to work: "~/resumes/username/" however I am missing the filename.

I am building the path to the users folder without a problem, however the file can be one of 3 types: doc, docx or pdf I need to know how finish my path for my filename. I have no way to know what files as been uploaded, it can be one of the afore mention 3 file types. How do I get the full fuilename to finish my path?

I have included my current code for reference.

[Code]....

View 2 Replies

Web Forms :: Building A String From 2 List Boxes?

Jan 13, 2010

I know this is kind of simple in my head but the logic has been driving me nuts going through it. I'm trying to build a string from 2 list boxes. Once they select an item in the first list box (that's pulling the list items dynamically from a database), then the second list box appears. Once they select the second list box the video player below it displays a flash video that they chose based on which camera and the date/time of that particular camera. The path for the flash video (.flv) is in the database. I get everything to work up to displaying the flv player but it doesn't play the video since the path to the flv isn't there. Here is the code I currently have along with the queries.

[Code]....

View 10 Replies

Web Forms :: Event Handler Used In BLL When Building A PlaceHolder

Mar 3, 2010

My goal is to move as much code from the code behind page to the business logic layer. I'm having trouble with an event handler because the code can't see the method it will call (because the method is on the code behind page and the code in question is in a class in the BLL). CS0103: The name 'ButtonClick' does not exist in the current context (the error) b.Click += new EventHandler(ButtonClick); (the line)

Right now I'm considering to try it by adding the EventHandler from the code behind page after the PlaceHolder has been sent to the code behind page, but I'm wondering if I'm missing a better way. Is there a best practice for how to deal with this? Do I throw in the towel and just let the PlaceHolder be built on the code behind page (where it works fine)?

View 1 Replies

Web Forms :: Find Error While Building A Website?

Nov 13, 2010

I cant able to find the error page while building a website.

See the above 3rd line error in image.

So ,how to know where the exact error is occured.

View 13 Replies

Web Forms :: Building A Rich Internet Application In .net?

Sep 11, 2010

Is it possible to develop something like this with asp.net, html and javascript?

http://www.gsk.com/annualreview2009/

i think this website is developed in flash with actionscript.I dont want to use Silverlight or Flash . what are the other options i have?

View 2 Replies

Web Forms :: Building A Form That Will Download Any File?

Jun 30, 2010

I have an idea of how to do what I have in mind, but I would prefer to ask for some advice just in case anyone can think of a better way.The idea is a simple application where administrators can upload any kind of file. Once the file is uploaded, they give out a username and password to a client, and the client will then access a private area where they will be able to view specific files available for them. ALL THIS IS DONE. My question is... because the browsers can process certain type of files (for instance a JPG or a PDF), they won't automatically prompt the client to save it on their computer, and they will open int he browser. I have solved this issue before by adding a few lines of code to the Response and modifying the content type, something like: Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=logo_large.gif"); Response.ContentType = "image/GIF"; Response.WriteFile(Server.MapPath(@"~/logo_large.gif")); Response.End();However, that would mean I'd need to change the content type for each file (JPG... GIF... PDF ... WORD FILE). So I'd need to find out the content type for each one, and dinamically change it. This way it would force the download for all files. Now... is there an easier way? Remember that I need to have many different type of files, if it was only JPGs for instance, it would be easy.

View 2 Replies

Web Forms :: C# Getting Listbox Selected Item Without Using System.Windows.Forms As Need To Use System.Web

Feb 4, 2011

im tryign to move a listbox item from one listbox to another heres my c# for moving from populated listbox to unpopulated

[Code]....

when i run the addtable function on one of my buttons it doesnt work, so i tried just outputing to a label the value of the slected item, didnt work

i opened google chrome console to find the below which led me to belive i need to add System.Windows.Forms; to get it working?

ScriptResource.axd?d=eapqzlwXhBFph23Pl_2pOrzTVt5-WN-w1AJhJtJAxUGjg5h6xiIW5VowmUQ2aKwAieU-I4882cg5dWnZWQpkyvximpbl-emU1vXDRe137NMq7e8sEJ6W-wJLYpPH8ryr7g79lqLpeL1CaNGbVvthubXLUxDQz86JoZP_jf82s1h2aflGevqjjph2odUMt3SI0&t=2610f696:868Uncaught
Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException:

Object reference not set to an instance of an object.

View 6 Replies

Web Forms :: Building Dropdown Listitems Based On Single Value?

Jan 5, 2010

i have a procedure on my page that returns a number, i need to use that number to build a drop down with that many items.Example:Returned Value: 5

DropDown Values:

1
2
3
4
5

View 5 Replies

Forms Data Controls :: Building A GridView Programmatically?

May 9, 2010

I have problems building a GridView programmatically. My code is:

[Code]....

This displays the GridView with the following problems:

1. The Html constructed in the Subject column displays on the page as raw Html. The source code shows the Html characters in their ASCII form. The function HTMLEncodeSpecialCharacters is obviously incorrect.

2. The PagerSettings display the page numbers only (1 2 3 4) and not the First and Last text (want to display << 1 2 3 4 >>) despite setting PagerSettings.Mode = PagerButtons.NumericFirstLast.

3. Clicking the page numbers is always one page behind. For example, when the page is opened, page 1 displays. If I click 2, page 1 still displays. Then click 3, page 2 now displays. Click page 4, 3 displays. Click 2, 4 displays etc etc.

4. The column headings are aligned in the centre despite setting HeaderStyle.HorizontalAlign = HorizontalAlign.Left.

View 10 Replies

Forms Data Controls :: Building Gridview In Codebehing Using C#

Nov 4, 2010

i wnt to creat a EDITABLE GRIDVIEW , in code behind ( not using sql data source or anything ) want everything happen in code behind using C#

View 2 Replies

Web Forms :: Event Handler - Building Usercontrols For Something Like A WebSite Kit

Jan 18, 2010

i've got a weired problem using an event-Handler in a Usercontrol I built. The Question to this is pretty simple. I don't get the "SelectedIndexChanged" Event on one of my ListBoxes which I turned to a Multiselection Dropdownlist with jQuery. It's a simple ListBox which should return the new values and should fire the "SIC" Event right? But it doesn't. I don't even get the new values as I try to change values and then read them. I spent more then 2 days searching for an appropriate answer but didn't find anything. As I tried to build a WebSite using some Usercontrols combined with AJAX I'm thinking about letting the Usercontrols out.

View 3 Replies

Web Forms :: Building Quad /Binary Tree From DataBase?

May 18, 2010

I just want to build a quad/Binaray tree in my Webform the data is collected from the DB how it is possible.

Now i am bulding a sample application that deals the all activites of chain marketting(network ) marketing system here i have to build tree from the data base to webform for displaying the bussiness growth of a customer.

SRS:Each customer can add 4 child under his name .My Table format is follow

Table Name:tbl_bussinessData

perentID:-store perant id

leftMiddle:store the iD of first child

left:=store the ID of Second

rightMiddle:=store the id of Third Child

right:=store the id of fourh child

from this structure of Database how i can build a tree upto 10 level or give some advice in DB desin or show some Example

NB:Not drawing or implimenting Binary DATA STRUCTURE

View 1 Replies

Forms Data Controls :: Building A Treeview Dynamically From SQL?

Jan 25, 2011

Need to build a treeview dynamically from SQL data. I have 2 tables Project and SubProject.

A project can have many sub projects...

I need a display like this....

Project 1
subproject a
subproject b
Project 2
subproject c
subproject d

View 6 Replies

Web Forms :: Building Questionnaire Application With One Question And Four Options

Feb 4, 2013

i have a task, online test. 15 questions stored in database , and also answers.

it has 4 options, a, b, c, d. for a particular question how to fil values in respective options from database.?

and also how to move to next questions, by clicking next button

View 1 Replies

Web Forms :: Favicon Data Invalid - Getting Error On Building Report

Sep 14, 2010

I have an image that was a gif and saved as a favicon.ico. I get an error when I build the project that says data is invalid for this. What does this mean? Is it corrupted?

View 2 Replies

Forms Data Controls :: Building Gridview With Text Search Criteria?

Mar 13, 2010

I have gridview that I am filling with records from SQL database. However, I want to populate the gridview with records that match text search criteria. In other words, I want to be able to key in a word like "network" in a text box, pick up the text, read records and pick up on the records that match that criteria. I am doing fine with building the gridview but I am a bit new to this and I don't know what I do to do text search.

View 3 Replies

Web Forms :: Building A Website For Displaying Latest News And Updating Same Periodically?

Nov 24, 2012

I am required to develop a page for news updates where user of the website can see the latest news updates with images in hindi. Like some news paper website. [URL] ....

When user click on the read more or on the title of the news complete news will displayed on news on new tab.

when admin of the website update the new it will appear on the page. where recently updated news is display first position.

admin of the website have authority to do following task

1. update the news.
2.edit the news.
3.delete the news

Can i make use of sqlserver for storing the news or xml.

View 1 Replies

Forms Data Controls :: Unable To Cast Object Of Type 'System.Web.UI.LiteralControl' To Type 'System.Web.UI.WebControls.TextBox'

Jan 5, 2010

Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox'.

[code]....

View 3 Replies

Forms Data Controls :: Unable To Cast Object Of Type 'System.DBNull' To Type 'System.String'.

Oct 1, 2010

Basically, what I did is that: I have a table in SQL database and some of data fields allow null. I built Objectdatasource through dataset. When I built update page using dataset. It generate the following error before showing the update page correctly. It seems I have issue to retrieve the null value from the database through using objectdatasource through dataset. Any suggestions?An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code

View 6 Replies

Forms Data Controls :: >>Object Of Type 'System.Boolean' Cannot Be Converted To Type 'System.Byte[]'?

Sep 30, 2010

I am trying to upload a picture into database using FormView insertItemTemplate. FormView is bounded by objectdatasource.To upload, I placed FileUpload control inside insertItemTemplate.In table the dataType is image.Error:Object of type 'System.Boolean' cannot be converted to type 'System.Byte[]'.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved