Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Monday, March 26, 2012

My .aspx lost his format when I change a property on design mode

Hello,

I've just updated my project to the new ajax beta 1.

Everything looks fine, but when I make some change on my pages in design mode, the aspx source code lost completly the previous format.

Somebody could help me.

Thanks,

Rodrigo Sendin

Hello Ajax Guys,

I think my problem is related with an issue posted by "tschlarm" today (Beta 1 issues). I am working with Master Pages and I used to work in Design mode. After beta 1 I am having problems with the format of the aspx source code. (the source code format is totally changed when I work in Design)

I´ve modifed my web.config in order to change the tagPrefix of ajax controls (from asp to ajax), and the problem has stoped. My web.config was changed to:

<addtagPrefix="ajax"namespace="Microsoft.Web.UI"assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<addtagPrefix="ajax"namespace="Microsoft.Web.UI.Controls"assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

<addtagPrefix="ajax"namespace="Microsoft.Web.Preview.UI"assembly="Microsoft.Web.Preview"/>

<addtagPrefix="ajax"namespace="Microsoft.Web.Preview.UI.Controls"assembly="Microsoft.Web.Preview"/>

Thanks,
Rodrigo Sendin

My completed project that has a GridView. How to "just add" Ajax?

Hi, I have a completed project, no changes need to be made, no modifications need to be done. Many modules contain GridViews and I notice the delay when posting back each time an item is selected. How can I adjust project to enable Ajax when selecting an item in the GridView?

Notice the emphasis I have put in that my project is "completed", my point is this, imagine the average programmer, working as a consultant, the boss behind each second checking up "recent updates", also studying so work hours have to be "work hours", in other words, no time to Google Ajax or buy Ajax for Dummies, get 2 weekends and start learning it from scratch, I am not saying I will not have the time ever, I will (I hope :p) but honestly, I need a way to work this out first, If I have to learn Ajax then I will learn Ajax enabling it in my gridviews.Yes

I think you'll enjoy this video:

Video - Developing ASP.NET 2.0 Applications using AJAX

by Scott Guthrie, General Manager, .NET Development Platform

One of the great features about ASP.NET AJAX is how easy it is to take an existing application and add rich client-side behavior to it using AJAX . In this video demonstration, Scott Guthrie creates a ToDo List application with ASP.NET 2.0 and then adds AJAX capabilities to it, using a preview "Atlas" release of ASP.NET AJAX .
(The video length is 18 minutes)

Watch this video


Thanks, and for those that does not know is this simple:

<form id="form1" runat="server">
<atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/
<atlas:UpdatePanel runat="server" ID="UpdatePanel1" Mode="Conditional">
<ContentTemplate>

Add here controls and all will magically happen!!Big SmileBig Smile

</ContentTemplate>
</atlas:UpdatePanel>
</form>

Saturday, March 24, 2012

My host havent got Ajax

Hi;

I want to use Ajax (codename atlas) , my project is working in my computer but my host isn't work (because my host havent got Ajax Confused )

my hosting administrator doesnt allow for setup ajax

What can I do ?please help

THANKS

Sel?uk Ak

Add the needed assemblies to your Bin folder.

Which file I must add \bin directory for standart using ?

Thanks


For RC 1 add: System.Web.Extensions.dll & System.Web.Extensions.Designer.dll usally located C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025 and if you are using the toolkit you must also add: AjaxControlToolkit.dll and this is located where ever the samplewebsite is that came with the Control Toolkit.

I can't found System.Web.Extensions.dll but in this directory (:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025)

