Search

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

Matching Posts

  • Re: server-side validation event not firing

    Hi, are you setting any of the properties of the validator in runtime? It may be cause for your problem, if the validator is not hooked properly, then the button event wil l be fired before the the validation event. Check whether you have set the clientvalidation, if you are not using it then it should false, though if you are able to raise a postback, this should not be problem.
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: server-side validation event not firing

    Hi, Please check that you set EnableClientScript ="false" for the validator. Server side validation normally fires if you set EnableClientScript ="false" and causesvalidation = true for the button raising the event.
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: Word files in ASPX Page

    Hi, Then you can display it in iframe as well though i am not sure how your tool will capture the updated word doc from client side. If that is done then you can use it. Or else you can use Response.BinaryWrite(); byte [] data = //read your file into byte HttpResponse response = HttpContext.Current.Response; AddHead(response, yourMIMEType, yourFileName); //mimetype will be doc if (data != null ) { Response.BinaryWrite(data); Response.Flush(); } In this case also you need to capture the updated document
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: server-side validation event not firing

    Hi, Please check the CausesValidation property is set true for the button. Is postback is happening properly and the validation event not firing?
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: Validating 3 drop down lists

    Hi, You need to use custom validator. You can use this in server side, then u can directly use the session variable If you want the validation to be in client side then add a attribute to your customvalidator: customValidator1.Attributes.Add("CheckLength", Session["yourvalue"]); then in the ClientValidationfunction of the custom validator: function ValidateLength(source, args) { if(args.Value.length > source.CheckLength ) { args.IsValid=false; } else { args.IsValid=true; }
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: How can I access dynamically created controls?

    HI, It's good to add the control in some server container control (say, Panel) created in design time. Then you can find the control by FindControl or as below: foreach (Control _control in this.yourPanelName.Controls) { if (_control.GetType() == typeof(yourControlType)) { //your code } } Don't forget to re-create the control in each postback.
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: Word files in ASPX Page

    Hi, You can display a doc file in a iframe, but you can't edit and save it back to server. Because browser will download the file from server to temp file folder and if use saves the file also, it will be saved in temp file folder in the client, not in the server . You have to use WebDAV or sharepoint for the same.
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: Word files in ASPX Page

    Hi, Best thing to use WebDAV.
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: OPen Link in new window

    Hi, Add this Javascript function: function fn() { var x = window.open( 'test.aspx' , 'PopUpWindow' , 'width=800, height=600,statusbar=yes ,scrollbars=yes, menubar=no, resizable=yes' , true ) x.window.focus(); } You can call this function to 'OnClick' event of any control, say a linkbutton. The 4th optional parameter (replace: boolean) of window.open checks whether the same window is already open or not. if set to true, then it replaces the exsisting one. For that you
    Posted to Web Forms (Forum) by kakali on 1/31/2008
  • Re: Web site namespace

    Hi, All the web pages are by default inherited from System.Web.UI.Page class, so you can't put your own namespace there. If you want to use a specific one, then better you create a class file (wrapped it by your namespace) inheriting from System.Web.UI.Page class. And all the web page can be inherited from that base class. Please remember that you cann't use any namespace in aspx/aspx.cs files. I am not very clear about your intension, but if you are trying to instantiate any wab page and
    Posted to Web Forms (Forum) by kakali on 1/30/2008
Page 1 of 14 (133 items) 1 2 3 4 5 Next > ... Last »