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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
G

graemea100

@graemea100
About
Posts
9
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Please Wait Screen - ASP.Net Validators
    G graemea100

    I changed track slightly. I created a separate page with a link button and a please wait div tag. Then in the page load event of the new page I added the onclick event to the link button. The link button's only code is the redirect to the other page. If is not as quick as javascript, but it is still reasonable. Basically redirecting twice. Once from the code behind on the save button -> to the please wait page, and registering the click event using the registerstartupscript onto the link button and then redirecting to the full page. Not very pretty but it works. Thanks Graeme

    ASP.NET csharp javascript asp-net sysadmin help

  • Please Wait Screen - ASP.Net Validators
    G graemea100

    Hmmmm nope the onsubmit didnt work either. I am using a asp.net control not the html control. Would this make a difference? I will have another play around and see what I can come up with. If you have anyother suggestions please let me know. Cheers Graeme

    ASP.NET csharp javascript asp-net sysadmin help

  • Please Wait Screen - ASP.Net Validators
    G graemea100

    Thanks Kane. I will try this. I realised that the event I used didn't actually work properly after all. It appears that the alert that I placed on the form overrode the onblur event and the wait message still came up. Cheers Graeme

    ASP.NET csharp javascript asp-net sysadmin help

  • Please Wait Screen - ASP.Net Validators
    G graemea100

    I have figured it out. Simple error on my part. It appears that if I put the showwaitscreen function onto the onblur event of the asp.net button, it works brilliantly. If anyone else wants to know anything about this function please let me know. I only tested it on IE 5.5 and above. Graeme

    ASP.NET csharp javascript asp-net sysadmin help

  • Please Wait Screen - ASP.Net Validators
    G graemea100

    Hi All I have an application that allows users to load contracts. All the fields on the new application screen have asp.net validators against them including come range validators etc. What I want to do is... if the page is valid (client side using javascript) is to show a please wait screen similar to that created by Mike Ellison on code project (Thanks Mike) on the onclick event. If the page is not valid then don't show the wait screen. I have managed to get this to work by the following code (javascript) being called on the save button onmouseup event. function showwaitscreen(bln) { var i; var b; Page_ClientValidate(); for (i = 0; i < Page_Validators.length; i++) { document.getElementById(Page_Validators[i].controltovalidate).focus(); if (!Page_Validators[i].isvalid) { //alert(Page_Validators[i].id + " " + i); b = true; break; }else{ b = false; //alert(Page_Validators[i].id + " " + i); } } if (bln == true && b == false) { document.all.pleasewaitScreen.style.pixelTop = (document.body.scrollTop + 100) document.all.pleasewaitScreen.style.visibility="visible"; }else{ document.all.pleasewaitScreen.style.visibility="hidden"; } } It works a treat EXCEPT.... the onclick event server side no longer fires!!! Weird. Can anyone help? im going slightly MAD!!! Cheers Graeme :wtf:

    ASP.NET csharp javascript asp-net sysadmin help

  • DataProtection.Microsoft.Win32.DPAPI.DataProtector
    G graemea100

    I have written service that encrypts and decrypts the web.config ConnectionString using the Dpapi dataprotector that I have found on the web. It works well on my development machine but when I transfer the project onto the virtual server held with 2Day.com I get the error "The ConnectionString property has not been initialized.":sigh: I am using USE_MACHINE_STORE as the enum store which I thought could be easily transported to the virtual machine. Does anyone have any experience with DPAPI encryption being used on a hosted web server, and can tell me what I am doing wrong? Graeme

    ASP.NET com sysadmin security help question

  • Using Javascript Client-Side to Hide .net ASCX UserControl
    G graemea100

    Excellent that worked brilliantly. Just have to set the height and width and visibility, as I was having a problem that the rest of the items below the ascx page (static data/GUI) do not move down when you set the visibility to visible. It seems to place is over the top of the items currently on the page, instead of moving them down. We will have to set the height depending on the size of the DIV that we set up for each control. Is there any way of getting the height of the DIV tag as a variable and just increasing the height based on the height of the div that should be visible. IE: can you get the div's height value at run time from the client side script, and when setting the visibility, setting the height also? Thanks for the help:laugh:

    Web Development csharp javascript help tutorial question

  • Using Javascript Client-Side to Hide .net ASCX UserControl
    G graemea100

    Thanks Deepak I will try that and let you know how it goes. Graeme:)

    Web Development csharp javascript help tutorial question

  • Using Javascript Client-Side to Hide .net ASCX UserControl
    G graemea100

    I am creating a web app that has several UserControls loaded. What I want to do is when the user clicks the Datalist Item that has a Controls corresponding value, it sets the UserControl to being visible. All the other UserControls are set to hidden. I know how to set Textboxes etc to hidden and visible using Javascript, but how do I set the UserControl to hidden and visible when the correct item in the datalist is selected. Any help would be greatly appreciated. Graeme:^)

    Web Development csharp javascript help tutorial 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