I found microsoft.web.extensions.dll and other so I copy this file to my web aplication from the host but after that I take this mistake :(

What Can I do

Thanks

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 37: <compilation debug="true">Line 38: <assemblies>Line 39: <add assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 40: <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>Line 41: </compilation>


Source File:C:\Inetpub\vhosts\osozluk.com\httpdocs\osozluk\web.config Line:39

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


You're not using the latest version. See here: http://ajax.asp.net/files/AspNet_AJAX_CTP_to_RC_Whitepaper.aspx

I uninstall ajax Ctp and setup new versiyon after I want try new ajax so I make new project ,in this projet there are only one button and a label

when I click buton label text is change, this project is working my computer but when I copy my host still this is not working (and also I make bin directory and copy System.Web.Extensions.dll ,System.Web.Extensions.Design.dll )

I take this mistake again and againSuper Angry

------------------------------------------------------------

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 37: <compilation debug="true">Line 38: <assemblies>Line 39: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 40: </assemblies>Line 41: </compilation>


Source File:C:\Inetpub\vhosts\osozluk.com\httpdocs\ajaxyeni\web.config Line:39

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Namespace Help Please (Custom Composite Control/Extenders Project)

Ugh! Okay, so here's the situation. I have 2 custom extenders and a compsite control in a dll project. What is the best way to organize the files? I want to be able to access the extenders from any asp page as well.


The extenders are: DropZoneExtender and DragItemExtender
The control is: DragDropRepeater

Here's the file structure I have for the project ..

My problem is that while there are no immediate namespace issues, when the page is loaded I get the familiar "Assertion Failed: Unrecognized tag dropzone:DropZoneBehavior" popup.

Here's what the code looks like:

// DropZoneBehavior.js

Type.registerNamespace('DropZone');
DropZone.DropZoneBehavior = function() {
DropZone.DropZoneBehavior.initializeBase(this);
...
// code
..
}
DropZone.DropZoneBehavior.registerSealedClass('DropZone.DropZoneBehavior', AtlasControlToolkit.BehaviorBase, Sys.UI.IDropTarget);
Sys.TypeDescriptor.addType('DropZone', 'DropZoneBehavior', DropZone.DropZoneBehavior);

 
// DropZoneExtender.cs#region Assembly Resource Attribute[assembly: System.Web.UI.WebResource("DragDropRepeater.DropZone.DropZoneBehavior.js","text/javascript")]
#endregion
namespace DropZone
{
[ClientScriptResource("DropZone","DropZoneBehavior","DragDropRepeater.DropZone.DropZoneBehavior.js")]
[RequiredScript(FrameworkScript.AtlasUIDragDrop)]
public class DropZoneExtender : ExtenderControlBase
{
}
}
Anyone have any suggestions?

Hey,

I tried to fin the post, but no luck. Look for Case - Sensitive on the Atlas lists. The last Atlas Update made changes for Safari, and for some reason it needs the Namespace lowercase.

here is the current Script namespace. Now lowercase.

Sys.UI.DraggableListItem.registerSealedClass('Sys.UI.DraggableListItem', Sys.UI.Behavior);
Sys.TypeDescriptor.addType('script', 'draggableListItem', Sys.UI.DraggableListItem);

So change your:

DropZone.DropZoneBehavior.registerSealedClass('DropZone.DropZoneBehavior', AtlasControlToolkit.BehaviorBase, Sys.UI.IDropTarget);
Sys.TypeDescriptor.addType('dropzone', 'DropZoneBehavior', DropZone.DropZoneBehavior);

also change your

[ClientScriptResource("dropzone", "DropZoneBehavior", "DragDropRepeater.DropZone.DropZoneBehavior.js")]

Here is the link!!!

http://forums.asp.net/thread/1276996.aspx

Good luck.

Eric Wild


I figured it out, and actually its a little more complicated. I'm considering making a blog post about it.

Oh and lol .. remember, when you are creating the extenders from scratch .. make sure you mark the javascript files as an embedded resource. *smacks forehead* I used the example of the ReorderList, which is essentially what I'm creating where its based on the non-list versions of the dragdropUI and where reordering is not important, just the dragdrop.

Wednesday, March 21, 2012

need help Atlas bridge error

hello,

I use atlas framework for my web aplication to prevent refreshing on the page. I had develop my project in my local folder and ran it then it was ok. but when I carry the atlas folder to the iis I faced with a problem like:

Server Error in '/' Application.
------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The element 'buildProviders' cannot be defined below the application level.

Source Error:

Line 63: -->
Line 64: <compilation debug="true">
Line 65: <buildProviders >
Line 66: <add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider"/>
Line 67: </buildProviders
Source File: C:\Inetpub\wwwroot\mos\rac\web.config Line: 65

--------------------

I tried both compiled(published) files and precompiled files to open in iis I had same error.

Please, it is critical for me to solve this problem otherwise I could not publish this site on the net.

I need your help, (I use .net 2005+atlas framework)
Thank you from in advance

Hi,

please check thisthread.

garbin,

I really want thank you again, because I was looking for the solution of this problem for 2 days and found lots of documents but not related to solve this..

thank you again,

Need Help from you all

Hello All,

I am pretty new to ASP.NET 2.0 and AJAX... I am working on a project.. which basically

provides the real time monitoring of our system...

I have various grids, labels.. text boxes.... on one single real time screen...

Currently I am using multiple update panels with one timer control...

Applications working fine.. but sometime at random places.. error occurs.. different kind

of errors...

i have various classess... like to populate grids.. i have a grid class.. similary.. for

labels.. i have seperate class.. methods in the classes basically use stored procedures to

fetch the data.

I dont know is this the right approach... or should i use web service... or what??


I am pretty confused how to go on with this?? what is the ideal solution in a situation

like this??

I am really looking forward to u all to help me in this problem.. My project's deadline is

approaching..

Best Regards,
Faisal Fareed

Hi Faisal,

I'd like to help you, but I'm not clear about your problem.
Can you elaborate your situation?

Dear Raymond,

Many thanks for your reply.

Actually I am developing an AJAX enabled web application using ASP.NET 2.0 (C#). I have number of webforms for different type of users (registered in my application's DB).

I will take one web form (branch.aspx) that will be for GENERAL USERS group.

I have 7 update panels, one timer control, 3 grids and various labels.. all these controls are divided in my update panels... each control's data is fetched from a seperate stored procedure..

I have implemented 3 classes (one for grid, one for labels and one for my graph) and methods in these classes throws me the data...

My question is.. is this the right approach to work AJAX enabled web applications or not?? Moreoever I am getting client side exceptions.. like PageRequestManagerTimeOutException, PageRequestManagerServerErrorException... I dont know how to handle them.. I want to avoid these popups..

I hope now you understand my problem.

Waiting for your response.

Best Regards,

Faisal


To make use?of UpdatePanel?is?the?easiest?way?of?making?a?Ajax?enabled?web?application.?And?most?of?time,?it's?the?best?choice.
But as you've said, it's a real time system. I think the the timer which fires too frequently may bring too much burdens?to?the?server.

I've the following suggestions for you:
1. Reduce the interval of the Timer control
2. Set the UpdatePanel's UpdateMode to conditional to avoid uncessory traffic.

Dear Raymond,

Ok, suppose I change the UpdatePanel's property UpdateMode from Always to Conditional.. Do I need to add up any extra code??

I have increased the timer control... now things looks pretty better than before...

One more thing.. the approach I mentioned in my last post to fetch the data and populater my controls on webform...is it ok? or do i need to use web services?? or any other approach.

Best Regards,


You need to explicitly call UpdatePanel's update method to have its data refreshed.

Basically, I think your current approach is OK. There will be more performance hit if you switch to web service.

Raymond,

thanks for your time and guidance on this. Can you tell me if there are any published publicly available performance analysis works which compare Updatepanels to other forms of asynchronous calls in an AJAX app?

thanks,

Paul


Raymond Wen - MSFT:

To make use of UpdatePanel is the easiest way of making a Ajax enabled web application. And most of time, it's the best choice.
But as you've said, it's a real time system. I think the the timer which fires too frequently may bring too much burdens to the server.

I've the following suggestions for you:
1. Reduce the interval of the Timer control
2. Set the UpdatePanel's UpdateMode to conditional to avoid uncessory traffic.

Hi Ramond,

We're getting the 'PageRequestManagerServerErrorException (Error 500)' error here too. TheAJAX v1.0 application is a customer numbering system (CSAS) where 14 counter clerks each hit a Web Service every 3 seconds. The VB data access Web Method that the client hits, caches for 8 seconds. The error occurs seeming randomly as many as 6 times in a work day – the same in two offices, each with there own server. It seems to affect all clerk PCs the same and usually occurs without keyboard activity. The clerk only needs to click OK to acknowledge the error – but none the less, the error needs to be fixed. The entire markup is within a single triggered UpdatePanel.

Other errors pop up once in a while too. The 500 error is the most prevalent and has our attention for now. We've watched the forums since 1/2007 and tried all of the recommended fixes and work a rounds, as best we could, but to no avail.

We previously hacked through a persistent PageRequestManagerParserErrorException error using btolly's java script work-around posted inhttp://forums.asp.net/thread/1602799.aspx .

We've written several other helper applications in our office using AJAX UpdatePanels and triggers, all working as expected. Admittedly the CSAS project code is crude and needs to be rewritten, but not until we're convinced that we're inside the envelop and convinced thatAJAX can handle the issue of such constant and repetitive activity using theAJAX timer and UpdatePanel.
Any comments?

Thanks,
Glenn Michael


We are getting the dreaded Sys.WebForms.PageRequestManagerServerErrorException with a 500 too and found the central issue. On one server we are using sessionState of mode="InProc" but on our load balanced webfarm we are using mode="SQLServer". On the InProc server we are not getting the Ajax error but we are on the SQLServer using theSAME CODE. We're researching the problem but wanted to know if anyone else was getting this error.

NEED HELP FROM U ALL

Hello All,

I am pretty new to ASP.NET 2.0 and AJAX... I am working on a project.. which basically

provides the real time monitoring of our system...

I have various grids, labels.. text boxes.... on one single real time screen...

Currently I am using multiple update panels with one timer control...

Applications working fine.. but sometime at random places.. error occurs.. different kind

of errors...

i have various classess... like to populate grids.. i have a grid class.. similary.. for

labels.. i have seperate class.. methods in the classes basically use stored procedures to

fetch the data.

I dont know is this the right approach... or should i use web service... or what??


I am pretty confused how to go on with this?? what is the ideal solution in a situation

like this??

I am really looking forward to u all to help me in this problem.. My project's deadline is

approaching..

Best Regards,
Faisal Fareed

This is a duplicated thread as http://forums.asp.net/thread/1703339.aspx

Need help Publishing Ajax Web Project

Hello everyone,

My name is Fred and I am new in this site. I want to try out Ajax Control toolkit which I downloaded from this site. I have an issue. I can install the toolkit on my desktop but cannot install on the server. My friend told me that I need to install Ajax Control toolkit on the test/production server as well.

Is it possible to put the toolkit assembly files (or something that I don't know) into my web application setup package? So the sys admin will install it without any special question. Thank you.

Fred.

I went ahead and made a setup package including System.Web.Extensions assembly in the package. After Sys Admin install the package at the server, we got the following message. Please help me.

Parser Error Message:Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\inetpub\wwwroot\Ajax\web.config line 39)

</httpHandlers>Line 38: <httpModules>Line 39: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 40: </httpModules>Line 41: </system.web>

Hi,

SeeCould not load file or assembly System.Web.Extensions for more information and find out a solution.

This error have many different causes.

A lot of people run into it,and most of them finally figured out it and post up their solution.

Best Regards,

need help with a modal extender control

I am working on a project that has two modal extenders on one page, and two panels. Which have their own separate buttons which can trigger each panel to open. On the same form there is a gridview control, the user will select a row then in the code behind i trigger the click event for one of the button, so that it will oepn one of the panel it seemed to work fine before just using modalextender...1.show() when it stop working i added the code to raisethe click event for the control. After doing so it doesn;t open the panel instead, i have to click the button that that is setup as theTargetControlID two or three time just for the pop up menu to open. What is the right way to go about doing this. I wander if anyone else has had the same problem.

((IPostBackEventHandler)lnkPanel2).RaisePostBackEvent(null);

this.ModalPopupExtender2.Show();

Hi Lew26,

My suggestion is use Javascript to show the ModalPopupExtender directly. For example:

use $find("ModalPopupExtender's BehaviorID ").show(); to show the Panel and use $find("ModalPopupExtender's BehaviorID ").hide(); to hide the showing Panel. The Buttons which will lead the ModalPopupExtender to shown or to hidden should be put inside a hidden div. Take an example: <div style="display:none">your Buttons</div>. Here is my sample:

<%@. Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<script runat="server"
protected void Page_Load(object sender, EventArgs e)
{
//Attach a Javascript funtion to the LinkButton.
LinkButton myLinkButton;
for (int i = 0; i < GridView1.Rows.Count; i++)
{
myLinkButton = (LinkButton)GridView1.Rows[i].Cells[4].FindControl("LinkButton1");
myLinkButton.Attributes.Add("onclick", "shopModalPopup('" + GridView1.Rows[i].Cells[0].Text + "');return false;");
}
}
</script
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<style>
.modalBackground {
background-color:Gray;
filter:alpha(opacity=70);
opacity:0.7;
}

.modalPopup {
background-color:#FFD9D5;
border-width:3px;
border-style:solid;
border-color:Gray;
padding:3px;
width:250px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="EmployeeID"
DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="EmployeeID" HeaderText="EmployeeID" InsertVisible="False"
ReadOnly="True" SortExpression="EmployeeID" ItemStyle-Width="0" />
<asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
<asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server">Click On Me</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NORTHWNDConnectionString%>"
SelectCommand="SELECT [EmployeeID], [LastName], [FirstName], [Title] FROM [Employees]">
</asp:SqlDataSource>
<asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" Height="200px" Width="300px" style="display:none">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
EmployeeID:<asp:TextBox ID="tbEmployeeID" runat="server"></asp:TextBox> <br/>
Reason:<asp:TextBox ID="tbReason" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>
<asp:Button ID="btnCancel" runat="server" Text="Cancel" />
</asp:Panel>
<div style="display: none">
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
<ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="Button1"
PopupControlID="Panel1" CancelControlID="btnCancel" BackgroundCssClass="modalBackground">
</ajaxToolkit:ModalPopupExtender>
<script type="text/javascript" language="javascript">
function shopModalPopup(employeeID){
//show the ModalPopupExtender
$get("<%=tbEmployeeID.ClientID%>").value = employeeID;
$get("<%=tbReason.ClientID%>").value ="";
$find("<%=ModalPopupExtender1.ClientID%>").show();
}
</script>
</form>
</body>
</html>

I hope this help.

Best regards,

Jonathan

Need License for AJAX, Controll Toolkit or for the included FreeTextbox?

Hy,

For a Project of my company, I also checked AJAX. But when I "install" my own Test-Development of a ASP.NET AJAX Control Toolkit Project on an Web-Server, I get the Message that the FreeTextbox is missing. Therefore I need to copy the FreeTextbox.dll to the bin-Folder.

I searched in the Internet for the FreeTextbox.dll. On one Page, there are different Licenses available.

I want to distribute the developed ASP.NET-Ajax-Solution not for free!

So do I need a License for AJAX or for the in AJAX included FreeTextbox?

Thanks

Hi

The AJAX TOOLKIT this on the license form"Microsoft Permissive License."
SeeHTTP://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.

The FreeTextBoxis not part of product ASP.NET AJAX or of the AJAXTOOKIT, being thus to verify the forms of licenses in the site of the product (http://freetextbox.com/) and its implication in working with other products and different licenses.

[ ]

Fernando Cerqueira