Showing posts with label ive. Show all posts
Showing posts with label ive. Show all posts

Wednesday, March 28, 2012

Installation problems with AJAX on WinXP, VS.NET Express pls help

I'm sure you get this stuff a lot, but I've looked through the archives and don't see exactly my situation.

Background info:

My machine in WinXP, and I'm using the Express web developer edition.

I moved my MyDocuments location to my D: drive and also renamed it to the more sensible, UserData. I don't know if this is the source of a problem or not. Visual Studio is installed on my C: drive. The path to where I put my Ajax files is:

"D:\UserData\Visual Studio 2005\Ajax

I installed AJAX by running the ASPAJAXExtSetup.msi. No problemsthere. I opened VS is saw the Ajax tools, but didn't do anything else.

I then downloaded the AjaxControlToolKit and copied it to the Ajax folder noted above as well.

The problems:

When I open the AjaxControlToolkit solution (.sln) I get the error:

"...AjaxControlToolkit.csproj is not installed."

When I run AjaxControlExtender.vsi, but when I do this I get the following error messages:

"Installation stopped because the directory for the ProjectType value did not exist. The project type is invalid for your installation of Visual Studio."

And the tools don't install.

I then decided to skip that and try to just use the standard tools.

I created a blank AJAX enabled application, added an update panel and some other controls, tried to run it, and I get these warnings in the web.config file:

"Warning 1 The 'requirePermission' attribute is not declared. D:\UserData\Visual Studio 2005\Websites\AJAXEnabledWebSite1\Web.config 10 207 D:\...\AJAXEnabledWebSite1\"

Any help on these issues?

Thanks


Hi,

If you only installed Visual Web Developer Express ,How can you open C# project as you didn't installed C# Express?

Prerequisites: Downloading the Toolkit project requires that you have installed the VS 2005 Web Application Projects (WAP) update, available at (note there are two downloads, a VS 2005 update and the mainWAP update). However, if you install Visual Studio Service Pack 1 then the WAP update is included in it and need not be installed separately.

For more information,please check out:

AJAX Control Toolkit Project Page

http://www.asp.net/AJAX/Control-Toolkit/Live/Walkthrough/Setup.aspx

Best Regards

Installed ASP.NET AJAX CTP

Hey all,

I've installed the ASP.NET AJAX CTP, now what? I haven't seen anything change in the toolbox or is this an under the cover kinda of deal.

thanks,

rodchar

hello.

well, you have to add the controls by hand to the toolbox since the ctp controls aren't added automaticaly:

http://msmvps.com/blogs/luisabreu/archive/2006/10/23/How-to-add-the-value_2D00_added-controls-to-the-toolbox.aspx


SmileThank you.

Monday, March 26, 2012

Installing the AJAX Control Toolkit

Hi All,

I've downloaded the latest toolkit but don't seem to have any of the new controls. eg DropShadow or UpdatePanelAnimation.

When I open the semple website that comes with the download, I can view the source of the asp page but can't switch to design view. When I try, I get the following message:

error creating control - content 1

Unknown server tag 'asp:ScriptManager'

I am using Visual Web Developer 2005 Express edition - is this my problem and do I need a full vs2005 edition?

Many thanks in advance

Mike

Couple things could cause that. Most likely though you don't have the necessary changes made to your WEB.CONFIG. Create a new AJAX project from scratch and review the stuff it puts in there related to AJAX. Then merge those things into your WEB.CONFIG. Somebody should put together a FAQ on retrofitting an existing web.config file to support AJAX and the toolkit.

It also could be that you haven't copied the DLL for AJAX and the TOOLKIT into your BIN folder.

In order for the Toolbox controls to appear in the toolbox, you have to right-click in the toolbox and add the controls by pointing to the Toolkit DLL.


Hi there,

In my bin folder for my new application, I have the required DLL(Microsoft.Web.Atlas.dll). I have tried to add the toolkit to my toolbar, navigated to the relevant DLL and this throws up another error which I have put in another post.

One thing I have noticed is that uner My templates when I create a new site, I have "ATLAS" Web Site. Most docs I have read suggest it should say AJAX Website. I have the latest Atlas CTP installed so I am not sure why this is. Thanks for your tips so far and any further tips would be hugely appreciated.

Cheers

Mike


Atlas.dll is the old version, you need Ajax.dll

THere is a guide somewhere on this website for upgrading from the Atlas.dll syntax ...


Hi Dtaylo75,

