Search

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

Matching Posts

  • Re: Why not support post-backs?

    I see one "bad" thing in approach with MVC right now - I cannot use it on my WebForms website. I am thinking about using MVC for parts of website while using WebForms for another part - for example I would use WebForms for simple forms that should postback, and use server side validation etc, while I would like to use MVC for AJAX calls and loading dynamically parts of a webform page from MVC rendering engines. What do you think ? is it wrong thought ? :) P.S. I decided to add one more
    Posted to ASP.NET MVC (Forum) by kirchi on 4/27/2008
  • Re: ClientScript.RegisterStartupScript not working

    vgiambattista, you are right, I was relying on the http://www.asp.net/AJAX/Documentation/Live/mref/M_System_Web_UI_ScriptManager_RegisterStartupScript_5_0feb167c.aspx - "Remarks" section, but actually ScriptManager calls Page.ClientScript when there is no async postback, checking the IsInAsyncPostback can be useful however to register a little different scripts for different types of request (ClientSript to init some objects, and ScriptManager to call that objects). But if the script is
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/14/2008
  • Re: updatepanel problem with xhtml 1.1

    coolblue, place the code inside check for async postback: protected void Page_Load(object sender, EventArgs e) { if(!ScriptManager.GetCurrent(Page).IsInAsyncPostback) { Response.ContentType = "application/xhtml+xml"; //Response.ContentType = "text/html"; Response.ContentEncoding = Encoding.UTF8; if (Request.AcceptTypes.Length > 0) { if (Array.IndexOf(Request.AcceptTypes, "application/xhtml+xml") == -1) { Response.ContentType = "text/html"; Response.ContentEncoding
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/14/2008
  • Re: problem with webservices

    Hi senthilselvan, I think it makes a little sense to call local web services, it's better to move the code you are using from multiply places (page and service in your case) into BLL - it may be class library or app_code folder, and call the shared code from both places.
  • Re: Refresh a page and close a other!?

    Hi tapastoutvu, write the following javascript in the parent page: function refresh() { window.location.reload(true); } or if you want to update the page asynchronously: function refresh() { __doPostBack("Place Here UpdatePanel UniqueID that you want to refresh", ""); } Hope this helps.
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/13/2008
  • Re: update panel and threading

    Hi preeti.professional , Using timers to update the multiply chats using postbacks may be very heavy operation with hight traffic, did you think about pure client side solution ? I would suggest to use javascript with AJAX web service calls to make more productive and responsive chat. http://www.asp.net/AJAX/Documentation/Live/tutorials/ConsumingWebServicesWithAJAXTutorial.aspx Hope this helps.
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/13/2008
  • Re: Viewing source is out of synch after ajax callback

    Hi pardo, use ScriptManager control to register scripts during async postbacks, and Page.ClientScript to register them when normal postback occurs ( or initial load) you can use the following code to check for type of request: if(Scriptmanager.GetCurrent(Page).IsInAsyncPostback) { ScriptManager.RegisterStartupScript(...); } else { Page.ClientScript.RegisterStartupScript(...); } more about ScriptManager.RegisterStartupScript: RegisterStartupScript Method (page, type, key, script, addScriptTags) Hope
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/13/2008
  • Re: Invalid postback or callback argument using GridView And UpdatePanel

    Hi 5ugeng, often it can happen when you have several UpdatePanel controls on the page and their UpdateMode is set to Conditional. When you postback one UpdatePanel and don't rebuild (rebind gridview in your case) controls of another UpdatePanel, this error may occur. You can disable EventValidation as already was supposed, but I dont like to do this - I prefer to maintain security for my pages and try to solve the problem by ensuring that controls are recreated for all UpdatePanels correctly
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/13/2008
  • Re: Time limit and counter

    Hi jolko, Recently I submitted a post on my blog: Client Side Timer Component, ASP.NET AJAX Where you can download source code for the control. The control is client side timer - an alternative to server side that ships with ajax framework. There is also a sample application. Hope this helps.
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/13/2008
  • Re: Script Manager Problem

    Hi shihab_alraji , You can access Scriptmanager control from any part of the application using the following syntax: ScriptManager.GetCurrent(Page) Page - is the instance of the page - all controls have Page property. Hope this helps.
    Posted to ASP.NET AJAX UI (Forum) by kirchi on 4/13/2008
Page 1 of 33 (328 items) 1 2 3 4 5 Next > ... Last »