|
Personally I hate the menu editor as it sits today. It is a real pain in the butt to use when you need to build them menu and then go back and set properties on it, etc... Just a big pain.
I am a much bigger fan of the interface used for edit toolbar buttons really. Just give me a separate window with a tree view and a property grid. Seems much more effective that using in-place editing for the menu items.
Just MHO.
|
|
|
|
|
My bad not stating it's an ASP.NET menu control I want to make editable, so it already renders a left hand, vertical tree structure that I would like to use for editing, also with a property page in the main pane.
|
|
|
|
|
I'm curently trying to simplify testing in my company by enabling the use of the command pattern.
So I need:
Command - interfact/abstract class defining public contract for concrete commands
ConcreteCommand - and command to use
Receiver - class that receives command to execute
Invoker - class that invokes the command on the receiver.
Ok so this is all standard GOF stuff, where I'm scratching my head is the implementation of the command and receiver classes.
We use selenium for testing the web apps UI and will make a call something like:
selenium.Click("link")
or
selenium.GetXPathCount("//div[@id='ctl00_MainContent_pnlWork']/table/tbody/tr")
What I want to do is enable a developer to create a command to perform a selenium action such as the code above (ok technically they're 2 different commands since one has a return and one doesn't) but I don't want to have to create a concrete class for each type of selenium action i.e. method but at the same time in my receiver class I don't want to have a huge switch statement that caters for each type of command.
I didn't want to pass the receiver to the concrete command object as I have other types of command I need, such as db commands, which need different receivers and where possible would like to use a generic interface for the receivers to enable easy expansion in the future (I already have 3 potential receivers and this may grow).
I'm using C# and Asp.Net with the .Net 3.5 framework.
Any help appreciated.
|
|
|
|
|
Lowest of the Low wrote: Any help appreciated.
Ok, I suggest you ask at least one question. That way people here might be able to help you.
led mike
|
|
|
|
|
Thought I had
To be clear I'm asking the best way to implement the ConcreteCommand & Invoker (which sort of go hand in hand as command passed through needs to be interpreted by the invoker).
Once specific example of this is utilising selenium and being able to pass a command to an invoker than will execute that command by calling a method on an instance of the selenium.
Hope thats clearer.
|
|
|
|
|
Lowest of the Low wrote: To be clear I'm asking the best way
My experience in forum discussions on design issues indicates that it's normally not possible to gain sufficient understanding of the problem domain (due to the limits of text messaging conversations) to definitively know what the "best" solution is. Most likely what you can get is some ideas. Some may not be based on a correct understanding of your problem domain and therefore won't seem very good to you because you do have a more comprehensive understanding of the problem domain. Ultimately it will be up to you to determine which is the "best" solution.
Lowest of the Low wrote: but I don't want to have to create a concrete class for each type of selenium action i.e. method but at the same time in my receiver class I don't want to have a huge switch statement that caters for each type of command.
Keep in mind what I said above about not having a clear picture, but that statement seems to say something like, we have options A and B and I don't want to do either. So I guess you are asking if someone knows of a another option. I suppose delegates or since you are in 3.5 maybe Lambda expressions could be leveraged to provide a solution that is neither a class for each selenium action nor conditional statements for each selenium action.
I am doubtful that delegates are superior to classes and I have not yet ventured into 3.5 and Lambda. However many people that have seem enamored with it, so you might want to spend some time looking at it.
led mike
|
|
|
|
|
Thanks for the feedback.
I think I'll post in the C# forum about Linq and see if anybody can offer some advice there.
|
|
|
|
|
Lowest of the Low wrote: I think I'll post in the C# forum about Linq
Dude, there's a LINQ and .NET 3.5 forum
Last modified: after originally posted -- hahaha Link! That was a good one!
led mike
|
|
|
|
|
If you're going to make a fairly simple website which will get many clicks/concurrent visitors, e.g. 20 000, which type of project in Visual Studio 2005 or 2008 is the best choice according to performance (fast response time), meaning will there be any difference choosing one type of project over the other?
Regards
Heidi
heidihundala@gmail.com
|
|
|
|
|
heidihund wrote: which type of project in Visual Studio 2005 or 2008 is the best
I have not used VS2008 yet but in VS2005 I am only aware of one option for creating a Web Project. Could you be more specific about what different options you are concerned about?
led mike
|
|
|
|
|
led mike wrote: Could you be more specific about what different options you are concerned about?
I second that. I think they want to know which makes a better web project, VS2005 or 2008, in terms of live web application. In theory, neither should be better than the other.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Please rephrase your question as to what you are trying to find out.
Also, putting your email address in your sig is opening you up to email harvesters crawling around the Internet.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I presume you are talking about the "Web Application" project type that was introduced in VS2005 SP1, versus the "Web Site" option? AFAIK, there is no difference in performance: they are both ASP.NET applications, just with different solution explorer rules. I may be wrong...
You might have more luck posting this in the ASP.NET forum[^].
----------------------------------
Be excellent to each other
|
|
|
|
|
hai
i m interested in creating a CMS in asp.net for my main project
anybody will tell me how to do it or any TIPS.
|
|
|
|
|
nibinki333 wrote: any TIPS
The first tip that comes to mind is, what if people don't know what your acronym means "CMS"?
led mike
|
|
|
|
|
What have you done or found so far?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
I need to create an application: upon user login, check the user type and decide the database that application will use for that user. Here is what I have:
1: Master database: stores user information and application configuration data, such as which db to use and connection string
2: Database I on server 1: contains all the application data for user group I.
3: Database II on server 2: contains all the application data for user group II.
4: Database I backup on server 2: as backup for user group 1 in case server 1 fails.
5: Database II backup on server 1: as backup for user group 2 in case server 2 fails.
6: Through log shipping between server 1 and server 2 to keep DB I and I and their backup up-to-date.
7: The web site is running on web farm. The session state management is using SQL server session state management, which is on the same server as Master DB.
My questions are:
1: How do I determine if server 1 or server 2 is down and it's time for application switching to use the DB backup on the other server.
2: What to do if the master DB server is down?
3: Is there a better approach than the above design to achieve the same goals: using different DB for different users, and achieving fast recovery by using the backup server?
I would really appreciate any suggestion and help!
Thanks in advance!
|
|
|
|
|
There are commercial products that work with Databases to perform mirroring, monitoring and automatic rollover on failure. Is something like that an option for you?
Trying to roll your own solution will certainly be a sizeable effort and you will likely not achieve the level of confidence a commercial product will have.
led mike
|
|
|
|
|
We just got the second database server and plan to divide users into two two servers. Unless the tool can utilize both servers, we will go with own solution. What product do you recommend?
Thanks!
|
|
|
|
|
and if the master database goes down....? :P
|
|
|
|
|
Hello,
I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but design that I am planning should support both version.
Development Environment : VS2008
Currently Database supported are MS SQL Server 2005 and MYSQL 5 and design for database support is extensible.
This application contains several high level modules (HLM) that can either share the data from the database of other high modules and some are totally independent modules.
Like say finance and project automation are not dependent on each other but finance and investments are. These are some examples of the modules that will be used in this the application.
For website version of this app,
Main Website will mainapplication.com and
High level module (HLM) will be having subdomain names like
hlm1.mainapplication.com ,
hlm2.mainapplication.com and so on.
Database Name : mainapplication
Now for desktop version should I create different <hlm> EXE application and linked them to the main application and share the same database with all the apps?
I like the design of MS Money application for desktop application. However, this is only a finance application and it is also that big. Can that design help me for this scenario or are there any references of big desktop application that is extensible and contains support for database ?
Currently I have research enough on desktop application for
1. Interprocess communication can be using named pipes, since it is on same machine.
2. Single Sign on in main application will allow access to other HLM exe application.
3. Only Main application will call the other HLM application. Running HLM Exe alone will give a error .
4. New HLM application will have a module code and store in the database and loaded in the main application once logged in. Using module code, the HLM exe will be loaded.
5. Main application will have framework to support dynamic linking of HLM and have base libaries that will be implemented and use by HLM exe application.
6. Each HLM exe will have its seperate BO and DAO layers.
7. If HLM B depends on HLM A then HLM B will reference HLM A BO layer for calling functionalities that are required.
8. There will be only 1 instance of the any application running at anytime time.
I am not sure of the following
1. Transaction handling between multiple processes.
2. If there are anything else that I need to take care of
Can anyone please help me decide and answer the queries (marked in bold italic) so that I can move with the development of the application. This will be big application should the design and architecture should be finalize first.
modified on Thursday, July 24, 2008 11:58 AM
|
|
|
|
|
abhijitbkulkarni wrote: This will be big application should the design and architecture should be finalize first
I'm pleased to hear it, but this should really be the case with just about any project. Can I suggest that you take a look at Microsoft's Composite Application Block? This will help clarify a lot of the problems/issues you may encounter, and is a good place to start when thinking about a decoupled architecture - especially when the interface can vary so widely.
|
|
|
|
|
That surely help. It gave me a starting point for what I required.
I will go through Composite Application Block and check with the design that will be best for the application.
Thanks for reply.
|
|
|
|
|
Pete O'Hanlon wrote: Microsoft's Composite Application Block
Looks interesting enough
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|