Showing posts with label asp. Show all posts
Showing posts with label asp. Show all posts

Wednesday, March 28, 2012

UpdateProgressControl/UpdatePanel timeout

I have a main ASP.NET 2.0 web form (C# code-behind) that has an "inbox" that displays records from a database. The main web form has a AspTimer control and an UpdatePanel control that are used in concert to refresh the inbox every 2 minutes (120000ms) triggered by the timers Tick event. However, when a user creates a new record using another web form I am triggering an async refresh of the inbox (after the record is saved) by calling a javascript function (via ModalPopupExtender OnOkScript value) that detects the presence of a hidden button on the main form and firing it's click event which is handled as an asp:AsyncPostbackTrigger for the main web forms update panel. Everything works as designed, but from time to time after the remote page triggered refresh occurs the next timer refresh (Tick event) or other user initiated event (e.g. gridview row select, sort) will hang and result in an "Sys.WebForms.PageRequestManager TimeoutException: The Server request timed out."error. I am not sure if the remote page triggered refresh is confusing the AspTimer somehow or it is causing a collision of some sorts but any thoughts on the matter would be much appreciated.

Further details/update: Once I get the "Sys.WebForms.PageRequestManagerTimeoutException" error, I can consistentely get it to occur by clicking a button that triggers an async postback. It's as if the session has lost it's connection (note that this happens regardless if I am running against my local development machine (XP/IIS51) or our test server (2003/IIS6)). The very weird thing that is befuddling me is that if I use fiddler to watch the traffic to see what is going on it (the connection) will be magically restored and everything works fine again. There are no server side errors being thrown and JavaScript console in (NS/FireFox) does not show anything that would point me to a resolution.


Eureka!!! I figured out the problem. I have JavaScript methods that are called by my child forms when a user is clicking the "Close/Cancel" button that verify there are no unsaved changes before closing otherwise user is prompted to verify that they want to discard changes or not. If they confirmed that they wanted to close the web form I was simply calling window.close() but was not returning any value from the function which I think was a problem because the Close/Cancel button is located within the update panel (because the image changes depending on the scope of the form (e.g. new or view)) and thus despite closing the window I think the AJAX event lifecycle was being initiated but terminated abnormally because of the form closing. I added a "return false;" in my finally clause for all the functions that are used in the closing of a child web form and lo and behold my parent form no longer breaks (see example function below - added statement is bolded). I hope this solution also works for anyone else having a similar problem:

// Function Name: CloseVisitLog
// Function Purpose: Close the visit log form.
// Author: Michael Jensen
function CloseVisitLog(scope)
{
// put function within try-catch-finally block
try
{
// debug statement - set debug = true to view
if (debug) alert(">>Entered JavaScript:CloseVisitLog");

// declare local variables
var unsavedChanges = GetUnsavedChangesFlag();

if(scope == "new")
{
// make sure the user really wants to cancel
if (confirm("Are you sure you want to cancel creation of this visit log entry?"))
{
// close the window
window.close();
}
else
{
return false;
}
}
else if(scope == "view")
{
// if there are unsaved changes make sure the user really
// wants to close
if(unsavedChanges == "true")
{
if (confirm("There are unsaved changes, are you sure you want to close?"))
{
// close the window
window.close();
}
else
{
return false;
}
}
else
{
// close the window
window.close();
}
}
}
catch(ex)
{
var msg = "JavaScript:CloseVisitLog failed. ";
alert(msg + ex.messsage);
}
finally
{
// debug statement = set debug = true to view
if (debug) alert("<<Exiting JavaScript:CloseVisitLog");
// return false to prevent postback when window is closing
// otherwise parent form AJAX will break
return false;
}
}

UpdateProgress...animated GIF just stops...any ideas?

Since this post (http://forums.asp.net/thread/1469416.aspx) shows as resolved, I've decided to open a new post since I am having a problem with it. My animated GIF just stops. Has anyone ever had this issue? Ever been resolved?

Thanks!

Hi brenda

What do you mean by stops, does it not animate or does is not display at all? Did you try doing this?

<atlas:UpdateProgress ID="progress1" runat="server">
<ProgressTemplate>
<div class="progress">
<img src="http://pics.10026.com/?src=indicator.gif" />
Please Wait...
</div>
</ProgressTemplate>
</atlas:UpdateProgress>

Well this really works if you have your indicator.gif to be animated. Try this out and tell me if what I've understood from your problem is correct.

Thanks


This is my code I have so far, but the animated GIF just freezes. Is this inevitable because the page is rendering?

<

divstyle="float: right; color: #6870A4; font-family: Verdana, Tahoma, Arial; font-size: 11px;">
<asp:UpdateProgressID="UpdateProgress1"runat="server"DynamicLayout="true"DisplayAfter="0">
<ProgressTemplate>
<table>
<tr>
<td>
Loading Property -- Please Wait </td><td>
<imgstyle="padding-right: 10px;"src="../../images/ajax-loader.gif"alt="loading"/></td>
</tr>
</table>
</ProgressTemplate>
</asp:UpdateProgress>
</div>
If your code is causing the page to load, the .gif will stop animating. The UpdateProgess control is designed to be used in parallel with an UpdatePanel. In this scenario the page updates without the page actually loading.

updates, both session and deserialisation

hi,

I'm new to the forum and Asp.net ajax but have been a c# dev for a while. My question is regarding using the session from within Ajax, and also to boot reading in a file.

the following pseudocode outlines my problem, the button and label are both in update panel. which itself is working fine (as on the 2nd click the session variable is shown)

basically,

button1 click set session["test"] = hello;

in the page load event have

if(session != null) label1 = session[hello];

what gets me is why when clicking a link (still within the update panel) the session variable is shown, but not through the original request. As I thought the entire page cycle is processed at the server and only the items in the update panel (in this case update mode is always) are refreshed?

the same happens with deserialization when used from the wizard in an update panel, it loads up the previous file rather than the new one but i imagine its somthing I have done wrong...

I have a quick fix with a timer set to 1second and calling my refresh function. I've also looked at using the Ajax profile for storing data i would else have stored in the session.

I was just wondering if anybody could point out my mistake or offer any alternatives. (using the membership and roles isnt feasable on this project unfortunatly)

well cheers and im sure it must be just somthing i have missed!

initiagroup:

As I thought the entire page cycle is processed at the server and only the items in the update panel (in this case update mode is always) are refreshed?

That's correct.

Your problem sounds like it almost has to be a page life cycle issue. Can you post a little bit more code?


thanks for your quick reply. Here is an extremly simple code snippit that shows my problem... its ok i think i have worked it out. Am i right in thinking that even without the update panel that code wouldnt work?

1<%@. Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">45<html xmlns="http://www.w3.org/1999/xhtml" >6<head runat="server">7 <title>Untitled Page</title>8</head>9<body>10 <form id="form1" runat="server">11 <asp:ScriptManager ID="ScriptManager1" runat="server">12 </asp:ScriptManager>13 <div>14 <asp:UpdatePanel ID="upd1" runat="server">15 <ContentTemplate>16 <asp:label ID="lbl1" runat="server"></asp:label>17 <asp:Button ID="btn1" runat="server" Text="click" OnClick="btn1_Click" />18 </ContentTemplate>19 </asp:UpdatePanel>20 </div>21 </form>22</body>23</html>

and the code behind

1using System;2using System.Data;3using System.Configuration;4using System.Collections;5using System.Web;6using System.Web.Security;7using System.Web.UI;8using System.Web.UI.WebControls;9using System.Web.UI.WebControls.WebParts;10using System.Web.UI.HtmlControls;1112public partialclass test : System.Web.UI.Page13{14protected void Page_Load(object sender, EventArgs e)15 {16if (Session["test"] !=null)17 {18 lbl1.Text = Session["test"].ToString();19 }20 }21protected void btn1_Click(object sender, EventArgs e)22 {23 Session["test"] ="test";24 }25}26

as you see very easy just click the button and see what happens. In debug it hits the page load event after the button is pressed.

oh and its just a standard ajax template from the new website dialog box.

Cheers.

Monday, March 26, 2012

Updating an UpdatePanel

Hello, I have just started using AJAX and ASP and could use some help with a problem I could not solve today.

Here is a link so you can check out my site setup...

http://opteron.dnsprotect.com/~verisol/HelpImage.bmp

LogSheetOperator.aspx is a content page to Site.Master and is the page that includes the AJAX ScriptManager. The VB code in this page adds the .ascx pages to the UpdatePanels of each tab.

NetWeightAuditUpdatePanel and CheckTimesUpdatePanel both contain a gridview. When the gridview in the NetWeightAuditUpdatePanel is updated, I want the CheckTimesUpdatePanel to refresh.

I made a simple test page that implements the Triggers feature of the update panel and successfully got that working with the Click method of a button. When I tried to apply that logic to the real project, it did not work. I'm guessing this is because of how the pages are structured.

Anyone have a solution or suggestions?

Thanks!
Matt


Off hand, i know there are many approaches out there, but have you considerd a single updatepanel hosting the tab containers which in turn host the dynamic ascx files.

You have the tab container hostin the tab panels which inturn hosts the updatepanels which inturn hosts the ascx files. cant 1 updatepanel provide you the support that you need.?


Daniel, thanks for that information. I just tried replacing all the update panels with a single update panel that encapsulated both Tab groups, but it still did not work. Since the content is on those .ascx pages, if I try and call a .Update() method inside the gridviews rowupdated event, it says that theUpdatePanelX.Update() is not defined, which makes sense because it is on a different page.

Any other ideas on how to get the UpdatePanel to Update?

Thanks!


what does "When the gridview in the NetWeightAuditUpdatePanel is updated" mean , are you doing some kind of editing here in the gridview or do you mean when the underlying data in updated?

i dont know if the following would be useful, but when i used ascx files sometimes i need to call some function or sub in the ascx's underlying codebehind to update the controls in the ascx.

What i do in that case is to create a public method mostly a sub, could be a function or property too. and have the hosting page call that public method of the ascx object instance. that way the ascx object will postback and the content of the ascx will update.

in your case you could explicitly call the "update" method of the ascx and let normal postback take care of the updating via the updatepanel as normal or you could go overboard and wire-up the public method of the ascx as an event handler of the rowupdated event.

So essentially you are not trying to call the .updatemethod of the updatepanel but instead trying to cause a postback in addition to firing an event in the "target" ascx that you want updated and you take it from there.

Updating and ASP Textbox from Server Side Script using AJAX Extensions

I've searched the web extensively and cannot find an answer to a question that I believe is simple.

I have an application running AJAX extensions so that scripts are run at server side. Everything works great. The problem I have is that based on selections in the script I need to base data to ASP.NET VB code behind to intergrate with an existing application.

Quite simply I want to update a hidden textbox then use that data to pass along to another asp page. I know how to pass the data once I get it to and ASP control. Just need to get it to the ASP side of the server.

Thanks in advance for any help.

Brian

I solved my problem.

Make sure there is an Name tag on the textbox that you will be using to pass info to code behind

This will accept a value and display it.

<inputtype="text"id="textbox1" value="JavaScript JumpStart"runat=server>

If you want to use the value in the code behind file this is what you need.

<inputtype="text"id="textbox1"name="textbox1"value="JavaScript JumpStart"runat=server>

Note the addition of the name tag.

Updating multiple controls

I have an asp.net web site. I have many text boxes, drop downs and check boxes that need to be populated based on user input. I have a main text box for them to put in an ID number and a button to run my code. The problem is that the text boxes and check boxes are all over the form so I can't group them in one update panel.

Also, some of the check boxes, drop downs and text boxes can change the data in other controls based on user input. This causes so many post backs under normal conditions. If I put everything in an update panel, isn't that still going to cause just as many post backs?

Putting the whole page in one UpdatePanel will cause pretty much the same amount of data to be sent back to the server (the whole viewstate is always sent) and by the sounds of it pretty much the same amount of data comin back. It would reduce network traffic a bit and get rid of the screen flicker though.

You really need to put just the bits that update in multiple UpdatePanels, they will all get updated when one does. However, I'd go one step further and set all of them to UpdateMode="Conditional" so you can only update the panels you need to when you need to.


Thank you. I looked into that a bit further and also watched a video on multiple update panels. I will try this, conditional updates and add triggers to the update panels. Thanks again.

Saturday, March 24, 2012

Upgrade from Beta

Hi ive got a server that is running ASP.NET 2.0 AJAX Extensions Beta 2,

ivebuilt a new app using the official release 1.0, when I place the new framework on the server will it cause any issues on my existing app as they will be runing side by side?

I believe that during the installation of the latest version, you will be prompted to remove the old version first. So you will need to upgrade your existing app first.

I'm not sure if copying the dlls directly from where you installed them on your machine and pasting them into the server's GAC would work or not, but it's worth a shot. Technically they're different versions and should be capable of being installed side-by-side, but the installer doesn't allow it.


There are migration guides availablehere. Side by side install is not supported. You need to upgrade to ASP.NET AJAX 1.0.

Upgrade from AJAX EXT CTP

Hi,

I currently have a web site that is developed using the ASP.NET AJAX extension released in late 2006, along with the AJAX tool kit control.

I just realised MS has release the RC1 of the AJAX extensions and BETA2 of the tool kit. I want to use the latest versions so i want to upgrade the consuming web project.

How do i go about consuming the new assemblies? Is there a step by step instruction on how to upgrade from earlier beta and CTP releases?

I am assuming there will be significant configurations required like referencing new assembles, web.config changes, tag prefixes etc

Thanks

Jim

Microsoft release Ajax 1.0 last month. You can see migration notes herehttp://ajax.asp.net/documentation/default.aspx?tabid=47

Upgrade issue - RC to full release

Hi All -

I upgraded from the RC of ASP.Net AJAX Extensions to the 1.0 full release versin.

I started by uninstalling the RC version, uninstalling the ASP.NET AJAX December Futures CTP and (here is where I probably made my mistake) removing the toolbox tabs for AJAX Extensions and the AJAX Control Toolkit.

After installing the release version of ASP.Net AJAX Extensions 1.0 and the ASP.NET AJAX January CTP I did not get the toolbox items back (for the standard items - ScriptManager - UpdatePanel - etc.). I did not even get a AJAX Extensions tab in the toolbox. I have tried running the install again and doing a repair, I tried looking for a dll to refereence when "chossing items" to add to a new tab. Nothing seems to work.

Please help

Thanks

Try adding them back manually from Tools menu, Choose Toolbox Items, Browser to Ajax/AjaxToolkit folder select .dll and select controls.


Try adding them back manually from Tools menu, Choose Toolbox Items, Browser to Ajax/AjaxToolkit folder select .dll and select controls.

Alos

Try adding them back manually from Tools menu, Choose Toolbox Items, Browser to Ajax/AjaxToolkit folder select .dll and select controls.

Also

Try adding them back manually from Tools menu, Choose Toolbox Items, Browser to Ajax/AjaxToolkit folder select .dll and select controls.

Also follow

Thanks Nilesh -

I get the same interface as I do when right clicking on the tab - I select the AJAXExtensionsToolBox.dll and an error message pops up - "There are no components in AJAXExtensionsToolBox.dll that can be placed on the toolbox".

This is not the AJAX Toolkit I am tryng to recover the toolbox items for - it is the basic AJAX tools...

NileshDesh:

Try adding them back manually from Tools menu, Choose Toolbox Items, Browser to Ajax/AjaxToolkit folder select .dll and select controls.

Also follow

Upgrade issue - Please Help

Hi All -

I still have not resolved this issue from a previous post - any help appreciated.

I upgraded from the RC of ASP.Net AJAX Extensions to the 1.0 full release versin.

I started by uninstalling the RC version, uninstalling the ASP.NET AJAX December Futures CTP and (here is where I probably made my mistake) removing the toolbox tabs for AJAX Extensions and the AJAX Control Toolkit.

After installing the release version of ASP.Net AJAX Extensions 1.0 and the ASP.NET AJAX January CTP I did not get the toolbox items back (for the standard items - ScriptManager - UpdatePanel - etc.). I did not even get a AJAX Extensions tab in the toolbox. I have tried running the install again and doing a repair, I tried looking for a dll to refereence when "chossing items" to add to a new tab. Nothing seems to work.

This is *NOT* the ASP.Net Ajax Toolkit that I am refering to - but the main ASP.NET Framework install and the main tools like ScriptManager and UpdatePanel.

Thanks...

To get the main controls into your toolbox, and into a tab, you need to first right-click inside a blank area of your toolbox and choose 'Add Tab', which you can then rename. Next, make sure that tab is extended/open, then right click in a blank area under the tab and click 'choose items'. Under the .NET Framework Components tab, click on the 'Assembly Name' column heading to sort by assembly names. Scroll down to the first entry for the "System.Web.Extensions" assembly, then place a checkmark next to each control from that assembly. Select 'OK' and you should be all set.

If you don't see them in the component box, try doing the above in a project that currently has System.Web.Extensions as a reference.


I am not finding System.Web.Extensions which is weird because I can still actually add the controls to a page by clicking the source tab and then just putting the HTML tags in like <asp:ScriptManager></asp:ScriptManager> .This works but no matter what I do I cannot get the items into the toolbox.

ps2goat:

To get the main controls into your toolbox, and into a tab, you need to first right-click inside a blank area of your toolbox and choose 'Add Tab', which you can then rename. Next, make sure that tab is extended/open, then right click in a blank area under the tab and click 'choose items'. Under the .NET Framework Components tab, click on the 'Assembly Name' column heading to sort by assembly names. Scroll down to the first entry for the "System.Web.Extensions" assembly, then place a checkmark next to each control from that assembly. Select 'OK' and you should be all set.

If you don't see them in the component box, try doing the above in a project that currently has System.Web.Extensions as a reference.


James Evans:

I am not finding System.Web.Extensions which is weird because I can still actually add the controls to a page by clicking the source tab and then just putting the HTML tags in like <asp:ScriptManager></asp:ScriptManager> .This works but no matter what I do I cannot get the items into the toolbox.

Check your global assembly cache to make sure anything with Microsoft.web has been uninstalled. (you may need to uninstall January CTP for this... reinstall it later). Windows directory/assembly/. (In my case, after installing service pack 1, the older versions of AJAX were no longer displayed in the control panel for removal).

To add the System.Web.Extensions dll to a project, you'll need to navigate to where the dll was installed. by default, this is %Program files%\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\. (You may see remnants from Microsoft.Web dlls in here, too).

You should then be able to add the controls to the toolbox as described in the previous post.

Upgrading a plain old ASP.NET Web Site to ASP.NET Ajax 1.0 RTM

Hello,

I have a plain old ASP.NET 2.0 website, which I'd like to update to use ASP.NET Ajax. I followedhttp://ajax.asp.net/documentation/Migration_Guide_CTP_to_RTM.aspx and updated the web.config file, but I keep getting ["Sys.Application" is null or not an object] script errors when I run the site. My site requires some custom config sections and a whole lot of external references so I'd rather avoid deleting my web.config and start all over. Is there any possible reason for ASP.NET Ajax not kicking in, how can I solve this? This is the first installation of ASP.NET Ajax on this machine (so no CTP or Beta has been installed before)

Kind regards,

Wouter

Did you add a reference to System.Web.Extensions for your website? Did you register any java script files you have with the scriptmanager?

Upgrading ASP.NET 2.0 projects to Atlas

How do you upgrade an existing ASP.NET 2.0 project to Atlas? I already install the Atlas April 2006 CTP. I can create Atlas websites in VS 2005 but I want to upgrade some of the projects I have to Atlas.

hello.

well, you need to put the atlas dll on the bin folder, copy some entries from the default atlas web.config to your app's config and, if you're using bridges, add a new extension to iis.


bass_player...

Try these instructions on my blog -http://codebetter.com/blogs/jay.kimble/archive/2006/05/19/144952.aspx

I think they will help you out considerably.

Jay


bass_player...

Try these instructions on my blog -http://codebetter.com/blogs/jay.kimble/archive/2006/05/19/144952.aspx

I think they will help you out considerably.

Jay


Thanks a lot Jay, I really appreciate this. I just need to try it out. Will give you some updates.

Upgrading Extender control from Atlas to ASP.NET AJAX

Hi,

I have an extender control written in atlas. I want to upgrade it to asp.net ajax.

Its so sad that there are no documentation for upgrading an extender control.

My extender control is as follows.

publicclassMyExtender : ExtenderControl<MyTargetProperties>

{

public MyExtender()

{

}

publicstring ControlID

{

get

{

return (string)ViewState["ControlID"] ??"";

}

set

{

ViewState["ControlID"] =value;

}

}

protectedoverridevoid OnInit(EventArgs e)

{

// Init code

base.OnInit(e);

}

protectedoverridevoid OnLoad(EventArgs e)

{

base.OnLoad(e);

}

protectedoverridevoid OnPreRender(EventArgs e)

{

base.OnPreRender(e);

}

protectedoverridevoid RenderScript(Microsoft.Web.Script.ScriptTextWriter writer,Control targetControl)

{

// write the script here

}

}

publicclassMyTargetProperties : TargetControlProperties

{

protectedoverridebool IsEmpty

{

get {returnfalse; }

}

}

Can somebody suggest what I need to do ?

The moment I remove the Microsoft.Web.UI namespace, I get plenty of errors.

Thanks

Hi,

Maybe it's not too hard to start with a new control based on the doc, and migrate your code:

Adding Client Behaviors to Web Server Controls by Using ASP.NET AJAX Extensions

or

Adding Client Capabilities to a Web Server Control by Using ASP.NET AJAX Extensions


hello.

well, several things have change since then but i'll try to recall what yoyu need to do. the first thing is to drop the targetcontrolproperties since they are no longer needed.

the second thing you need to know is that the client behavior object (JS) is introduced in the page through what is know as a ScriptDescriptor object. currently,you have 2 options: ScriptBehaviorDescriptor and ScriptControlDescriptor (it all depends on what you're developing: behaviors or client controls). Besides one of these objects, you'll also need a scriptreference to indicate the client files that must be loaded. what you can't forget is to:

1. during prerender, call registerextendercontrol method

2. during the render method, you must call the registersccriptdescriptors

do notice that if you're extending the extendercontrol class then you don't need to worry about this: just override the abstract getscriptdescriptors and getscriptreferences methods

i still think that the easiest way to understand what's going on is to use reflector and take a look the code you have in the current version of the platform...

Upload Image Without PostBack in Asp.Net 1.1

I want to upload image without PostBack in Asp.Net 1.1 not 2.0. Is it possible to upload image without postback?

Technically, no. You can isolate the postback by using an IFRAME, however. Just build a page that handles the image uplaod bit (and not hing else), then refer to said page as the src of an IFRAME in whatever page youw ant to have host the 'upload control'.


Do you have any example code? I don't have any idea. I want to upload image without Postback and then the image will be appear in the Image web contorl. I'm using asp.net 2.0.

Thanks,

Uploadcontrol asp.net

Hi Friends, Using upload control in asp.net how can we upload .mp3 and power point presentation.Because i want to store that information in MS sqlserver.Can anybody help me to provide c# code thanxkiran

please refer to this MSDN articlehttp://msdn2.microsoft.com/en-us/library/aa478971.aspx

to save your file to a Database refer tohttp://www.codeproject.com/aspnet/fileupload.asp

UploadPanel and Session problem

I have an UpdatePanel and a simple asp Button inside it, that produces asynchronous postbacks to server. Server-side onButton_Click event handling is a lasting operation(about 5 sec) thats why if async postback is in process user should be able to go to another page or make any actions.

Everything works fine unless the session object is used anywhere in application(not even in the button on click handler!). If session object is used IE doesnt allow you to make any type of postback while current async postback is in progress.

Has enyone encountered such a problem? Please Help!

Hi,

Asp.net is typical a multi-thread environment, and for thread safety, page requests using session state internally use a ReaderWriterLock to manage access to the session state.So, the second request will not be able to access it untill the lock by the previous request is released.

It should work if the second page doesn't make use of session or use <a> tag to perform redirection.


Hope this helps.

Wednesday, March 21, 2012

urgent - plz provide me with help

i m an asp.net dev with C#

i dont know any thing abt ajax

what can i do to learn it through short time

is the "how to " series help me to learn ajax from begining

or another series or a book is better

i prefer vidos

is it ok to begin as i dont know anything abt ajax

When you are a novice in a subject, it means you dont know anything about it. You can easily get along with ASP.NET AJAX and its easy to develop/implement sites in ASP.NET AJAX. There is a lot of stuff available to learn ajax.http://ajax.asp.net

For video's check this linkhttp://www.asp.net/learn/videos/default.aspx?tabid=63#ajax

For any questions or doubts you can use theASP.NET AJAX Forum

Good Luck!


i know that

"There is a lot of stuff available to learn ajax"

my question was

if i dont know any thing about ajax yet

but i know C# and ASP.net

is these videos suffecient to begin with ????

or it needs me to know some about ajax first or to have background about it ????

i dont have even a bachground about ajax but i need to learn it and dont know how to begin

thanks a lot for your care


Well, the links I gave you are for novice and they should help you a lot. A good understanding of the Page Life Cycle, and javascript will be an advantage.

Thanks

Urgent Help Required

Hi All,

I am new to Atlas Technology. Just I started an application with Atlas but it is not working. I created web site using Asp.net Web site Template instead of using Atlas Web Site template. I refer Atlas dll in my application, then also it is not working, it shows an "Unknown Error" message. Can we use Atlas if the application opened in asp.net web site template. Or we must need to open it in Atlas web site template.

Can any one tell me what are all the requirements needed for Atlas based application, that is in Client and developing machine requirements. Whether we need JVM for running Atlas based application.

I just create a sample web application using Asp.net web site template. The page consist of two text box and two button. One button is "Add" and other button is "Back". If I press Add button it call server side btnadd_Click using Atlas. But it is not working. I am pasting my code here please tell me solution for this.

<atlas:ScriptManager id="scptMgr" runat="server" EnablePartialRendering="true" />

<asp:TextBox ID="txtAstClassName" runat="server"></asp:TextBox>
<asp:TextBox ID="txtAstClassPrefix" runat="server"></asp:TextBox>

<atlas:UpdatePanel Mode="Conditional" ID="atlasUpdate" runat="server">
<ContentTemplate></ContentTemplate>

<Triggers>
<atlas:ControlEventTrigger ControlID="btnAdd" EventName="Click" />
</Triggers>
</atlas:UpdatePanel>
<asp:Button ID="btnAdd" runat="server" Text="Add"

OnClientClick="AddUpdateAssetClass()" OnClick="btnAdd_Click" />
<asp:Button ID="btnBack" runat="server" Text="Back" />

I set web config like this

<

controls>
<

add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas" />
<

add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas" />
</

controls>

In this I call server side Add Click event in Atlas Trigger. But It shows error.

It is very urgent Please help me, Any sample program which is created using Asp.Net web template and Atlas pls send to me.

maximasshel@dotnet.itags.org.yahoo.com

maximasshel@dotnet.itags.org.hotmail.com

Regards,

Maximasshel

Hi,

if you are working with the ASP.NET WebSite template, be sure to reference the Atlas dll but also to update the web.config (the changes you made to your web.config are not enough).

The easiest way to update the web.config is copying it (or the relevant sections) from the Atlas WebSite template.

Hi

I refer dll in my application and I get this config information from other project which is created in Atlas Web Site template.

I just include add button event in atlas trigger, that shows error.

regards,

maximasshel

Urgent Help: Update Panel and Form Templates? - Need to finish this week ends.

Hello

I am new to ASP .NET so just wanted to confirm.

I actually tried a lot in regular asp .net website to update my textboxes when selecting a value from dropdown list.

but no luck.

so is update panel better in these cases. and does this work without having to code..

because i have two weeks left to this one page. and i was stuck on updating values of text boxes, checkboxes fields when updating ddl. i have ddl inside the formview template.

so when using update pannel: ddl will be outside the formview template??

how does it work basically??

please help asap.

thanks a lot all.

looking forward for reply.

surbhi

Have you use the OnSelectedIndexChanged event of the DDL yet ? Make sure you set the DDL AutoPostBack = true

No. I dont know how to use that event.

I am new and using VB for coding ..

Dont know how to use C#..

How do i use findcontrol statements in vb?

help asap. i have to finish it this week..

Thanks

Surbhi


You would probably benefit the most by looking at tutorials online then waiting for people to reply. Questions about events and c# or vb.net syntax can easily be answered by searching.

Well.. Ofcourse I have been looking online as well.

Not finding enough information on how to use this event..

Meanwhile here is my vb code for ItemUpdating event..

I dont know where I am making mistake. Correct me.. and I am using Formview, Sql DataSource.

and DropDownList which has project numbers. I just want to display new values when I select a different value in DDL. I have AutoPostBack=true and AppendDataBound =True..

Here is the code:

Private

Sub FormView1_ItemUpdating(ByVal senderAs Object,ByVal eAs FormViewUpdateEventArgs)'Dim ProjectNameTextBox As TextBox = FindControl("ProjectName")'Dim FormView1 As FormView = CType(sender, FormView)Dim rowViewAs DataRowView = CType(FormView1.DataItem, DataRowView)Dim rowAs FormViewRow = FormView1.RowDim ProjectNameTextBoxAs TextBox = CType(row.FindControl("ProjectName"), TextBox)

e.NewValues(

"ProjectName") = CType(row.FindControl("ProjectName"), TextBox)

ProjectNameTextBox.Text = rowView(

"ProjectName").ToString()

end sub

Urgent! Need a asp.net Ajax enabled TreeView control

Hi,

I need a asp.net ajax enabled TreeView control, its not a part of the AjaxControl Toolkit. I need to know where from I can get it.Please let me know if any of you have come accross a one.

Thanks in advance,

Subhadip

http://www.google.be/search?hl=nl&q=treeview+ajax&btnG=Zoeken&meta=

Lots over there ;)

Kind regards,
Wim