Excellent. Found the guide. Deleted the Atlas CTP and Installed the AJAX Beta. Now the AJAX toolkit is included in my toolbar.

Many thanks for your time this afternoon.

Mike

Intellisense not updating UpdatePanel changes until...

I've just started using ASP.Net AJAX 1.0 in Visual Studio 2005 (Using VB.Net code editor). I've noticed that when I make a control change within an UpdatePanel (e.g. adding a new server control, or changing the ID of an existing server control), the intellisense in my code file is not updated until I close and reopen the .aspx file.

Is there a way to force this to refresh without having the close/reopen the .aspx file?

Thanks!

--Michael

Have you installed SP1 for VS 2005 and the Vista Update for that (if you are running vista)?


I'm not running Vista, and I have installed SP1.

Thanks


The lastest Visual Studio hotfix addressing intellisense issues has fixed the issue for me,

https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=9436

Saturday, March 24, 2012

invoke ModalPopUp from GridView button

I've got a ModelPopUp that works just fine from a LinkButton.

Now I need to launch the popup from a button in a GridView column/cell. Is there a way to specify that button in TargetControlID property - or is there another way I can programmatically invoke the modalpopup?

I Have a similar problem. I need to launch the popup from a treeview node, with the added hassle that I also need the modal popup to know the Id of the tree node that poped it up!

If I find a solution, I will post here for you.


Well, I can't say this is real elegant, but the way I do it is to put a button on the form, outside of the GridView and set its class so it's not visible (Make sure you use a style and not God forbid, the control's visible property!) Use this button's ID as your TargetControlID.

Attach a client side script to the button in your GridView that is supposed to launch the popup. In the script, call the fake button's click event.

So the code will be something like this:

<asp:ButtonID="ProxyButton"runat="server"CssClass="hidden"/>

<atlasToolkit:ModalPopupPropertiesTargetControlID="ProxyButton" .../>

In the GridView:

<asp:ImageButtonID="..."runat="server"OnClientClick="fakeClick()" .../>

The script:

function fakeClick() {

$('ProxyButton').click();

}

Hope it helps.

Kathy


Thanks Kathy - this does invoke the modal dialog just fine, but it generates two problems I'm hoping you can help with. The first is that the ProxyButton postback clears the modal just as soon as it's shown. Second, I don't know how to access the commandargument from the script - this contains the ID of which grid row the button was clicked on.

Any help?


As for the first problem, I don't think that the proxy button's postback is causing the refresh. It's a fake click after all. It's most probably the button in the GridView (or imagebutton or linkbutton or whatever it is). I don't know your exact scenario, but you may want to consider one of the following options:

1- Use an html control in your grid to invoke the click event of the fake button. Something like a simple div or img with its onclick event set to fakeClick(). As you know these won't cause a postback.

2- Enclose your GridView in an atlas:UpdatePanel. This will keep the button from posting back, too.

As for the second one, if you populate your GridView in the code (as opposed to automatically), you can bind the click event there and pass whatever argument you want, in there, too. Like say you want to launch the popup upon clicking an imagebutton control called Modify, in the grid, and you want to pass the ID of the record as the argument (assuming you got the value in sID and assuming you write VB code):

Dim ibModifyAs ImageButton

ibModify =CType(e.Row.FindControl("Modify"), ImageButton)

ib.Attributes.Add("onClick","fakeClick('" & sID &"')")

If you populate the grid automatically, there is a syntax for doing this in the aspx code itself, but I'm not sure of it. So the good news is that tt can be done and the bad news is that you have to do a little more searching on it. (I will post it if I remember it!)

Now you have to alter the fakeClick script to accept an input argument. You can pass it from there and do anything you want to do. Just to give you a heads up, if you are trying to populate your popup control dynamically, I hope you just have a little html code that needs to go in there. If you want to populate it dynamically, with server controls and all, you're in for a ride :)

Hope this helps.

Kathy


Hi everyone,

You might be interested in checking outhttp://forums.asp.net/thread/1404770.aspx which provides an example of invokingModalPopup from the server in response to aCommand event.

Thanks,
Ted

Are you sure that your javascript will work!?

function fakeClick() {

$('ProxyButton').click();

}

I think NO, becauseProxyButton is asp:Button

and $('ProxyButton') will be NULL, /$('ProxyButton')=document.getElementById('ProxyButton'), butProxyButton should be HTML element

What you think?


Hi StoyanPetrov,

The JavaScript should be fine - the asp:Button will render an HTML DOM element with the same name which then gets picked up by $.

Thanks,
Ted

Hi,

I've been trying to do the same thing and as mentioned above. The page does do an AJAX postback which will cause all the controls to be reset and hence the popup to disappear( you can test this by putting a breakpoint on the Page_Load function).

I found a fairly clumsy way around this. you basically have to do the following.

i) add an event handler for OnRowCreated for the gridview and bind an event handler to the button. In this case called ButtonX

