1,076,371 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Posts by anish.anick

Hi All,
I have a factory which has some concrete sub classes for generating reports (.txt, .csv,.xls) I want to make the interface of the concrete classes to be generic so that i can pass in diff types of parameters (Instead of DataTable i need to use DataSet or some other class instance as argument). Here is my previous interface.

  interface IReportCreator
  {
        bool Create(DataTable dt);
  }

I made the interface as generic..like the one below

interface IReportCreator<T>
{
    bool Create(T args);
}

Now my question is how can i return the generic interface from the Factory My previous factory code
My previous factory code is like the one below..

class Factory
{
    static IReportCreator  GetReportCreator(string type)
    {
        IReportCreator reportCreator = null;
        if(type == "txt")
            reportCreator = new TextCreator(); 

        if(type == "csv")
            reportCreator = new CSVCreator();

        return reportCreator;
    } 
}

And in the cient.. i call like this

IReportCreator repCreator = Factory.GetReportCreator("txt"); 
repCreator.Create(// the argument);

I want to make the factory as a generic one.. Pls help me to solve this

Any help will be appreciated greatly
Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I have a web site where few pages are shown inside an IFrame.. The problem is with session in IE.. How can i get session in IE IFrames... Pls help

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I have developed a web site in ASP.NET in 3 tier architecture (Presentation layer, BusinessLayer, DataLayer). Now the client is looking for an entire look and feel for UI, which consist of lots of jquery sliding / animated features etc. (Few pages will get loaded in a frame with sliding and as modal pop up). I want to know whether i can apply any design patterns or architectural pattern for developing the new UI with the existing business and data layer.

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I want to resize the html controls and elements (buttons,text,div's images..) when the browser window is resized using mouse.. Is it possible to achieve that? Please help me to solve this issue?

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I wanna create a flash file uploader in asp.net. Basically i want the user to drag and drop multiple files to the control and the control should be able to upload the files to the server. Please help me to solve this issue.

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I have a table which holds the values like shown below

ID   Col-1   Col-2   Col-3    FID
1    Good     Yes     Easy     101
2    Bad      Yes     Hard     101
3    Good     Yes     Medium   101
4    Good     No      Medium   101
5    Good     No      Medium   101

I want to have a query which gives how many "Good", "Bad", "Yes","No", "Easy".. "Medium"
values are there for FID = 101

I want to show some thing on the page like

4 persons say "Good", 1 person say "Bad"
3 persons say "Yes", 2 person say "No"
1 person say "Easy", 1 person say "Hard" and 3 persons say "Medium"

Please help me how i can query the database.

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Parallel computing is a kind of computation in which many calculations are carried out simultaneously (in parallel). In other words large problems can be divided into smaller ones and can be solved in parallel.We can take the advantage of dual core and multi core processors by dividing the tasks and assigning the tasks to each processors

Please take a look on the this

http://aditiblogs.com/blog/blog/2009/06/07/parallel-programming-in-c-40-using-visual-studio-2010/
Hope this helps you..

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Please try this DateTime.Now.Millisecond;

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0
anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I am using Three tier application in my project (having Presentation, Business and Datalayer). I want to know what kind of Design pattern is Three tier approach?

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I need to implement a searching feature in my web site. My web site is a Shopping site having different categories (like ebay). There is a general search textbox at the top of the page, if a user types in "Guitar" and clicks the search button it should search in our database and should provide the search result.Writing queries to search for the specific word in whole categories and subcategories can take more resource. How can i implement the searching feature? Any available free search engine to my web site which pulls the data from my database? Please help me to solve this.

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Keep the answers in database or Session

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I wanna create a chat application in ASP.NET. I don't like the idea of polling the server at regular interval for updates. Please help me to solve this issue.

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0
anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi Anusha,

You can run the code asynchronously using ajax and initiate a ModalPopUp which will pop up with your requirement (image or anything you want) after running the code. Hope this helps.

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,

I got the following error on creating a new virtual directory for a working web service version. What could be the issue? Since the same Web service build works fine on another machine.

Description: 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.

Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163
System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53
System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +175
System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +83
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +83
System.Web.UI.PageParser.GetCompiledPageInstance(VirtualPath virtualPath, String inputFile, HttpContext context) +224
System.Web.UI.PageParser.GetCompiledPageInstance(String virtualPath, String inputFile, HttpContext context) +121
System.Web.Services.Protocols.DocumentationServerProtocol.Initialize() +736
System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response) +50
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +77

[InvalidOperationException: Unable to handle request.]
System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) +285
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +183

[InvalidOperationException: Failed to handle request.]
System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +354
System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +212
System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +47
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

I already tried the technique of using a hidden variable. It didn't work.

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,
I need to cache some javascript variable values across the page.
Consider page 1 has a javascript variable which holds some value and If the user take page 2 and clicks the browser back button the javascript variable value on page 1 will be lost. How can i cache the javascript variable value on page 1. Please help me to solve this issue

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,
I need to create a HTML page which plays live audio. (I know to play an audio file using <object> tag) But my requirement is to stream live audio please help me to solve this.

Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0

Hi All,
I need to send email from a C# application from localhost. I was successful in sending email using gmail SMPT port and host. But i need send email from local host SMPT virtual server. I followed the steps explained in http://forums.asp.net/t/268037.aspx and http://weblogs.asp.net/steveschofield/archive/2007/08/15/send-email-from-your-local-machine.aspx but the mail was not sending from my application. Also when i execute the command telnet mail.contoso.com 25 in commad promt. It shows "Connecting To mail.contoso.com...Could not open connection to the host, on port
25: Connect failed". Please help me to solve this.
Thanks

anish.anick
Light Poster
48 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
Skill Endorsements: 0
 
© 2013 DaniWeb® LLC
Page rendered in 0.1152 seconds using 2.69MB