Showing posts with label triggers. Show all posts
Showing posts with label triggers. Show all posts

Monday, March 26, 2012

Explain about updatepanel and its properties,mainly triggers?

Sir:

Explain about updatepanel and its properties,mainly triggers?

Basically, UpdatePanel enables sections of a page to be partially rendered without a postback.

For more info, go tohttp://asp.net/ajax/documentation/live/tutorials/IntroductionUpdatePanel.aspx

experience some delay in updatepanel with internet explorer?

i have tree menu and updatepanel. the selectednotechange in the tree menu triggers asyn-postback in updatepanel. I'm experiencing some delay when using with internet exploere. but works fine with firefox and opera. around 2 seconds delay when using with IE but quick with firefox and opera.

is anyone experiencing similar problem? i think was fine in ajax beta version but experienceing ajax RC version

i can see major performace issue between internet explorer and other browser. Although it is just 1 or 2 sec delay per click in internet explorer it is STILL performace issue.

IS ANY ONE EXPERIENCING PERFORMACE ISSSUE WITH INTERNET EXPLORER??


i have noticed similar performance difference between IE 7 and Firefox. Below is the code i use. IE takes around 2-3 secs for every OnSelectedNodeChanged but firefox displays the result within 1 sec. What could be the problems ?? Gridview at maximum will have 20-30 rows and 6 columns, and is all text. I belive it was working efficiently in ajax beta versions, but surely seem to have problem with IE.

Shouldn't IE be the primary and supported browser for all microsoft products?????

<asp:TreeView ID="TreeView1" runat="server" Font-Size="Small" Font-Names="Arial" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged"/>

<asp:UpdatePanel ID="up1" RenderMode="Inline" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" />

</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TreeView1" EventName="SelectedNodeChanged" />
</Triggers>
</asp:UpdatePanel>

need help or other options ?


I have seen similar things when my UpdatePanel is very large, or a GridView without paging has a lot of rows and columns. To fix it, I used multiple updatepanels, and enabled paging on my gridview. IE still is a little slower than Firefox but not too bad.

Wednesday, March 21, 2012

Event/Value triggers from custom user controls

Hi, here is my problem:
I have a menu made up of asp:LinkButton(s), each one with some unique id
the menu itself is a usercontrol holding these LinkButtons in some form or another
Now, since i have many such buttons i don't want to add:
<trigger>
<atlas:ControlEventTrigger ControlID="Menu$someLinkButton" EventName="Click" />
</trigger
for each one of my LinkButtons but rather have something like:
<trigger>
<atlas:ControlEventTrigger ControlID="Menu" EventName="ItemClicked" />
</trigger>
(or use the value somehow)

to do this i need to add an event to my "Menu" and then i need to raise it somehow before postback
so only partial rendering will be done.

Can any1 help me as to how to set this up?

Tx in advance,
MeWHy dont you have a TreeView control inplace of the linkbuttons, so you can use the SelectedNodeChanged event of the TreeView?

Thanks
Well, for one thing, i need to write from right to left, and the i didn't find anywhere in the treeview support for this kind of thing.
Other than that, why not use my own? i just need to know how to setup the event and have the <atlas:updatecontrol> catch it when it triggers. i'm just not sure how to go about implementing this (altho i'm pretty sure it can't be that difficult), need someone to show me the ropes.