protected void RowAdding(object o,GridViewRowEventArgs e)
{
ImageButton ib=(ImageButton)e.Row.FindControl("ButtonX");
if (ib != null)
{

ib.Click += new ImageClickEventHandler(ib_Click);

}

}

ii) in that event handler store the popup state in the session and refresh the updatepanel

void ib_Click(object sender, ImageClickEventArgs e)
{
Session["ShowPane"] = "1";
UpdatePanel1.Update();

}

iii) override the render and show the panel based on the session

protected override void Render(HtmlTextWriter writer)
{

if (Session["ShowPane"] != null)
{
if (Session["ShowPane"].ToString() == "1")
{
ModalPopupExtender1.Show();
}
}


base.Render(writer);
}

I think the smart thing to do would be to stop the postback in the firstplace, does anyone know how to do this?

Is a "partial postback" really partial?

Hi,

I've inherited a large project and am now in charge of adding AJAX support to it, in order to make it seem more responsive to the users, and to avoid having to perform a complete postback every time the users want to navigate to a different control.

However, my first experiences with using AJAX.NET seem to be a bit disheartening. I added a simple UpdatePanel to the form, as well as a button and a textbox inside of it. The button has a server-side call to update the textbox with DateTime.Now.ToLongTimeString(). Now, whenever I call it, it takes at least 4 seconds to perform a round trip to the server and back with the time. This is unacceptable for our purposes, so I looked into the cause. Our pages are, to put it politely, freaking huge. For the 4-second one, the page is over 100k. So I did some testing, and it appears that on an ajax-postback, the entire page is being posted back to the webserver, constructed, and updated, and finally the relevant pieces (mainly the contents of the update panel) are sent back to be updated.

On the web I've seen many references to so-called "partial postbacks", which I took to mean that the AJAX call is only going to send the contents of the update panel back to the webserver, and not the entire page. Am I incorrect thinking this? In other words: is the entire web page always going to be sent back to the server, even with AJAX calls, or am I missing something important here?

Thanks for your time.

Hi

What you are getting is the default behaviour. What happened in ASP.NET AJAX is that page is posted back to the server and all the page events are rendered as such as in normal postback.

What happens actually, when you put the controls inside Update Panel, only the portion of the data that is inside Update Panel renders back to the server but the complete life cycle of the page behaves normally as normal postback.

So if you want the real power of AJAX, you have to sync with View State and all other stuff.

Hope that helps you..

Bye


Ron,

Your issue there could be ViewState size. Even if the page sends and receives only the data relevant to the UpdatePanel to refresh, ViewState is still transmitted and the complete page life cycle occurs.

Just turn trace on and check you ViewState size. If it's huge, try to find the controls that may have it disabled. If you manage to reduce it's size, your AJAX page will be "faster".

Also, something that really helped me to reduce "page size" and, therefore, AJAX "speed", was to enable IIS dynamic compression.


Cheers,

Juan


Yeah, compression helps, also make sure that your running in compilation mode='release' (in debug the scripts are 3x or more larger). Also, if there's no way to tighten up your viewstate, thne it might be worth it to look at other refresh techniques (more js heavy, less plug-n-play) like PageMethods or Webservices. Those will reduce the traffic to only that which is necessary.


I have found that using update panels and MS ajax will be quite a change in how you philisophically go and layout a page. This is something you will find out over the time you are working on your app. For instance, I had the same type of problem you did with viewstate and page size. I found that I had a gigantic drop down list that was filling up my viewstate and gridviews with lots and lots of records in them. My solution was to get rid of the dropdownlist by using a quick search repeater with a select button on each record. This, in a world with full postbacks would be cumbersome, but with updatepanels becomes quite easy. Second, I have gone the route of creating interfaces similar to regular applications like outlook with a record browse on the left and context on the right. The outer page with browsing is a page and the record is a page that gets popped in an iframe. This allows for a quickie javascript double click to open the record in its own window and a single click to open the record in the context window.

