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
G

garfield185

@garfield185
About
Posts
77
Topics
29
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sharepoint - Aggregate lists with JavaScript
    G garfield185

    Hi everybody. I need to aggregate the content of two different lists in one space, into one webpart in a different sharepoint, and this should be done via JavaScript. I cannot use designer and the Data View Web Part, which would ease the situation a lot... Do you know any example on the web, or something? I have been googleling a lot but can't find anything like this. Thanks.

    JavaScript javascript sharepoint tutorial question

  • Aggregate lists with JavaScript
    G garfield185

    Hi everybody. I need to aggregate the content of two different lists in one space, into one webpart in a different sharepoint, and this should be done via JavaScript. I cannot use designer and the Data View Web Part, which would ease the situation a lot... Do you know any example on the web, or something? I have been googleling a lot but can't find anything like this. Thanks.

    SharePoint javascript sharepoint tutorial question

  • Windows Service Debug on VS2010
    G garfield185

    It was a permissions problem. Win7 comes with a new security system, and I had to add to my profile (even being an admin) this permission: Control panel -> Administrative tools -> Local Security policy -> Local Policies -> User rights Assignment -> Debug programs -> Add user or group . And there, I added my own user. Reboot machine(Important!! Without rebooting, it won't work). After that, I was able to attach processes to debug them. It's been a really long time to solve this, I hope to help other people that find this same problem. Thanks everybody for your help.

    C# help csharp visual-studio debugging question

  • Windows Service Debug on VS2010
    G garfield185

    Thanks for your answer Sastry. Yes, I tried selecting the box "Run as administrator" on the Visual Studio launcher, and also tried with right click -> Run as administrator. The top of the window says "Visual Studio 2010 (Administrator)" . And the service is running in my user. I don't know why is this still happening. Any other idea? First I thought that the problem was to try to debug the code on the network, but I also copied the solution to my C: and it still happens.

    C# help csharp visual-studio debugging question

  • Windows Service Debug on VS2010
    G garfield185

    Hi everybody. I have migrated my software from VS2005 to VS2010, and when debugging my windows services, trying to attach to the process I get this error: "Unable to attach to the process. Visual Studio has insufficient privileges to debug this process. To debug this process, Visual Studio must be run as an administrator." So, I run it as an administrator, I checked the permission on VSLauncher.exe and devenv.exe to make it run always as an admin, but I still get the error. I am an administrator already. Has anybody have this same problem? BTW, I'm using W7, VS2010.

    C# help csharp visual-studio debugging question

  • CryptCreateHash returns zero, invalid parameter
    G garfield185

    Thanks, It's my first time calling api functions so I may be doing it totally wrong... I found that code and I was trying to make it work. At least, part of it did it. I'll study your reference. thanks.

    Visual Basic cryptography algorithms help question

  • CryptCreateHash returns zero, invalid parameter
    G garfield185

    Hi. I'm trying to encrypt text using advapi32.dll function CryptEncrypt, RC4. Before encrypting, y call CryptAcquireContext and CryptCreateHash, but this last one returns me zero. Err.LastDllError says it is an 87, so invalid parameter, but can't figure out where is the error.

        Private Const ALG\_CLASS\_HASH As Long = 32768             ' (4 < 13) 
        Private Const ALG\_TYPE\_ANY As Long = 0
        Private Const ALG\_SID\_MD5 As Long = 3
        Private Const CALG\_MD5 As Long = ALG\_CLASS\_HASH Or ALG\_TYPE\_ANY Or ALG\_SID\_MD5
    
        ....
    
        Private Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextA" \_
        (ByRef phProv As Long, \_
        ByVal pszContainer As String, \_
        ByVal pszProvider As String, \_
        ByVal dwProvType As Long, \_
        ByVal dwFlags As Long) As Long
    
    Private Declare Function CryptCreateHash Lib "advapi32.dll" \_
        (ByVal hProv As Long, \_
        ByVal algID As Long, \_
        ByVal hKey As Long, \_
        ByVal dwFlags As Long, \_
        ByRef phHash As Long) As Long
        ...
        
        'CryptAcquireContext works fine
        lResult = CryptAcquireContext(m\_lProvider, sKeyRoot, CRYPTO\_PROVIDER, PROV\_RSA\_FULL, 0)
        If lResult = 0 Then
            lResult = CryptAcquireContext(m\_lProvider, sKeyRoot, CRYPTO\_PROVIDER, PROV\_RSA\_FULL, CRYPT\_NEWKEYSET)
            If lResult = 0 Then
                MsgBox(ERROR\_AQUIRING\_CONTEXT)
            End If
        End If
    
    
        'Now this is where I get zero
        ' Create a handle to a hash object  using the MD5 algorithm 
        lResult = CryptCreateHash(m\_lProvider, CALG\_MD5, 0, 0, lHash)
        If lResult = 0 Then
            Dim a As Long = Err.LastDllError
            MsgBox(ERROR\_CREATING\_HASH)
            Return ""
        End If
    

    Any idea what I am missing?

    Visual Basic cryptography algorithms help question

  • Encryption with advapi32.dll
    G garfield185

    The problem is that I must use RC4, and the advapi32.dll, because we have other applicactions in powerbuilder using this system. I am supposed to follow the same steps. Thanks.

    C# csharp visual-studio algorithms security help

  • Encryption with advapi32.dll
    G garfield185

    I know you're right. But, it's been 2 hours since I wrote the question, and still no result. Of course, I do work, while I wait for your answers. I know when to write a question on the forum or not. I was just asking for some resource. Thanks for your help.

    C# csharp visual-studio algorithms security help

  • Encryption with advapi32.dll
    G garfield185

    Read the question again.

    C# csharp visual-studio algorithms security help

  • Encryption with advapi32.dll
    G garfield185

    Thanks, but of course, if I'm writing here is because I googled before. Don't answer for that please. There is no need.

    C# csharp visual-studio algorithms security help

  • Encryption with advapi32.dll
    G garfield185

    Hi. I'm starting to develope with encryption, and I'm supposed to use some functions inside advapi32.dll I've been searching for information but nothing general to learn from the begining this encryption thing. Does anybody know a good place with information about this? A predefined class or code? There must be something done, because what I need to do is quite simple, just encrypting and decrypting text (not whole files), for passwords. Thanks in advance for your help. PS: Visual Studio 2005, C#.

    C# csharp visual-studio algorithms security help

  • Simple DropdownList with javascript Ajax
    G garfield185

    Hi everybody. I'm trying to learn Javascript and Ajax, and I'm kind of lost with this thing. The Idea is to have two dropdownlist on the page, the first one loads data from an xml file with, for example, a list of countries, and after selecting a country the second one loads towns of the selected country. The idea is really simple, I'm following a manual but I can't make it work. Can somebody help me please? This is the code I write on an aspx file (VS2005), taken from the manual. I get an error on the line

    var provincias = documento_xml.getElementsByTagName("provincias")[0];

    it seems that is returns null... I'd appreciate if you could send me a link where I can find a similar idea, that I can study. Thanks.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
    xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Ejercicio 16 - Listas desplegables encadenadas</title>
    <script type="text/javascript">
    var peticion = null;
    function inicializa_xhr()
    {
    if (window.XMLHttpRequest)
    {
    return new XMLHttpRequest();
    }
    else if (window.ActiveXObject)
    {
    return new ActiveXObject("Microsoft.XMLHTTP");
    }
    }

            function muestraProvincias() 
            {
                if (peticion.readyState == 4) 
                {
                    if (peticion.status == 200) 
                    {
                        var lista = document.getElementById("provincia");
                        var documento\_xml = peticion.responseXML;
                        var provincias = documento\_xml.getElementsByTagName("provincias")\[0\];
                        var lasProvincias = provincias.getElementsByTagName("provincia");
                        lista.options\[0\] = new Option("- selecciona -");
                        // Método 1: Crear elementos Option() y añadirlos a la lista
                        for(i=0; i<lasProvincias.length; i++) 
                        {
                            var codigo = lasProvincias\[i\].getElementsByTagName("codigo")\[0\].firstChild.nodeValue;
                            var nombre = lasProvincias\[i\].getElementsByTagNam
    
    ASP.NET help javascript html tools xml

  • asp:ButtonColumn Text
    G garfield185

    Thanks for answering Jamil. I'm sorry, I don't know anything about what you say, that UI Culture thing... And when you say Databound, doy you mean databinding? I don't see any databound event on the grid, just data binding. I'm using VS2005, by the way. Thanks in advance. PS: How could I complete the code?

    datagrid.columns(i).text = "ES"

    There is no text property on columns collection.

    ASP.NET help design question

  • asp:ButtonColumn Text
    G garfield185

    I hope somebody can help me with this. I have got this DataGrid, with a buttoncolumn, and my problem is that depending on the language the user has chosen, it should show one text, or another. The language is saved on Session=("language"), it can be "EN" English, or "ES" Spanish. So, how could I write this column? I tried this:

    <asp:ButtonColumn Text="<% if Session("language") = "ES" then Response.Write ("Editar") else ("Edit") end if %>" CommandName="Select">

    I get an error.

    Error 1 The literal content ('<asp:ButtonColumn Text="') is not allowed in 'System.Web.UI.WebControls.DataGridColumnCollection'.

    (The error message is translated to English, it is not probably the real text)

    ASP.NET help design question

  • PopUp __dopostback
    G garfield185

    Hi everybody. I need some help with a problem. Can anybody say what's wrong with my script? When executing, IE says that there is an error on the line with the __dopostback. I do not have knowledge on javascript, but I copied the code and made it work sometimes. Right now, I'm going crazy with it. Thanks in advance.

    <script language="javascript">
    var sFeatures='dialogWidth: 500px;dialogHeight: 200px;status:no;scroll:no';
    var Resp = window.showModalDialog('PopUpMsg.aspx', window,sFeatures);
    if (Resp == True)
    {
    __doPostBack('btnBorrar','1');
    }
    </script>

    It is supposed to show a modal window called PopUpmsg.aspx, where I'll answer Yes or No. That works fine. But after answering, I need to reload the page, and the postback does not seem to work.

    ASP.NET help javascript tools question

  • Error uploading file
    G garfield185

    Hi everybody. One of my users is having a problem when uploading a file. WSS 3.0 After selecting the file to be uploaded, clicks OK and gets an error screen. He goes back to the site, and the file is placed there, checked out. He can't check in, because there are some fields that must be filled. He gets an error when he tries to "Edit properties" to fill those fields... So, can't complete the file, can't check in... He has Design profile. The thing is, that I have tried to upload files and it is everything ok. Any clue? Have you ever had a problem like this?

    SharePoint help design question

  • Changing a column to IDENTITY
    G garfield185

    Thanks Niladri, but I meant how to do it in SQL language...

    Database database sql-server sysadmin algorithms tutorial

  • Changing a column to IDENTITY
    G garfield185

    Hi everybody. SQL Server 2005 I've got a table "Center (ID,Name)", it has some records registered. I need to change the ID field, and make it IDENTITY = true. I have been searching, and only found information about how to add a new identity column to an existing table, but I have to turn an existing field on a table to Identity. I cannot create a new identity field and then delete the old one, because the registered IDs are not sequential... Any ideas? Thanks a lot.

    Time to come clean... Vive y deja vivir / Live and let live Javier

    Database database sql-server sysadmin algorithms tutorial

  • Request.Querystring "undefined"
    G garfield185

    YOU ARE THE BEST!!!! It works perfectly, thanks a lot!!!

    Time to come clean... Vive y deja vivir / Live and let live Javier

    ASP.NET help javascript sysadmin algorithms tools
  • Login

  • Don't have an account? Register

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