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
D

Dio22

@Dio22
About
Posts
72
Topics
40
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Development Magazines
    D Dio22

    Looking for any good software development magazines to help keep me informed. Anyone have any suggestions?

    Design and Architecture help question

  • AutoSuggestMenu help
    D Dio22

    Hey all, I'm trying to incorporate the AutoSuggestMenu on autosuggestmenu.com and I keep getting random javascript errors. Mainly 'XUtils' is undefined. Here's the code. Thanks for your help :) <%@ Register TagPrefix="Custom" Namespace="ENTech.WebControls" Assembly="AutoSuggestMenu" %> ... autosuggestmenu.dll is in bin directory.. asm_includes directory is in the root of my project. Code behind: public static List getRegSuggest(string keyword, bool usePaging, int pageIndex, int pageSize) { List menuItems = new List; ... return menuItems; }

    ASP.NET javascript com help lounge

  • ASP.Net Deployment IIS 6
    D Dio22

    I placed my project in a folder called testsite so the url would be www.xyz.com\testsite\default.aspx. The error is as follows: The page cannot be displayed You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. -------------------------------------------------------------------------------- Please try the following: Contact the Web site administrator if you believe this directory should allow execute access. HTTP Error 403.1 - Forbidden: Execute access is denied. Internet Information Services (IIS)

    ASP.NET csharp asp-net sysadmin windows-admin help

  • ASP.Net Deployment IIS 6
    D Dio22

    Its just an asp 2.0 site.

    ASP.NET csharp asp-net sysadmin windows-admin help

  • ASP.Net Deployment IIS 6
    D Dio22

    I want to make sure I'm not an idiot. My boss wants me to deploy this asp site (2.0) to a webserver running IIS 6/asp.net 2.0. I created a folder via ftp and uploaded everything. I assume the folder has to be set to allow executables to run, because I got a nice error message saying so. I asked my boss to change the settings in IIS to run applications from this folder, but he acted as if it wasn't neccessary. Is it? How would you set up a .net app to run from a subdirectory without allowing applications to run from there? Thanks all.

    ASP.NET csharp asp-net sysadmin windows-admin help

  • C# remoting + GAC
    D Dio22

    Thank you Kaptin obvious. What's causing the security exception? I need help fixing the problem, not identifying it.

    C# csharp dotnet sysadmin data-structures security

  • C# remoting + GAC
    D Dio22

    I've created a remoting application that uses an assembly located in the GAC. When I try to run a client application that grabs the remote object and uses an object in the GAC assembly I get an exception. Everything works fine if the assembly is not signed. Thanks for any help. System.Runtime.Serialization.SerializationException was unhandled Message="Because of security restrictions, the type PLCLib.PLCMediator+PLCConnection cannot be accessed." Source="mscorlib" StackTrace: Server stack trace: at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type) at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum) at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel) at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at PLCLib.PLCMediator.WriteBit(PLCConnection connection, String dataAddress, Boolean dataIn) at PLCDriverConsole.WriteBit.WriteBits(PLCConnection connection, String dataAddress, Boolean dataIn) in C:\Brad\PLCDriverConsole\PLCDriverConsole

    C# csharp dotnet sysadmin data-structures security

  • Deleting top 3 from a select [modified]
    D Dio22

    Nevermind, figured it out... Thanks all! :) DELETE FROM TableName WHERE (DateTimeCol IN (SELECT TOP (3) DateTimeCol FROM TableName AS TableName_1 ORDER BY DateTimeCol))

    Database help

  • Deleting top 3 from a select [modified]
    D Dio22

    I'm trying to order a table by a datetime column (ASC) , then delete the top 3 rows. Help out the n00b. Here's what doesn't work.. DELETE TOP(3) FROM Table ORDER BY DateTime ASC DELETE TOP(3) FROM Table WHERE (SELECT * FROM Table ORDER BY DateTime ASC) i've tried hundreds of other combinations.. Thanks guys/gals.

    modified on Wednesday, February 13, 2008 1:58 PM

    Database help

  • Sending mail..
    D Dio22

    One of my many bosses came to me today and asked me to write a stored procedure that will email him if a table doesnt get updated every 15mins. The server is Microsoft Server 2003 with MSSQL Server 2000. I've read around 2000 ways to do this. Each as confusing as the next. I'm a college student with little experiance in the matter. Any help would be appreciated. Thanks :)

    Database database sql-server sysadmin help

  • Help a beginner..
    D Dio22

    I've developed a pretty robust app as one of my first projects. It's a windows app in C#. I'd like to know a little more about how Visual Studio compiles everything, and what all these resource files are..etc. I guess I expected everything to just compile into a single executable. (I'm used to console applications) .. What files are required, and what files are simply there for debugging? What's an Application Manifest file? and a Program debug database? Why are my output files in a funky three extention format? (ex. project.vshost.exe.config) etc.. Any links to resources would be helpful. Thanks everyone.

    C# csharp learning database visual-studio debugging

  • Changing colors of listview items..
    D Dio22

    I have a listview named redTagView.. I'd like to color the 4th column red or green depending on if it's an "N" or not. I've written the following code..for (int i = 0; i < redTagView.Items.Count; i++) { if (redTagView.Items[i].SubItems[3].Text == "N") { redTagView.Items[i].SubItems[3].ForeColor = System.Drawing.Color.Red; } else { redTagView.Items[i].SubItems[3].ForeColor = System.Drawing.Color.Green; } }
    The code sits there and stares at me like I'm an idiot. Makes me feel warm and fuzzy inside. Any reason why this shouldn't work? Tried redTagView.Refresh().. nothing.

    C# graphics question

  • Forcing XP style..
    D Dio22

    Is there a way to force my C# app to display in XP default style(luna) even if windows classic style, or other style is chosen?

    C# csharp question

  • Marshalling unmanaged DLL
    D Dio22

    The exception occurs when I try to call the method.

    C# performance help

  • Marshalling unmanaged DLL
    D Dio22

    Well, I still can't get past the "Entry point not found" exception. I've examined the DLL using dumpbin and Dependency Walker, and they both show the entry point "FindUser2" as existing at ordinal 1. For some reason the C# app just wont see it.

    C# performance help

  • Marshalling unmanaged DLL
    D Dio22

    I'm trying to use P/Invoke to marshal some legacy code. I either get an "Entry Point Not Found" error, or a "Memory access violation" I've run dumpbin on this dll, and i've verified that the entry point exists. I'm lost. Here's the source for the function I'm exporting..

    extern "C" BOOL FindUser2(char *cpUserFile, 
                  char *cpPassword, 
                  char *cpUserName, 
                  char *cpUserPriveledge, 
                  char *cpUserID, 
                  char *cpComments, 
                  BOOL *bUserActive,
                  char *cpErrorReason)
    {...}
    

    Here's my pathetic attempt to marshal it.

    [DllImport("WN_USER_SECURITY.dll",EntryPoint="FindUser2") ]
            public static extern bool FindUser2(
                [MarshalAs(UnmanagedType.LPArray)]char[] strFileName,
                [MarshalAs(UnmanagedType.LPArray)]char[] strUserPassword,
                [MarshalAs(UnmanagedType.LPArray)]char[] strUserName,
                [MarshalAs(UnmanagedType.LPArray)]char[] strUserPriveledge,
                [MarshalAs(UnmanagedType.LPArray)]char[] strUserID,
                [MarshalAs(UnmanagedType.LPArray)]char[] strUserComments,
                [MarshalAs(UnmanagedType.Bool)] bool bUserActive,
                [MarshalAs(UnmanagedType.LPArray)]char[] strErrorReason);
    
    C# performance help

  • GridView Edit..
    D Dio22

    Nevermind. :) This is how I did it. If someone knows a better way, lemme know. I created a button commandField with command "EditRow" and hooked up the RowCommand event.

    protected void MainGrid_RowCommand(object sender, GridViewCommandEventArgs e)
    {
       if (e.CommandName == "EditRow")
       {
        DataKey mykey = MainGrid.DataKeys[Convert.ToInt32(e.CommandArgument)];
        String mystring = Convert.ToString(mykey.Value);
        Page.Response.Redirect("Insert.aspx?key=" + mystring);
        }
    }
    
    ASP.NET database question

  • GridView Edit..
    D Dio22

    I need several buttons on each GridView row that redirect to pages performing custom operations. How do I get the DataKey of the row the button was clicked on? So that I can send the database ID of the row I want to perform operations on to another page. I can't use GridView.SelectedDataKey.Value because i'm not always going to be clicking the select button. Nor can I use the index, because that is not the ID for the data in the database.

    ASP.NET database question

  • Problem with UpdatePanel, ListBox, and the back button..
    D Dio22

    I have a Listbox in an Ajax UpdatePanel, when the user clicks the submit button and navigates away from the page, I clear the data using ListBox.Items.Clear(); However, when the user clicks the back button in the browser the data is still in the ListBox.Items collection.. (Its invisible at first, but when you try and add a new item to the listbox, the old items show up again). *shrug* anyone ever had this problem?

    ASP.NET help question

  • Grid View Delete Command.
    D Dio22

    I'm going to answer my own question. You have to set up the data source to automatically generate the delete statements using the "Advanced" settings in the wizard. I'd still like to know how to do this programatically specifying my own sqlcommands and parameters and linking it up to the built in DeleteCommand button.

    ASP.NET css database question
  • Login

  • Don't have an account? Register

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