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
A

AndyASPVB

@AndyASPVB
About
Posts
158
Topics
91
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem with Security Information Message Pop Up Box
    A AndyASPVB

    We have checked with Fiddler that each request is https

    ASP.NET help javascript css security debugging

  • Problem with Security Information Message Pop Up Box
    A AndyASPVB

    Hi I am having great issues trying to debug a page on a web application used internally on an intranet. When entering the page the "Security Information" Pop Up Box appears. The whole application is running under https. To try and debug the issue, I have used Fiddler, and looked at the urls for every component, javascript, css, images, and user control components. Everything I have seen from Fiddler shows that the urls start with required https! So, I am completely confused why this message should be shown - it appears everything the page is posted back. Does anyone have any idea why this should be happening and/or have another tool that could help me? Thanks

    ASP.NET help javascript css security debugging

  • JavaScript Function and Problem with Backspace Button
    A AndyASPVB

    Hi I have a javascript function that is applied to a textbox onkeyup so that when a user puts in a date in the format of dd/mm/yyyy it puts in the forward slashes. It also stops the user exceeding ten characters. However, when the user uses the backspace button, whilst the numbers are deleted, unless you keep down on the button, I can't get the backspace button to move back beyond the slashes. Here is my code, and I have highlighted in bold the bit that is not working:

    function DateInputUpdate(input) {
    if ( input.value.length == 2 || input.value.length == 5 )
    input.value = input.value + dateSep;

       if (input.value.length > dateFormat.length) {
        input.value = input.value.substring(0, dateFormat.length);
    
       **if (event.keyCode == 8) {
         if (input.value.length == 3 || input.value.length == 6) {
            input.value = input.value.substring(input.value.length, input.value.length - 1);**
       }
      }
    }
    

    }

    Can someone please advise me what I need to do or change? I don't particular wish to delete the slashes, more to ignore them or skip over them that's my ideal solution. Thanks

    JavaScript javascript help question

  • JavaScript Function and Problem with Backspace Button
    A AndyASPVB

    In reply to your answer, the code will only ever run in IE as it is an internal web application not a website, so testing in Firefox or in Google Chrome is not required. When testing in IE, the javascript is not hitting if the statement and is thus not working as expected.

    ASP.NET javascript help question

  • JavaScript Function and Problem with Backspace Button
    A AndyASPVB

    Hi I have a javascript function that is applied to a textbox onkeyup so that when a user puts in a date in the format of dd/mm/yyyy it puts in the forward slashes. It also stops the user exceeding ten characters. However, when the user uses the backspace button, whilst the numbers are deleted, unless you keep down on the button, I can't get the backspace button to move back beyond the slashes. Here is my code, and I have highlighted in bold the bit that is not working: function DateInputUpdate(input) { if ( input.value.length == 2 || input.value.length == 5 ) input.value = input.value + dateSep; if (input.value.length > dateFormat.length) { input.value = input.value.substring(0, dateFormat.length); if (event.keyCode == 8) { if (input.value.length == 3 || input.value.length == 6) { input.value = input.value.substring(input.value.length, input.value.length - 1); } } } } Can someone please advise me what I need to do or change? I don't particular wish to delete the slashes, more to ignore them or skip over them that's my ideal solution. Thanks

    ASP.NET javascript help question

  • JQuery unable to find controls on a page [modified]
    A AndyASPVB

    Hi Well, I applied the following code, and added some more: $(document).ready() { $('.dateMask').mask("99/99/9999"); }); To check that JQuery was picking up the ids of the control, I added $('input[class$=dateMask]') and sent the output to an alert box. Thankfully JQuery found the control by class, but fell over when applying the mask. So, the problem lies with the plugin!

    ASP.NET help question csharp javascript visual-studio

  • JQuery unable to find controls on a page [modified]
    A AndyASPVB

    The code I am using is from a website called "http://digitalbush.com/projects/masked-input-plugin" and I followed was given on the site. As shown below: JQuery(function ($) { $('#<%=date.ClientID %>;').mask("99/99/9999"); }); When I followed the example given on the website, all I was getting is the Microsoft JScript error message. Then I have tried all various ways with CssClass. I will try the example you have given, but I can't try it until Monday. Should it not work, what other advice can you give for me to try?

    ASP.NET help question csharp javascript visual-studio

  • JQuery unable to find controls on a page [modified]
    A AndyASPVB

    This is how I have the code set up on the control, as you can see I have the JQuery function commented until I can understand and solve what is going wrong! <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MaskControl.ascx.cs" Inherits="Prototype.CommonControls.MaskControl" > </x-turndown>

    ASP.NET help question csharp javascript visual-studio

  • JQuery unable to find controls on a page [modified]
    A AndyASPVB

    Hi I have a JQuery date mask, but when I run the page it throws an error "Microsoft JScript runtime error: Object doesn't support this property or method". Now, the control that this particular JQuery is meant to be working is added dynamically to a repeater control. Through this, I have looked at the ids of the control, where it was breaking and stopping in Visual Studio and what is being shown on the aspx page. The ids are identical except of the "#" that JQuery has at the start, which is not on the page. In my JQuery code I have: JQuery(function ($) { $('#<%=date.ClientID %>').mask("99/99/9999"); }); Is there away to tell JQuery not to include the "#" when finding the control? I have used UniqueID but this changes any underscore into "$", which is not the same as what is on the page. My only problem is with "#" sign at the start of the ID. I have even added an alert box to check that textbox was there and it came back as null. I have tried even adding a CssClass attribute to the textbox, but this through the same error, too. Please note that the custom user control that has the textbox is added programatically to the repeater. Can anyone help? Thanks

    modified on Saturday, December 4, 2010 4:21 AM

    ASP.NET help question csharp javascript visual-studio

  • Proble with list boxes and update progress control
    A AndyASPVB

    Hi I have an update panel that surrounds a wizard control which I use in conjunction with a update progress control. Now my update progress control works perfectly, with my animated gif and div tag that lays over my wizard control when the user goes from step to step. However, there is a problem that I am struggling to solve. A number of my steps use controls like list boxes, and when the update progress control fires, the list control is not laying underneath my div an animated gif no matter how high a make my css z-index on the div. Does anyone have a way of solving this? Thanks

    ASP.NET css database help question announcement

  • Problem with Wizard Control
    A AndyASPVB

    Hi I have a wizard, which contains a series of custom user controls as steps. Also I am using the step navigation template to add in the navigation buttons. However, due to some steps needing a little time to load fully due to web service calls and having to add some dynamic steps, I would like to disable the navigation buttons until the next step has been loaded and change the text on the "Next Button" to "loading...". Is there away I can do this perhaps with JavaScript or is there away I could do this with an AJAX control? If so, does anyone have an example I could use? Thanks

    ASP.NET javascript winforms help tutorial question

  • Structure Maps/Dependency Injection
    A AndyASPVB

    Yes, I already found that one too, but it doesn't go into the level of detail I want. I am looking for a worked example with explanation that I can use.

    ASP.NET csharp tutorial question

  • Structure Maps/Dependency Injection
    A AndyASPVB

    Hi Does anyone know where I can find examples and/or explanations on how to implement Structure Maps/Dependency Injection in C#? I have tried finding examples on the Internet, but what I found was not very good.

    ASP.NET csharp tutorial question

  • Very slow loading web page
    A AndyASPVB

    Hi I have a website application, which runs on an Intranet, and I have a problem. My problem is that one of the pages occasionally loads very slowly. Obviously when IIS is first used all pages take some time to load, and then loads quickly there are, but occasionally it can take a while to load even though IIS is up and running. Other pages in the application do not suffer this problem. Does anyone know why this is could be happening? There is nothing complicated going on in the page. Is there any solution I could use, such as pre-caching the page on IIS so it can be loaded quickly to the client? Any suggestions would be helpful!

    ASP.NET windows-admin help question

  • Problem with Xml and Xsd
    A AndyASPVB

    Hi I don't want to give the xsd a min occurance of 1 because this would defeat the business rules from where the data is actually coming from. So, I need to compare.

    ASP.NET help xml tutorial question

  • Problem with Xml and Xsd
    A AndyASPVB

    Hi I have minor problem which I need help with. I need to write a method that takes my xsd and my xml file, when I compare my xsd with my xml, if there are any elements in the xml data missing to add them into the xml file as empty. Firstly, let me say, I am not validating the xml file, this is not the purpose. All I am doing is comparing the two files, and adding back in any elements that are missing. The result of the new xml file is then displayed to the user. Can anyone give me some pointers on how to do this, please?

    ASP.NET help xml tutorial question

  • ViewState is always null on Postback
    A AndyASPVB

    Hi I have tried it on the same page, but still got the same problem. My little test was on button click to set the ViewState but redirect to the same page. So, I am very unclear on how to solve this one!!! I really do need some help!!!

    ASP.NET question xml help

  • ViewState is always null on Postback
    A AndyASPVB

    Hi I am really scratching my headache around on this one! At the moment I am undertaking a Proof of Concept project, and on a page I am loading an Xml Document, this xml document needs to be saved into a viewstate so, I have written aftering loading up the xml document: this.ViewState["tempDoc"] = xmlDoc; The load of the xml document happens by the user clicking a button. Now, I am not getting any errors at this stage. On the next page I have used: protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); } The problem being is that on this page I have no ViewState data! Even just calling the ViewState on the same page where I set it gives me the same problem. I have even tried setting simple data types like numbers and I am getting the same problem. What is going on???!!! The funny thing is though, I am not getting the problem with Session, but for this project, I can't use Session. Any ideas?????????????

    ASP.NET question xml help

  • Problem with setting a Hyperlink to DataTextFormatString of RadioButtonList Control
    A AndyASPVB

    Hi I have a radiobuttonlist control on my control, where the datasource is a collection, and I am using the DataTextFormatString to set the text field to a hyperlink. All this bit works, but where I am struggling to work is to add to the url path the value from the datavaluefield. Nothing I try works! Does anyone know how to set the datavaluefield into the url? Further, and one last question, my radiobuttonlist control is in a wizard step, and when the user clicks on a hyperlink, I want it to go on to the next step, all that is happening is that the link is going back to the first step. How do I correct this?

    ASP.NET question help tutorial

  • Problem with CSS
    A AndyASPVB

    Hi I have problem with my CSS where are all styles are saved to CSS file, which I link to in my master page. On my web content page, which inherits my master page, I have a number of user controls on my content page. However, the problem I have is that my tags are not applying the CSS, and I don't understand why! For example, I have a number of div tags which have display property set on them to block. Using Javascript I then change to the setting to none in order to show and hide the div tag. Adding an alert message box, and checking the div tag, the CSS property is not set then though I have applied the style via the class property of the tag. When I apply the CSS using the style proprty everything works! This is not how I want to set my CSS because my coding standard is to use the CSS file and set it via the class property. Can some explain to me why this is happening and how to fix it?

    ASP.NET help tutorial javascript css wpf
  • Login

  • Don't have an account? Register

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