Architecture :: Finding Polymorphism Real World Example
Jun 17, 2010Can you give me an scenario example how you have used polymorphism in your project. With new and override keyword.
View 2 RepliesCan you give me an scenario example how you have used polymorphism in your project. With new and override keyword.
View 2 RepliesCan you give me an scenario example how you have used polymorphism in your project. With new and override keyword.
give me an example from a finance domain/ecommerce domain. I am looking from a UML Model Perspective.
How do I properly conver my string value I am getting from xml?
[Code]....
Just Convert.ToInt16(CustomerId); did not work.
develop a user admin application.My schema looks like the following:See full size As you can see I've got my own version of the user table and profile tables to store my data with a one-to-one mapping with aspnet membership tables.I'm interested in using ASP.NET dynamics to speed up the proccess of creating an admin system.
I would like to create a customised listing with a search and a data grid listing with just basic details such as name and state information, date registered and then when you click to edit your presented with the domain representation of the data and not the exact undelying data.Has anyone any experiece in doing this or building a real work application with Dynamic data?
Following is my case in detail.I have a class against which I will configure an objectDatasource(I have a datatable in the class which the data will be initially loaded from the database.)A gridview which has provisions to add/update/delete records will be bound to the objectdatasource
My methods i.e. insert/update/delete will be manipulating the datatable and NOT the database directly(I DONT WANT TO CONNECT TO THE DATABASE IN THESE STEPS. THE REASON IS THAT THE INSERTS/UPDATES/DELETES WILL BE PERSISTED ONLY WHEN THE USER CLICKS A SAVE BUTTON(MAY BE PLACED OUTSIDE THE GRID) . My class to which the objectDatasource points to will have anadditional AcceptChanges method which will be called on clicking the save button. This method is the one which connects to the database and where the adapter.update will be called.The query here is that how do I call the AcceptChanges method of my class instance which is bound to the grid? Also I would like to get some websites where I can see the real world implementations of gridview(with insert/update/delete options) so that I can improve my implementation.
I am wondering how is the real-time notification in facebook achieved? What kind of technologies are required?
Another question: I have a asp.net website and a back-end processing software. I want the back-end processing software to comunicate with the website so that the website can dynamically update the page. I am thinking that web service may be the solution. Is this right?
I need to build a system which needs to show data on almost near real time basis from a MSMQ data source and this sould be showin in image with a circle as to where the incident occurs.
This is the description given.
The position of the Incident relative to the 123 mark is requested to be represented on a circular concentration diagram .
The algorithm will have to export the location of each incident relative to the 123 mark in polar coordinates (r,θ) and translate this position to the 'master image' coordinate system that will display Incident location.
I have two questions.
1. How can i show the data in an Image and also please point me to any material which might help me with the same.
2. How do i show almost real time data from a MSMQ data source and also how do i architect the same for performance.
What is the use of abstract class design in real time projects
and how to use abstract clases and interfaces
and inheritense concepts
like big shoping portals or content managment,blogs etc
I'm trying to build an app that simulates "real time" playing, but without Peer to peer. OK so I have a front end built in flash and a back end built in .NET. My concern is that my flash calls a .NET web service every second to check for events in the databasrelated to the specific user in the session. I've seen other scenarios that make posts to the sever every second to have a really precise control... like Bwin casino games.So... Would this have a huge impact on the server? Users bandwich? What the call to the webservice does is check a table in MySQL database to see if there are any events related to the user, and if there are, I get the information and render in flash... Such as new online users, messages, challenges, news ... etc.
View 5 RepliesHow many tier architecture are there for ASP.NET?I know only one that is three tier architecture.Can anyone tell briefly about 4 tier architecture and other tier architecture?
View 6 RepliesI am searching for what are the standard best practice (for OOP) used to design classes for develop asp.net application? I am aware of most of the OOP concepts but confused with how to map object/classes.
Let's take example of Adventure works - 2005 database provided by Microsoft; it has five schemas Sales, Purchase, Person, Production, HR and DBO.
Should we consider Schemas as Namespace in Classes?
Now, Person schema has 5 tables, should we design classes based on tables?
i.e. Person schema has Address, AddressType, Contact, ContactType, CountryRegion & StateProvince tables. What are the classes we can consider?
What are the basic criteria to decide objects? What to do and how to design classes for tables like Purchase order detail, Product cost history, Product inventory, Product Category etc.
I am Developing a mid-size application and want to implement Application Architecture, I've read some Architecture Books and Approach and think about
AAFN (Application Arcitecture For .net) presented by Microsoft
SOA
SDLM
SDO
MVC
and vice versa ...
this is a web application that will extended with some other small application ( just think about something like a M.I.S with a (or two) core)
Whitch Projects I should have I think about
Common // to use in all projects
Framework // main framework
DAO // data access object ( entityframework or nHibernate )
UI // will available in 2 variant web and windows(wpf) interface )
BusinessEntities // all subApplication project logic will goes there
ApplicationNameProject // each application have their Own Logic (in BussinessEntities)
ApplicationUnit // each application Entity will place here
ApplicationNameProject // each application data Entity (in Application Unit)
Services // WCF Services goes here to contribute with all applications
this is the architecture witch I think about, I do not have any force to use this, I want to know whats the best fit for me, can Change all of it or add some other projects and remove these projects
find a free 3-Tier Code Generator for asp.net .
View 2 RepliesSo I started working on my first asp.net application that involves logging in and databases, and soon after i started messing around with a static class. I "discovered" that if you make a variable static, all sessions share that variable (I for some reason was originally assuming that each session had its own copy of that "static" class). Anyway, after discovering this I thought to myself "how could this possibly be useful to me" and thought that itmight be a good idea to make a single static database connection for all of the sessions, rather than storing that as a session variable for each session. Does anybody know what would be the pros and cons of this approach?
View 5 Replies[Code]....
polymorphism and databinding to a datagrid?
I am having a problem understanding how polymorphism works when using generics. As an example, I have defined the following program:
public interface IMyInterface
{
void MyMethod();
}.....
So, at least I haven't completely misunderstood that. I am unsure exactly how I am to write a method that accepts a generic collection of classes that conform to the same interface.
I have a plan to completely hack around this problem if need be, but I would really prefer to do it properly.
My client has customers in 100 countries in which a customer can have access to more than a country. So, to show visual appearance to the customer, our client want to show world map and fill each country with a different color where the customer has access to.
Is there anyway to do this in ASP.NET?
If not ASP.NET, Is their any third party which does this stuff.
I have uploaded a simple hello world on my IIS server 7 (shared hosting). It doesn't work. Is it necessary to add a web config and what's the minimum in that case ?
Error says:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Here's the script, very basic :)
<%@ Page Language="VB" %>
<html>
<head>
<title>ASP.NET Hello World</title>
</head>
<body bgcolor="#FFFFFF">
<p><%= "Hello World!" %></p>
</body>
</html>
I have my asp.net application with ms sql 2005 express.. in my localhost...
Now i have requirment with my boss i need to show this webpage to access all over the world...
i have bought asp.net webspace with hosting provider without database...
he has given me the some ip XXX.XXX.XXX.XXX where im going to log on my cpanel...
so i would like to know how to access my database with my asp.net application which is in hosting company....
i would like to know step by step configuration... to ms sql 2005 database...
I just converted an ASP.NET Web Site Project to a Web Application Project in VS 2010. After I run the application though it seems that my class polymorphism broke. I don't have a clue as to why this could occur.
So in the following code when I call base.OnLoad(e) I am getting errors in the base class because the variable myString is null. In fact all the variables for the Base class are null. I can do
[code]....
What my clients are used to: VB6 app running locally - can produce reports and labels directly to printers. How do I take that same user now in a web page and have them get that same report or label sent to a printer? Do I need to make a little VB6 or VB.Net app that sits locally to receive the DATASET and perform the print formatting? I should mention that all the print formatting information is in a table in the DB anyway. Or do I need to make PDF's or some other kind of document format on the server and send that to the user from the webpage.
View 2 RepliesI want to know how to get the unique address of PC over the internet, LAN,WAN,Without any network connection,Coz For Some Security Reason...
as well as i want to know about the following....
Windows IP Configuration:-
1. Host Name
Ethernet Adapter Local Area Connection:-
1.Physical Address (MAC Address)
2.IP Address
3.Default GateWay
4.DHCP Server
5. DNS Address
I want to know unique Address for PC which should not be the same address for other PC Around The World...
Coz MAC Address also can be change.. so how to know the unique address how is accesing my Website..
I am having a hard time searching for what I am trying to do (don't know the right key words for it). here is what I want.1) web form aspx page that will have a list box (data comes from database) for example: I will have in the list box text1,text,text3..... this is easy2) after user selects text1,text2, I want to be able to give the user the option to export text1 and text2 to a world document or pdf. the hard part that i don't know is, I want to give the user the ability to format the document for example: text1 should be on top of page 1 and text2 should be in the top of page 2 then do the export. is this possible? is there anything out there that i can use?
View 10 Repliesi want to find the country name from the world map:Description:1. I want to show a world map.2. I have lot of branch offices all over the world2. On the world map where ever the user is clicking then display the clicked location branch office address.
View 7 RepliesI've been a VB programmer for years, and friend asked me to write a program that does data storage and is executable from PC & MAC browsers. It seems like I need ASP.NET for this, so I tried to write a server-side 'hello world' ASP.NET program. I did this using VWD 2010 Express, and after successfully 'building' the website, it works great if I view it on the development machine. But when I copy it to my web server (running on a Windows XP Tablet machine) and try to view default.aspx, instead of getting a nicely-formatted page, my browser (IE8) is displaying the HTML source code. I tried hosting the site on both Apache and IIS , and I'm getting the same results.
1. What am I doing wrong?
2. Is ASP.NET the best platform for building a database-based application that can be viewed from both PC's and Macs? If so, should this work from iPads / Safari as well?