Another big help is managing your refreshes. You will find that using the 'updatemode="conditional"' setting in your update panels will also help to speed up the page. When an updatepanel is left without the conditional mark it postsback on each partial postback. Sometimes the implementation of this can be a bit tricky because you have to call the updatepanel.update() method in codebehind, but the benefit is definately worth the hassle.

Finally, shrinking down what you have in your updatepanels will definately help you keep your page moving quickly. If your entire page with huge drop down lists, etc.. works off one gridview this will be troublesome. When you can put your updatepanel around one textbox, then an updatepanel around the update button, you will be well on your way to super fast processing.

Remember that a partial postback posts back anything within the update panel and, therefore, the more you have in the updatepanel, the more that needs to be sent back to the browser.


Great thoughts, and advice. I'll echo the fact that it's a real balancing act, though. Too much granularity in your updates and you lose scalability. Too little and you kill your bandwidth and users suffer. Good page design can go along way to help you keep the balance.

Wednesday, March 21, 2012

Is Atlas compatible with Master Pages?

Hi,

I've got an issue that I have been trying to lock down for about a week now with no success and could really do with some input.
Basically I have a panel that i have extended with the Drag Panel Extender, when I try to drag the panel it jumps down and to the right! I can still drag the panel around but it's offset from the mouse position. Also simply clicking on the Drag Handle caused the whole panel to jupm down and to the right, each click causes is to jump again.

I have managed to trace this issue down to the way I have my project set up.

I am using Master Pages and have a content placeholder that is offset from the top and left corners of my page as I have headers and a panel on the left that I want on every page. I have noted through painstakingly measuring using a pixel ruler that the jump the panel takes is exactly the offset of the content placeholder from the top left of the browser rendering area.

To clarify: the top of my placeholer is 150px and the left is 200px.
When i click on theDrag Handle the panel jumps 150px down and 200px right from the mouse, I have looked through the javascript etc in the control toolkit and I have not been able to find what I'm looking for.

I found the StartDrag routine and there is ome stuff in there that sets the mouseposition and then sets the start position for the drag to be that same position but while I'm sure this is wrong, I as unable to successfully correct anything in here to stop the behaviour.

I think that the top left of the drag panel is being set relative to the browser render surface when the panel itself is relative to the content placeholder so you get this offset issue.

I can get a successful drag panel working when I move it to the master page but as I am trying to create a custom user control with a popup dialog that can be dragged around the page this is not a good solution.

i need ideas to solve this offsetting problem other than moving the panel ot of my cotrol and onto the master page as this will stop me from releasing a control that users can drag onto a page and just use, popup draggable dialog and all...

Hi SNewman,

