User Profile

Collapse

Profile Sidebar

Collapse
myth0s
myth0s
Last Activity: Aug 26 '09, 02:30 PM
Joined: Jan 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to specify a "backup server" for ActiveDirectory Membership Provider

    Hi,

    The question:
    Is it possible to have two differents ActiveDirectory Membership Provider in web.config and change at run-time from the default provider to the second provider if the first one fail?


    Context:
    We are using the ActiveDirectory Membership Provider as part of our authentication solution. It is working great most of the time, but every now and then the AD process on the main server...
    See more | Go to post

  • myth0s
    started a topic Intellisense is going crazy
    in .NET

    Intellisense is going crazy

    Hi,

    Recentely, Intellisense "stopped" working on some projects I have.

    The source code itself is in a shared folder and other developpers have access to it (and their Intellisense is working on all projects).

    I didn't notice how or when exactly it stopped working, so I can't provide any info on that. I do know however that it is working on maybe half of the projects I code.

    All...
    See more | Go to post

  • I've added logging methods everywhere I could and :

    This is called once :
    Code:
    GridView1.DeleteRow(Int32.Parse(e.CommandArgument.ToString()))
    Code:
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    ....

    But at the server side my stored procedure gets called twice :

    Code:
    ALTER PROCEDURE [production].[pln_ajouter_exception]
    ...
    See more | Go to post

    Leave a comment:


  • myth0s
    replied to radio buttons-web application
    in .NET
    You can use the GroupName attribute to specify a group of buttons that should be mutually exclusive.

    Example :
    Code:
    <asp:RadioButton ID="btn1" runat="server" Text="Red" ValidationGroup="type" GroupName="color" Checked="True" />
    <asp:RadioButton ID="btn2" runat="server" Text="Blue" ValidationGroup="type" GroupName="color"
    ...
    See more | Go to post

    Leave a comment:


  • I doubt it.

    There's the following line between the two calls :
    exec sp_reset_connec tion

    And each call says "RPC: Completed" and "Reads: 3" (the number of reads is good, but it should do so only one time).

    What I am trying to find right now is a way to know what happens "between" the Web App and SQL Server. If I could know where the problem comes from, that would h...
    See more | Go to post

    Leave a comment:


  • myth0s
    started a topic VB.NET (web) gridView sends delete command twice?
    in .NET

    VB.NET (web) gridView sends delete command twice?

    Hello!

    In VB.NET I have a GridView that shows a list of dates and beside each date there's a delete button.

    For a reason I don't know, the delete event seems to be fired twice, but I have trouble finding the exact source of the problem.

    From this thread : http://bytes.com/forum/threadnav436365-1-10.html, I have set my command button as a template field and call "GridView1.Dele teRow(Int32.Par se(e.CommandArg ument.ToString( )))"...
    See more | Go to post

  • Nevermind folks, I now loop request params (Request.Params .GetEnumerator( )) and check for the checkboxes names with a regular expression :)
    See more | Go to post

    Leave a comment:


  • How to loop through dynamically added controls after a postback ?

    Hello,

    I have a .aspx page (VB.NET) where there is the following table :

    Code:
    <asp:Table ID="mainTable" CssClass="tableList" runat="server">
            <asp:TableHeaderRow CssClass="tableHeader">
                <asp:TableHeaderCell>Type</asp:TableHeaderCell>
                <asp:TableHeaderCell>Task</asp:TableHeaderCell>
    ...
    See more | Go to post

  • myth0s
    replied to IWA problems
    in IIS
    After granting Full Control to virtually everyone (Aspnet account, Anonymous Logon, Everyone, etc), I created a new application pool run with Network Service identity. Everything's working fine now.

    Thanks for your help :)...
    See more | Go to post

    Leave a comment:


  • myth0s
    replied to IWA problems
    in IIS
    Fiddler is an HTTP Debugger (you can see all the requests sent/received as well as a lot of information about them)

    The application pool runs with IWAM_SERVERNAME , not NETWORK_SERVICE , so I gave read permission to the whole folder to IWAM_SERVERNAME .

    What is really strange though, is that I can access individual files.

    If I do a simple test page with some text and one image : image.png. I cannont refresh...
    See more | Go to post

    Leave a comment:


  • myth0s
    replied to IWA problems
    in IIS
    Okay, after some more investigation, I have found that :

    1 - In a web page, if I remove all references to external elements (images, style sheets, etc), everybody can access the page.

    If I add, ie, a single image (<img src="whatever.p ng">) or a external javascript file, people will get the authentication box if they refresh the page.

    2- If I open Fiddler, everything work. So if I refresh...
    See more | Go to post

    Leave a comment:


  • myth0s
    started a topic IWA problems
    in IIS

    IWA problems

    Hello all!

    I experience some problems with an application recently.

    Basically, IWA works half the time. That is, some users are able to access the VB.net application without any problem. Some others can, but if they refresh , they will get a 401. Finally, some people just can't access the application (I mean, the authetication box popup and even if they enter their username / password, it doesn't authorize them)....
    See more | Go to post

  • myth0s
    replied to Licnese key creator
    in PHP
    If your application does not need hyper secure keys, you could go for a easier method.

    To generate the key :
    1) Ask the user to give you a username (5 or more characters is good).
    2) Take that username and do something (optional),
    2.1) That something could be : shift all the letter right or left.
    2.2) That something could be : exchange the last 2 letters with the first 2.
    2.3) Ect.
    3) Add a...
    See more | Go to post

    Leave a comment:


  • myth0s
    replied to Send Multiple Emails
    in PHP
    I use :

    [PHP]//php mailer created above....
    $mail->AddAddress("ab c@xyz.com", "Guy #1");
    $mail->AddAddress("de f@xyz.com", "Guy #2");
    //email sent further down....[/PHP]
    See more | Go to post

    Leave a comment:


  • myth0s
    replied to How can i generate dynamic row in PHP
    in PHP
    You can use a loop to create those rows.

    [PHP]$myTableRows;

    for($i = 0; $i<$nbOfRows; $i++) {
    $myTableRows .= '<tr><td><labe l for="1">L1</label><input id="1" type="checkbox" /></td><td><label for="2">L2</label><input id="2" type="checkbox" /></td><td><label for="3">L3</label><input...
    See more | Go to post

    Leave a comment:


  • myth0s
    replied to getting selected item of drop down box
    in PHP
    PHP is executed before the page loads (Hypertext Preprocessor). It means that PHP execution is completed before the user can even see the select box.

    Doing what you want would require refreshing the page everytime the user select an item (re-execute the PHP so your code can know what was selected) or using an iframe or using... javascript.

    HTH....
    See more | Go to post

    Leave a comment:


  • myth0s
    started a topic Cannot view PDF in IE (PDF builded with PDFLib)
    in PHP

    Cannot view PDF in IE (PDF builded with PDFLib)

    Hi All,

    I am dumbfounded with a problem that happens only in IE (7.0, I don't know for the other versions).

    Situation :
    I have a .php file that builds dynamically (with PDFLib) a PDF. I can see that PDF with Firefox, but not with IE7.

    When I click the link to open the PDF in a new window, all I get is a blank page. Also, if I have a website opened and I type the address of the .php file that builds...
    See more | Go to post

  • Woops, sorry.

    You can try the server variables (http://msdn2.microsoft .com/en-us/library/ms524602.aspx). I'm not sure about the compatibility though. If this doesn't works for you, I fear that I won't be able to help you :(

    HTH...
    See more | Go to post

    Leave a comment:


  • myth0s
    replied to Access Keys
    "Explorer doesn't fire the keypress event for delete, end, enter, escape, function keys, home, insert, pageUp/Down and tab."

    See here : http://www.quirksmode.org/js/keys.html

    So if you REALLY want to check if the user has pressed F1-F9, you'll have to check the key code like 4 times per second to see if the pressed key code is in the F1-F9 range... I suggest listening for SHIFT/CTRL + # instead....
    See more | Go to post

    Leave a comment:


  • The DOM is dynamic. So as long as you set the ID of the elements you add, everything should be fine....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...