Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sc steinhayse

@sc steinhayse
About
Posts
120
Topics
78
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • javascript invisible or hide
    S sc steinhayse

    In an existing web form 2010 application, when any part of the web page was changed, the entire web page would be reloaded. Now after I change I made to the application the following is occurring: The entire page gets reloaded whenever a button or a link is clicked on. When this occurs, the bottom portion of the entire lower half of the web page is displayed for a few second and then goes away. The item goes away (is not visible) when the javascript hide function is called. I have no idea of what could be causing this problem. Is there some kind of property I can set to invisible in javascript to get rid of this problem? Do you have any ideas of what I can do to solve the problem?

    JavaScript javascript help question

  • vb.net 2010 datepicker
    S sc steinhayse

    In a vb.net 2010 desktop application that is using a system.windows.forms.datetimepicker, I am having a problem with. The problem is the datepicker will only allow me to select one month in the past at a time. I hit the down arrow where the date is displayed and then hit the previous button where the month and year are displayed. If I want to go back 3 years in the past, I have to keep this process up 36 times. I would think I should only have to hit the down arrow where the date is displayed one time, and then keep hitting the back button until I find the month/year I need from 3 years ago. The default selection for the datetimepicker is set today's date since this is what will be used about 95% of the time. Thus can you tell me what I can do to solve this problem?

    Visual Basic csharp help question

  • C# have linq to sql access config file
    S sc steinhayse

    Can you tell me how to change the code so that it is better managed? I definitely need to obtain the database connections from the app.condif file.

    C# csharp database workspace dotnet linq

  • C# have linq to sql access config file
    S sc steinhayse

    I am having a linq to sql problem with a C# 2010 windows form application when it is changed to a dll and accessed by other applications. The purpose of the calling the code as a dll is for performance reasons and to share the code accross multiple applications. When the application is on its own, it runs fine. Basically when the linq to sql was dragged to the desktop, a default linq to sql connection was setup by the .net framework. However I changed the *.designer.cs to use the system.configuration namespace, added a reference to the system.configuration namespace, and changed the default linq to sql connection to use the database connection obttained in app.config file. I also removed any refernces to the default database connections in the the 'properties or 'settings' section for each project file folder. Now the problem is the default setting values to the database are reset by the .net framework. Thwe values in the app.config file are no longer being used. Can you show me code, point me to a reference, and/or tell how I can make this application is the connection string values in the app.config file again?

    C# csharp database workspace dotnet linq

  • C# use dll in various directory locations
    S sc steinhayse

    thanks!

    C# testing help csharp beta-testing tutorial

  • C# use dll in various directory locations
    S sc steinhayse

    I have a question about your following statement, "You could put the code you're using in the .EXE into a Class Library project, which compiles to a .DLL, and then you've got the code in one place which you can use in any other .EXE." If I do what you suggest above and place the code into a .DLL, that means the dll would not take parameters correct? If this is true, is there another way i can share the code between all the programs and pass the parameter values?

    C# testing help csharp beta-testing tutorial

  • C# obtain paramter values for dll
    S sc steinhayse

    Sorry about that! You can correct that I am going an exe. I have this question in another thread of mine so I will just close this thread.

    C# csharp help tutorial question

  • C# use dll in various directory locations
    S sc steinhayse

    I am sorry about the confusion in the terminology. Each of the 5 program calls an exe and passes parameters to the exe. What I am suppose to do is not call an 'exe'. I am suppose to have call each 'exe' in a faster manner. what would a faster manner be? callin a dll?

    C# testing help csharp beta-testing tutorial

  • C# use dll in various directory locations
    S sc steinhayse

    Here is an example of the code that I am referring to in my question:

    strConsoleAppLocation = ConfigurationManager.AppSettings["dll_location"];
    string Process_Arguments = null;
    Process RPT_Process = new Process();
    RPT_Process.StartInfo.FileName = strConsoleAppLocation;
    Process_Arguments = " 7 " + strCUSTID + " 1";
    RPT_Process.StartInfo.Arguments = Process_Arguments;
    RPT_Process.Start();
    RPT_Process.WaitForExit();
    RPT_Process.Dispose();

    C# testing help csharp beta-testing tutorial

  • C# obtain paramter values for dll
    S sc steinhayse

    Each program basically calls the dll with the paramters that is needed for the current run of the dll. The parameters change depending upon what the dll is expected in call. Here is an example of a call that is made:

    strConsoleAppLocation = ConfigurationManager.AppSettings["dll_location"];
    string Process_Arguments = null;
    Process RPT_Process = new Process();
    RPT_Process.StartInfo.FileName = strConsoleAppLocation;
    Process_Arguments = " 7 " + strCUSTID + " 1";
    RPT_Process.StartInfo.Arguments = Process_Arguments;
    RPT_Process.Start();
    RPT_Process.WaitForExit();
    RPT_Process.Dispose();

    Thus do you have any suggestions on how to change the code listed above so that I can attach the dll to each program as 'project reference'?

    C# csharp help tutorial question

  • C# use dll in various directory locations
    S sc steinhayse

    If I place the dll in the same directory path for all 5 programs to access, that would be a good idea! Currently each program executes the dll by the value placed in the app.config file for each of the 5 applications. Would I be able to continue to use the same logic? If not,what would need to change?

    C# testing help csharp beta-testing tutorial

  • C# use dll in various directory locations
    S sc steinhayse

    I have a C# 2008/2010 application that is currently accessed as a dll file and I would like to change the application so that the dll is accessed though as a reference. The code that calls the dll is a process and the code looks like the following:

    Process theProcess = new Process();

    theProcess.StartInfo = new ProcessStartInfo("filename.ext");

    theProcess.StartInfo.Arguments = "args here"

    theProcess.WaitForExit();

    theProcess.Start();

    The problem is the dll is currently placed in various locations like unit test area, client acceptance testing, system testing, and then into production by the 5 applications that call it. The application currently obtains the various locations based upon values in the app.config file. If I add this dll has a reference to the programs that call it, how will I tell those calling programs where to obtain the 'correct' directory location? Would I use the app.config file? Can you show me code and/or explain to me how to solve this issue?

    C# testing help csharp beta-testing tutorial

  • C# obtain paramter values for dll
    S sc steinhayse

    I have a C# 2008/2010 application that is currently accessed as a dll file and I would like to change the application so that the dll is accessed though as a reference. The code that calls the dll is a process and the code looks like the following:

    Process theProcess = new Process();

    theProcess.StartInfo = new ProcessStartInfo("filename.ext");

    theProcess.StartInfo.Arguments = "args here"

    theProcess.WaitForExit();

    theProcess.Start();

    I want to be able to pass argument values to the dll when it becomes a reference in the 5 programs that call it. My problem is that I do not know how to pass the parameter values when the code is accessed as a reference. Thus can you tell me how to pass argument values to the application when it is accessed as a reference. Is it something in the reference call? Can you show me code and/or tell me how to acoomplish my goal?

    C# csharp help tutorial question

  • C# make executabloe a dll
    S sc steinhayse

    I wanted to mention that the program I talking about is executed from 2 other programs. Thus does it make sense to make part of this called program a dll?

    C# question csharp security workspace

  • C# make executabloe a dll
    S sc steinhayse

    I have a question about converting a C# 2010 application that is currently run as an executable to be run as a DLL instead. I do not know what parts of the entire solution file should be part of the dll file and what parts (if any) should remain as an executable. I was briefly advised by a contract shop that when the current application calls a web service, that portion should become the dll. I was also told by the contract shop that the chelper.cs code (that calls the web service) should be part of the dll. This same contract shop also said I could write separate dlls for each 'type' of method that is called. If I did that, I would use portions of code from each project file. So basically I have part of one project file out of 4 project files that should be included in the dll file? Here is a description of the current project files: 1. one project file has various routines that are tied with the web service. 2. Another project file is a handshaker to verify security. 3. There is the 'driver' project file. 4. There is a 'sample' code project file that was written by the contract shop that supports the web service. Can you tell me how you would decide to setup the application I listed above as dll file(s)? How would you change the code that I just listed above? How would you setup the code tio convert it (use it) as a dll file?

    C# question csharp security workspace

  • Error2 Build failed due to validation errors in *.dbml
    S sc steinhayse

    I am getting the following error message in a C# 2008 application and I do not know what to look at to resolve the problem: Error2Build failed due to validation errors in C:\RPT.dbml. Open the file and resolve the issues in the Error List, then try rebuilding the project. There is nothing showing me where the exact error is coming from. There is a reference setup for System.Configuration. The following code is from the RPT.designer.cs

    namespace cli
    {
    using System.Data.Linq;
    using System.Data.Linq.Mapping;
    using System.Data;
    using System.Collections.Generic;
    using System.Reflection;
    using System.Linq;
    using System.Linq.Expressions;
    using System.ComponentModel;
    using System;
    using System.Configuration;

    [System.Data.Linq.Mapping.DatabaseAttribute(Name="DEV")]
    public partial class RPTDataContext : System.Data.Linq.DataContext
    {

    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();

    public RPTDataContext() :
    base(ConfigurationManager.ConnectionStrings["DEVConnectionString"].ConnectionString.ToString(), mappingSource)
    {
    OnCreated();
    }

    The following code is from RPT.cs file:

    namespace cli
    {
    partial class RPTDataContext
    {
    }
    }

    Here is the code in the app.config file:

    Thus can you tell me and/or show me in code how to fix this problem?

    C# help csharp workspace linq tutorial

  • predefined type 'xxx' is defined in multiple assemblies in the global alias
    S sc steinhayse

    I am getting the following warning and error message for a C# 2008 application I am working on: Warning 17 The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\NLog\.NET Framework 2.0\NLog.dll' sample Error 21 The type or namespace name 'Nlog' could not be found (are you missing a using directive or an assembly reference?) C:\Sample.cs 15 7 samplef I am getting this error message since I am trying to add the NLog open source tool to the solution file for 3 different project files in this solution. I am completing the following task: 1. I add a reference to this dll in the references section of each proejct file. 2. I then place a 'using NLog' statment in each proejct file. Can you show me code and/or tell me how to fix this problem?

    C# help csharp dotnet tutorial question

  • C# linq to sql default problem
    S sc steinhayse

    You are correct that each database has a different connection. However in code, can you show me how to change the connection string and how to change the app.config file to point to the different databases? The way that linq to sql works is it hard codes the connection string. I want avoid this hardcoded connection string.

    C# database csharp linq com xml

  • C# linq to sql default problem
    S sc steinhayse

    In a C# 2010 application, I used linq to sql to setup my database connections. Now when I move the application to a different database, the original database is still being used. Basically the connection string is hard coded into theapplication. I tried to follow the linq listed below, but everything did not work. http://goneale.com/2009/03/26/untie-linq-to-sql-connection-string-from-application-settings/ The part that says, "1.Open up the LINQ to SQL designer, and open the Properties tab of the designer (the schema itself), expand Connection and set Application Settings to False. ", I did not see this option. The closest thing I found was connection and I set that value. Here is the way the code looks now in the *designer.cs file.

    namespace e_ClScripts
    {
    using System.Data.Linq;
    using System.Data.Linq.Mapping;
    using System.Data;
    using System.Collections.Generic;
    using System.Reflection;
    using System.Linq;
    using System.Linq.Expressions;
    using System.ComponentModel;
    using System;

    [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="DEV")]
    public partial class eDataContext : System.Data.Linq.DataContext
    {

    private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();

    #region Extensibility Method Definitions
    partial void OnCreated();
    partial void Inserte\_Detail(e\_Detail instance);
    partial void Updatee\_Detail(e\_Detail instance);
    partial void Deletee\_Detail(e\_Detail instance);
    partial void InsertIBook(IBook instance);
    partial void UpdateIBook(IBook instance);
    partial void DeleteIBook(IBook instance);
    partial void InsertIPackage(IPackage instance);
    partial void UpdateIPackage(IPackage instance);
    partial void DeleteIPackage(IPackage instance);
    partial void InsertIError\_Tran(instance);
    partial void UpdateIError\_Tran(IError\_Tran instance);
    partial void DeleteIError\_Tran(IError\_Tran instance);
    partial void InsertTransaction\_Type(Transaction\_Type instance);
    partial void UpdateTransaction\_Type(Transaction\_Type instance);
    partial void DeleteTransaction\_Type(Transaction\_Type instance);
    partial void Inserte\_Tracking(e\_Tracking instance);
    partial void Updatee\_Tracking(e\_Tracking instance);
    partial void Deletee\_Tracking(e\_Tracking instance);
    #endregion
    

    public eDataContext() :
    base(global::e_ClScripts.Properties.Settings.Default.DEVConnectionString, mappingSource)
    {
    OnCreated();
    }

    public eDataContext(string connection) :
    base(conne

    C# database csharp linq com xml

  • C# setup to a sql server
    S sc steinhayse

    I have a question about setting up permissions on a sql server 2008 r2 datbase. I basically wrote and enhanced some C# 2008 and C# 2010 console applications that connected to my test sql server 2008 r2 database. On my test database, I must all full right my default. My 3 applications were deployed to a user acceptance testing environment that includes a user acceptance sql server 2008 r2 standard database. The user accpetance database was set up by the network administrator at my small company. He is the only one at my small company that knows a little bit about the dba roles and has locked down permissions. Due to the facts above, I would like to know what should I be aware that may need to have permissions setup for. My questions includes the followinng: 1. When to decide if role(s) need to be setup and how to setup the roles. When I ran my applications on my test database, I had the integrated security set to true. I did not need to supply the user name and password in the connection strings to the database. My user account was setup to have a role in the database. Due to what I just said, will I need to have setup roles for the console applications to run on their own? If so, What kind of roles need to be setup and how do you setup these roles? 2. I setup 3 new tables that are under the dbo schema. Do I need to have permissions setup so people and/or roles can have read, write, update and/or execute permissions? If so, how do you setup these permissions? 3. I have also created 2 stored procedures that are used to access the 3 new tables that I setup. Thus do these stored procedures need to have read, write, update and/or execute permissions on them setup? 4. Do statistics (explain plans) need to be run on this database that has hardly evern been used before? If so, how do you accomplisth this goal? 5. Are there other items I need to consider? If so, what are the items and what do I do to resolve those issues? If you can any part of my questions above, I would appreciate hearing what your answer is also.

    C# database sysadmin question workspace csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups