|
Its a very generic question.
It would be difficult for anyone to answer unless you will mention your specific need.
|
|
|
|
|
Actually i asked in general only, but here is my need. I have an intranet application developed with many modules like leave management system, travel system, HR modules, Appraisal System. Now this intranet application should be converted to a product so that it can be used by any organisation if given to them. So i want how can i startup for this? What kind of architecture to be followed? Any reference for this?
Naina
Naina
|
|
|
|
|
Hi Naina ,
Good question..... but don't you think that every organization will have different business logic for HR ,leaveManagement, Travel ETC,
So in this case I think the main change would be at business layer ????
|
|
|
|
|
Hi Nishant,
Thanks for your reply, but my question is like i am once again starting development but keeping in mind the application to be as a product. My Intranet applicaiton hav no documents to refer, for me to get an idea what kind if architecture it has? So i have to start everything freshly. How would i start? I dont have any guidence over this.
Naina
Naina
|
|
|
|
|
Hi Naina,
I think the best approach will be to segregate the
Presentation Layer
Business Layer
Data Access Layer
Use Business Layer for the customised business rules for the organization
But the drawback is you have to write seperate business layer each time you deploy it for a different organization.
What I think is Use Factory pattern ,
Meaning Add a Abstract Class BusinessLayer and
Let BusinessLayer for all organization inherit from it , and return new BusinessClass Object as applicable
Nish
|
|
|
|
|
Thanks a lot for your answere. I will try implementing as you hav said.
Naina
Naina
|
|
|
|
|
Getting "There is no source available for the current location" - in
Visual Studio 2008, in ASP.NET code-behind.
This started out as a question, but I figured it out, and am posting
this to help any others having the same problem. Of course, you may get
this error for other reasons - but I haven't seen this particular
solution discussed.
I prefer my own text editor to the IDE, and I made the mistake of
removing the mysterious three-character code (which turns out to be
Alt-239/Alt-187/Alt-191) which you'll notice at the start of all ASP.NET
modules. I assume (from experimenting putting it elsewhere) that it is
used to declare the namespace for ASP.NET assemblies. If it's not there
(eg. in a code-behind class module in App_Code) you'll get the above
error. So put it back! Hope this helps others avoid some stress..
|
|
|
|
|
Hi,
I really appreciate your thought that you posted over here to help other. As this is ASP.NET Forum, people generally asked question over here. It would be better you just change the Icon of the post from Question to "General" or you may post it as "Tips n Trick" Section over Here [ Tips n Tricks[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi friends i want to send the new or like say the job information using email and how to do that can any one help me out. Is there any method to automatically send the emails every day for the registered persons who has their profile sutable.
Thanks.
|
|
|
|
|
One option is to write a windows service which invokes a send mail function periodically. Another option is to create an MSSQL job. If you are using MSSQL 2005 or higher version, you can schedule a job to execute .NET function via CLR stored procedure.
|
|
|
|
|
I guess you are matching the data for user from the database. Are you using SQL Server ? if yes, then SQL server having it own features to mail sending periodically or as kannan suggested you can use Windows Services too.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi..
I have classlibrary project and made this assembly shared putting it on GAC.
My other projects can access the functionality of this classlibrary now.
but I changed few functions of this classlibrary and rebuilt the project, and what i see is.. it gives me the result of old functionality.
So how to change fuctionality and reflect it in shared assembly ?
thanks
By:
Hemant Thaker
|
|
|
|
|
I think you need to reregister the new dll to GAC again.
|
|
|
|
|
I'm building a web app and on one page I am using a check box list control for a group of selections. Before I submit my info to the database, I am sanitizing it and then placing it into session variables so the user can look over the info they typed in before putting it into the database.
The checkbox list in question is for a question asking about what type of work the user is looking for (Full-time, Part-time, or Temporary Work). What I want to put into the database is all of the user's selections, each separated by a comma. Here is the code I was using to pull that information from the checkbox list:
Dim w As Integer = 0
Dim chkbxWork As CheckBoxList = New CheckBoxList
chkbxWork = CType(Form.FindControl("cblWork"), CheckBoxList)
Dim sbWork As StringBuilder = New StringBuilder()
For w = 0 To chkbxWork.Items.Count - 1
If chkbxWork.Items(w).Selected Then
sbWork.Append(chkbxWork.Items(w).Value & ",")
End If
Next
'remove last comma
Dim IVWork As String = Left(sbWork.ToString(), Len(sbWork.ToString()) - 1)
Session("WorkType") = Server.HtmlEncode(IVWork)
This is all inside of a Try/Catch block, so naturally I keep getting an error when the for loop runs saying that there is a null object. What am I doing wrong?
|
|
|
|
|
Aptiva Dave wrote: chkbxWork = CType(Form.FindControl("cblWork"), CheckBoxList)
Why do you need to do that? Dont you have me.cblWork ?? If the control is serverside you can refer using Me.cblWork.
chkbkWork will hold Null if CType fails.
Please let me know where exactly you are getting an error. There are lots of places where you could get the NullReferencException , but I want you to put a breakpoint on the code and run it to find out where exactly the error is generated.
|
|
|
|
|
The Null exception happens when the for loop starts.
Also, I tried me.cblWork and it didn't recognize the control.
|
|
|
|
|
if Me.cblWork doesnt recognise, then there must be some problem with the designer. Might be you didnt mentioned runat="server" for the control.
If you cant call using its ID, it will not be found using FindControl as well.
|
|
|
|
|
In my application I have two modules "Admin" and "User".Admin can access all pages while User is Restricted to few pages only. How can I do this and restrict user to go the "Admin Pages" by just copying the url.
Please give me some help....any most relevent article on codeproject?
I m just new in asp.net.
|
|
|
|
|
|
|
Hello,
I have developed a website in n-tier architecture model. IT is working fine in local. But the problem is it is not working fine on server. I have uploaded website(files and folders including Bin). Transport,Data,Business layers dll's are in Bin folder.
The Problem is While retrieving the values from database into dataset error occurs.
Please Let me know how to upload N-tier arch model website and what files have to upload.
Thanks in advance
|
|
|
|
|
|
Thanks for the answer. But I have developed website not windows application.
Am getting Security Exception. i.e
System.Security.SecurityException: That assembly does not allow partially trusted callers.
Thanks in Advance
|
|
|
|
|
|
The Implementation is the same , for the Error that you are getting take Abhishek Sur advice and following the link
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|