Search

You searched for the word(s): userid:745944

Matching Posts

  • Connection String Encryption

    Hi there I have a question about Connection Strings that I'm sure has been asked before but I cannot find the correct answer after hours of searching the forums and Google. I want to encrypt a ConnectionString on a server but I don't own the server. Therefore, I cannot run the command line tool. Also, since I don't own the server, I cannot create mini web applications just for encryption. I'm not worried about someone else internally seeing the web.config configurations since our
    Posted to Security (Forum) by globrite on 7/6/2009
  • Re: Currently Using Windows Authentication ....Help with Roles?????

    Hi there You set your permissions based on access to the site - therefore your Managers will be able to see content based on their role. You can do this as the other posters have indicated by controlling access to a folder, using the web.config file, you can also control access to content by using the sitemap and indicating what certain roles can do / see. But for your question, you will need to test the role based on how they are logging on to your application and then using Roles.IsUserInRole("Manager"
    Posted to Security (Forum) by globrite on 7/6/2009
  • Re: hyperlink or linkbutton ?? how can i go different part of page.asxp when i click hyperlink or linkbutton in same page.aspx ?

    Sorry forgot to add how to reference the linked bookmark in the page: <a name="Comments">Comments Section</a>
    Posted to Getting Started (Forum) by globrite on 7/7/2008
  • Re: hyperlink or linkbutton ?? how can i go different part of page.asxp when i click hyperlink or linkbutton in same page.aspx ?

    I had a similar problem in that I wanted to know how to add in a bookmark in ASP - I knew how to do this with HTML but ASP was not as simple. In my case I had to use either a button or link button so I was not able to use a hyperlink text. This is the way I did it: <asp:LinkButton ID="ComButton" runat="server" OnClientClick="location.href='#Comments';return false">Comments</asp:LinkButton> Hope this helps!
    Posted to Getting Started (Forum) by globrite on 7/7/2008
  • Re: Disabling right click

    The script already posted by Kalyan should do this. I have something similar and this works for me. It disables the right-click (event.button == 2) anywhere on the page. <script language="javascript"> var message="Sorry, Right Click is disabled."; function click(e) { if (document.all) { if (event.button == 2) { alert(message); return false; } } if (document.layers) { if (e.which == 3) { alert(message); return false; } } } if (document.layers) { document.captureEvents(Event
    Posted to Getting Started (Forum) by globrite on 7/7/2008
  • Re: Server side validation affecting client side validation

    Hi there The custom validator I showed is the simplest one I had - there are many others that do quite complex things like validate whether or not some fields are required based on user selection. Although a range validator might work for one, it would not work for them all. In any case, both would return isValid = false if the validation was not met, and I think I would be in the same position with either server validator. Either would cause the page to return with a validation error and re-open
    Posted to Web Forms (Forum) by globrite on 7/7/2008
  • Re: Server side validation affecting client side validation

    Oops! String jScript = "enableControlsOnYesSelection(" + radioButtonID; Should be String jScript = "enableControlsOnSelection(" + radioButtonID;
    Posted to Web Forms (Forum) by globrite on 7/4/2008
  • Re: Server side validation affecting client side validation

    Ok, it is quite complicated; I hope you are able to understand how it all happens. However, there are many of these validators on my ASP page so I've only shown a sample. The JavaScript to enable/disable function enableControlsOnSelection() { var numberOfControls = enableControlsOnSelection.arguments.length; // This should always be a RadioControlList used to base our selection criteria upon var tableBody = enableControlsOnSelection.arguments[0].childNodes[0]; for ( var i=0;i<tableBody.childNodes
    Posted to Web Forms (Forum) by globrite on 7/4/2008
  • Re: Server side validation affecting client side validation

    Thanks for replying. No, the client side validation is working in that I don't see a complete refresh of the page and post back. What I see are the validation messages appearing if a mistake is present. However, other JavaScript that I have on the page is also affected. I have some client side JavaScript that opens and closes radiobuttonlists based on user selections - for example, if they select that they had no previous illnesses then the buttons on type and condition and free text comments
    Posted to Web Forms (Forum) by globrite on 7/4/2008
  • Server side validation affecting client side validation

    Hi there I have some client side validation that is working fine and enables/disables buttons based on user selections. This works great. However, when I perform server side validation using custom validators (like checking if the user has entered < HTML > tags or decimals in the integer boxes) and the server side validation returns isValid = false then all of the JavaScript validation that I've already done when the user clicked each control is lost. I don't understand why the enabled
    Posted to Web Forms (Forum) by globrite on 7/3/2008
Page 1 of 6 (58 items) 1 2 3 4 5 Next > ... Last »