Is the target of yourDragPanel absolutely positioned? One of the first things that thefloatingBehavior (which is the "Atlas" behavior used byDragPanel) does is setsposition: absolute; and setstop/left to the its original coordinates (although it sounds like in your case, it's mistaken about these coordinates).

Thanks,
Ted

Hi Ted,

Yup the target is absolutely positioned.

What I found was that there is some code that works out the old position of the drag panel (I'm guessing so it could send it back there if I were to do a drag drop and the drop need to be cancelled?) and it appears to do this based on the mouse position using the x, y coordinates and then there is a calculation performed based on that. I was not able to confirm that this is the calculation causing the issue but it kind of fits as the x, y, co-ordinates of the mouse are relative to the browser? while the top and left co-ordinates of the drag handle are relative to the content placeholder.

Does this sound right to you?


Hi SNewman,

Yeah, I followed the code through about that far myself when I looked at it the other day. Could you try it without the target being absolutely positioned and see if that works? Here's the code forgetLocation:

Sys.UI.Control.getLocation =function(element) {|
var offsetX = 0;
var offsetY = 0;
var parent;
for (parent = element; parent; parent = parent.offsetParent) {
if (parent.offsetLeft) {
offsetX += parent.offsetLeft;
}
if (parent.offsetTop) {
offsetY += parent.offsetTop;
}
}
return { x: offsetX, y: offsetY };
}

My guess is that since it doesn't check to see if your control is absolutely positioned, it walks all the way up the hierarchy and computes where it would be if it wasn't absolutely positioned.

Thanks,
Ted


Hello Ted,

Is there a solution for this? I'm unable to remove the position:absolute due to the fact that I'm trying to set the location of the dragPanel dynamicly. When I remove the flag the panel always displays at 0, 0. Can you offer any suggestions? I'm using Change Set 5716 of the control toolkit.

Thanks,

Lance

<%@.PageLanguage="C#"AutoEventWireup="true"CodeFile="Default3.aspx.cs"Inherits="input_pages_Default3" %>

<%@.RegisterAssembly="AtlasControlToolkit"Namespace="AtlasControlToolkit"TagPrefix="atlasToolkit" %>

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<scripttype="text/javascript"language="javascript">

function getInputHelp()

{

$('helpHeader').innerHTML ='Header text';

$('helpContent').innerHTML ='Body Text';

$('helpDragPanel').style.left ='100px';

$('helpDragPanel').style.top ='75px';

$('helpDragPanel').style.visibility ='visible';

}

function closeHelp()

{

$('helpHeader').innerHTML ='';

$('helpContent').innerHTML ='';

$('helpDragPanel').style.visibility ='hidden';

}

</script>

<htmlxmlns="http://www.w3.org/1999/xhtml">

<headrunat="server">

<title>Untitled Page</title>

</head>

<atlas:ScriptManagerID="ScriptManager1"runat="server"EnablePartialRendering="true">

</atlas:ScriptManager>

<body>

<formid="form1"runat="server">

<atlasToolkit:DragPanelExtenderID="dragpeHelp"runat="server">

<atlasToolkit:DragPanelPropertiesTargetControlID="panelHelp"DragHandleID="panelHelpHeader">

</atlasToolkit:DragPanelProperties>

</atlasToolkit:DragPanelExtender>

<divid="helpDragPanel"style="width: 150px; visibility:hidden; position:absolute">

<asp:PanelID="panelHelp"runat="server"Width="100%"CssClass="HelpDragPanel">

<asp:PanelBackColor="lightblue"BorderStyle="Solid"BorderWidth="1px"BorderColor="black"ID="panelHelpHeader"runat="server"Width="100%">

<divid="helpHeader"></div>

<imgid="Img1"src="../../images/dev.jpg"alt="DevHelp"onclick="closeHelp()"/>

</asp:Panel>

<asp:PanelBorderStyle="Solid"BackColor="gray"ForeColor="black"BorderWidth="1px"BorderColor="black"ID="panelHelpContent"runat="server"Width="100%">

<divid="helpContent">

</div>

</asp:Panel>

</asp:Panel>

</div>

<div>

<imgsrc="../../images/qMark.jpg"id="widthFeetHelp"alt="help"onclick="getInputHelp()"/>

</div>

</form>

</body>

</html>


Sorry for the second post, but does anyone have any idea's?

I'm seeing this issue in the released toolkit of 09/14 also.

Thanks,

Lance


Hi Lance,

Unfortunately this is a problem due to "Atlas" and the Toolkit can't outright modify the code to get it working. However, since this is a static function, you could replace it from your own code using something like:

Sys.UI.Control.getLocation =function(element) { /* Do whatever it used to do, but also check if absolutely positioned */};

As long as you replace that before your drag panel is initialized, it will be used instead of the incorrect function. I know this is a very awkward hack, but I think it's your only option aside from modifying the "Atlas" scripts themeslves.

Thanks,
Ted

Hello Ted,

Thanks for the info. Do you see this being corrected in Atlas or am I trying to do something that was never intended?

I'm pretty new to this, so could you give me a hint on where to putSys.UI.Control.getLocation =function(element). When I add it to the page I get Sys is undefined. I do have the atlas:ScriptManager on the page.

Thanks

Lance


Hello Ted,

One of my counter parts found a work around for this. Here is what he used.

We moved the asp:panel (ID = panelHelp) outside of the div tag (ID = helpDragPanel). Set the style for both tostyle="visibility:hidden; position:absolute".

<asp:PanelID="panelHelp"runat="server"Width="100%"style="visibility:hidden; position:absolute">

<divid="helpDragPanel"style="width: 150px; position:absolute; visibility:hidden; ">

<asp:PanelBackColor="lightblue"BorderStyle="Solid"BorderWidth="1px"BorderColor="black"ID="panelHelpHeader"runat="server"Width="100%">

<divid="helpHeader"></div>

<imgid="Img1"src="../../images/dev.jpg"alt="DevHelp"onclick="closeHelp()"/>

</asp:Panel>

<asp:PanelBorderStyle="Solid"BackColor="gray"ForeColor="black"BorderWidth="1px"BorderColor="black"ID="panelHelpContent"runat="server"Width="100%">

<divid="helpContent">

</div>

</asp:Panel>

</div>

</asp:Panel>

By doing this, everything works as expected.

All examples I've seen shows it the other way around, but this seems to work fine.

Hopefully this will help someone else out.

Thanks,

Lance


Hi Lance,

You want to add that after the "Atlas" scripts have been loaded. The easiest way to do that is to add a JavaScript function on your page calledpageLoad (which "Atlas" will automatically call if there). Ex:
function pageLoad()
{
alert('"Altas" has finished loading - we can access whatever we want now');
Sys.UI.Control.getLocation = function(element) { return {'x':0, 'y':0}; };
}

Thanks,
Ted
Hi Lance,

I'm not 100% sure why your workaround is fixing the problem, but I'm glad you've got it taken care of. Here's another way to do it (for those following along at home who are a little confused about this whole problem):

<%@. Page Language="C#" %><%@. Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="atlasToolkit" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"><title>Test Page</title></head><body><form runat="server"><div> <atlas:ScriptManager id="ScriptManager1" runat="Server"></atlas:ScriptManager> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <div id="anchorDiv"> <asp:Panel ID="Content" runat="server" style="position: absolute; top: 10px; left: 10px; width: 100px;"> <asp:Panel ID="Handle" runat="server" style="border: 1px solid #000000; width: 100%; height: 20px;">Drag Me</asp:Panel> <div style="border: 1px solid #000000; width: 100%; height: 100px;">Content</div> </asp:Panel> </div> <atlasToolkit:DragPanelExtender ID="MyExtender" runat="server"> <atlasToolkit:DragPanelProperties TargetControlID="Content" DragHandleID="Handle" /> </atlasToolkit:DragPanelExtender> <script type="text/javascript"> // The following snippet works around a problem where Atlas's FloatingBehavior // doesn't allow drops outside the "content area" of the page - where "content // area" is a little unusual for our sample web pages due to their use of CSS // for layout. function setBodyHeightToContentHeight() { document.body.style.height = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight)+"px"; } setBodyHeightToContentHeight(); window.attachEvent('onresize', setBodyHeightToContentHeight); </script></div></form></body></html>

This works becauseanchorDiv is not absolutely positioned. If you addstyle='position: absolute' toanchorDiv, then you'll see the bug that we're talking about.

This is definitely a bug in the "Atlas"Sys.UI.Control.getLocation function. I'm not sure about when they'll have it fixed, but in the meantime if you need a better version of the function you can use the one provided in our Common.js file that Ron Buckton (a community contributor!) wrote.

Thanks,
Ted
where can i find the Common.js you was talking about ?
Hi MrVithan,

You can find Common.js in the AjaxControlToolkit\AjaxControlToolkit\Common\ folder.

Thanks,
Ted

Hi Ted,

if we use the version in the common.js do we need to specifically include this .js or is it automagically downloaded as part of the control toolkit at runtime? can you give an example of how to correctly access the function in this common.js, correctly overriding the base version?

If anyone from MS is actually paying attention to this thread... It really would be nice if you fixed this bug, it's not exactly a small issueBig Smile

Thank in advance Ted.


This is the same bug I reported a couple days ago. I provided a repro and a fix. The bug is in the AjaxControlToolkit.DragDropManager, so you can fix it, I think.

This is the thread:

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

Regards

Is it possible to catch a GetPostBackEventRefrence in an UpdatePanel?

I've got a custom gridview control where inside the RowDataBound event, I am setting an attribute to the row to allow the user to just click anywhere on the row, instead of clicking the 'Select' command.

This works fine, but it does a postback. Is it possible to capture that in the updatepanel?


e.Row.Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(this, "Select$" + e.Row.RowIndex.ToString()));

There should be no difference in behavior whether you're in an UpdatePanel or not. The only constraint I can think of is that you can't alter anything that isn't contained in an UpdatePanel during the PostBack.

So, if you can catch the GetPostBackEventReference normally, you should still be good in an UpdatePanel.


I have the same problem. It works perfectly without the updatepanel, but when the gridview is placed inside the update panel, it does not update when the user clicks the row.


Hi,gidikh

To troubleshoot this issue, we really need the source code to reproduce the problem, so that we can investigate the issue in house. It is not necessary that you send out the complete source of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business logic from it.

Thanks


I figured out my problem. I was updating a formview outside of the updatepanel. As soon as I put that formview into an updatepanel of it's own, everything worked as it should.