Search

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

Matching Posts

  • Re: Validation on Initial Page Load

    Thanks for the link. I am able to do the validation on client side at page load. But would prefer to have already triggered the Server side validation before sending the response. There are a large number of controls on the page and I would like to have it prerendered. Any idea why Page.Validate() doesn't work before it is a postback? I have checked Page.Validators.Count and it is 0 on my initital page load. Thanks!
    Posted to Custom Server Controls (Forum) by AndyBuffaloNY on 11/20/2008
  • Validation on Initial Page Load

    I have a CompositeControl that contains a CustomerValidator. These controls are added dynamically to a Place Holder I have a bunch of these on a page that I would like to validate at page load. I am trying Page.Validate() but for some reason Page.Validators is always 0. It works on postback but not on initial loading of page. I have event tried Page.Validators.Add(validator) but they get cleared out before I am able to execute Page.Validate() Can someone shed some light on this for me. Thanks!
    Posted to Custom Server Controls (Forum) by AndyBuffaloNY on 11/19/2008
    Filed under: Composite Control, Validation
  • Extend Dom Element

    Does MicrosoftAjax have any funcitonality built in to wrap the Dom Element so that we can extend it? I am trying to do something like Sys.UI.DomElement.prototype.ToggleDisplay = function() { Sys.UI.DomElement.setVisible(this, Sys.UI.DomElement.getVisible(this)); } Or something to that effect so I could just do $get('id').ToggleDisplay(); Am I missing something? This seems like an important feature to have included but I am not sure where or if I can do it. Is there an AddMethod() or something
    Posted to ASP.NET AJAX UI (Forum) by AndyBuffaloNY on 10/14/2008
    Filed under: ajax, dom, prototype
  • Missing attribute too allow design time support

    I have a control that contains a collection of myClass myClass contains system types like stings and ints class MyControl { public list<Validator> MyVals } class Validator { public bool Required public string RegEx public string ErrorMessage public string controlID public string blah... } What attribute do I need on my classes and properties to allow me in designer html to do this <cc1:... MyControl id="mycontrol1"> <MyVals> <Validator Required="True" ErrorMessage
    Posted to Custom Server Controls (Forum) by AndyBuffaloNY on 9/12/2008
    Filed under: Control Builder, designer, custom control
  • Re: Postback with Url Rewriting

    I didn't realize that http://urlrewriter.net would handle the other file types as well after forwarding the request. That's handy. Thanks for the Scott G link that is actually where I started playing with this, I just didn't realize that urlrewriter would handle the extra stuff. Thanks again!
  • Re: Postback with Url Rewriting

    My understanding is that IIS 6.0 checks if the file exists before forwarding the request to .net. So the urlrewriter modules only work if you create the folder structure to replicate what you want to do. And the only way to get around that was to foward * to .net or to do a 404 hack like I am trying. Am I correct in that or no? If not that would be wonderful news :o) And I will implement that asap. Thanks!
  • Postback with Url Rewriting

    My current set up is IIS 6 with the 404 error being handled by .net framework via url handler override in iis. My url scenario is this I have a folder stucture like this... product/ <COUNTRY> / <STATE> / <TOWN> Where it could be something like product/UnitedStates/NewYork/Buffalo this folder structure doesn't really "exist" other then a template folder stucture that I use to rewrite the path too in order to get CSS and themes to tie up properly. So the folder /United
    Posted to Configuration and Deployment (Forum) by AndyBuffaloNY on 6/18/2008
    Filed under: Postbacks, url Rewriting global.asax, 404, IIS 6.0
  • Re: How do I know when I should call update code for an UpdatePanel

    My issue is that my website works that there is sort of a JS framework that uses S ys.Services.AuthenticationService as well as handles a lot of page state information. In this situation I have an picture upload that first checks if the users is logged in, if not opens modal window for login, the the user can upload a file using the IFRAM technique. Once this file is uploaded and finished I call __doPostBack( "ctl00_ContentPlaceHolder1_updatePanelOnlyRenderMe" , "" ); from JS
  • Re: How do I know when I should call update code for an UpdatePanel

    I think I was unclear. I used the GridView as an example of something in an Update Panel that might be SQL intensive and would want to be avoided on a Call Back if not needed. I'm not looking for the update panel to know what to update, as much as the update panel knowing it needs to be updated. My page has a bit of cusom JS that handles events (login etc) that then need to trigger certain parts of the page to update. However when I specifically update one update panel (say containing a repeater
  • Re: how to upload file in asp.net under ajax

    I have seen a couple solutions to this where a user piggy backs off a control that is outside the Update Panel. Put a button outside the update panel and then on the button inside the update panel add to the onclientClick for it to do __doPostabck() on the other control forcing it to do a full post back. If you are looking to do "asynchronous" file upload I would suggest looking into doing an iframe solution there is a nice control built for this on codeproject.com http://www.codeproject
Page 1 of 4 (33 items) 1 2 3 4 Next >