Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:711816
More Search Options
RSS Available
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.
Posted to
ASP.NET AJAX Networking and Web Services
(Forum)
by
kirchi
on 4/13/2008
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 »
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online