471,075 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

Postback & Master Page

Hello,

I'm developping an asp.net application which used master page on which
i add several web control. One of the them is a menu control which as
several button in order to develop each sub menu. When i click on this
button it rises a postback and refresh all my controls.
My question is the following : is it possible the postback acts only on
one web control ?

Thanks in advance

Vincent.

Jun 8 '06 #1
5 3330
sure, but for that you need to use AJAX technology, cause Master Pages is
not like FRAMESETS

so if you want only one part of the page reload use ATLAS (Ajax technology
for .NET 2.0 Framework from Microsoft)

download the video (Scoot's To Do List) and see it happend!
http://atlas.asp.net/
--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@u72g2000cwu.googlegr oups.com...
Hello,

I'm developping an asp.net application which used master page on which
i add several web control. One of the them is a menu control which as
several button in order to develop each sub menu. When i click on this
button it rises a postback and refresh all my controls.
My question is the following : is it possible the postback acts only on
one web control ?

Thanks in advance

Vincent.

Jun 8 '06 #2
I think that AJAX is not the simpliest way to do this. I bielieved
there was a way thanks to cache or something like that.
May I use Javascript for my Menu Web control ?

Vincent

Bruno Alexandre a écrit :
sure, but for that you need to use AJAX technology, cause Master Pages is
not like FRAMESETS

so if you want only one part of the page reload use ATLAS (Ajax technology
for .NET 2.0 Framework from Microsoft)

download the video (Scoot's To Do List) and see it happend!
http://atlas.asp.net/
--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@u72g2000cwu.googlegr oups.com...
Hello,

I'm developping an asp.net application which used master page on which
i add several web control. One of the them is a menu control which as
several button in order to develop each sub menu. When i click on this
button it rises a postback and refresh all my controls.
My question is the following : is it possible the postback acts only on
one web control ?

Thanks in advance

Vincent.


Jun 8 '06 #3
ATLAS is really simple!!!
all you need to do to your code is:

add ONE tag

<atlas:ScripManager id="sm" runat="server" mode="condicional" />

and then all the controls you want to be reloaded you encapsulate in other
atlas tag, like, if you want to update just a GridView just put the GV code
inside that, like:

<atlas:UpdatePanel runat="server" ID="up1" Mode="Always" >
<ContentTemplate>
<asp:GridView ...
</ContentTemplate>
</atlas:UpdatePanel>

and you have set the GridView to use AJAX technology!!!!

off course you can do a lot of things, such have triggers and all, but
that's the simplest and I use it a lot :)

Belive me, it works fantastic!!! :-D

it's a time gain see the Atlas video from Scoot

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@i40g2000cwc.googlegr oups.com...
I think that AJAX is not the simpliest way to do this. I bielieved
there was a way thanks to cache or something like that.
May I use Javascript for my Menu Web control ?

Vincent

Bruno Alexandre a écrit :
sure, but for that you need to use AJAX technology, cause Master Pages is
not like FRAMESETS

so if you want only one part of the page reload use ATLAS (Ajax technology
for .NET 2.0 Framework from Microsoft)

download the video (Scoot's To Do List) and see it happend!
http://atlas.asp.net/
--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@u72g2000cwu.googlegr oups.com...
Hello,

I'm developping an asp.net application which used master page on which
i add several web control. One of the them is a menu control which as
several button in order to develop each sub menu. When i click on this
button it rises a postback and refresh all my controls.
My question is the following : is it possible the postback acts only on
one web control ?

Thanks in advance

Vincent.

Jun 8 '06 #4
I try your solution with Atlas, but my menu is based on buttons and
link butonns. So when i put an update panel it raises Javascript
errors :'(

Vince.
Bruno Alexandre a écrit :
ATLAS is really simple!!!
all you need to do to your code is:

add ONE tag

<atlas:ScripManager id="sm" runat="server" mode="condicional" />

and then all the controls you want to be reloaded you encapsulate in other
atlas tag, like, if you want to update just a GridView just put the GV code
inside that, like:

<atlas:UpdatePanel runat="server" ID="up1" Mode="Always" >
<ContentTemplate>
<asp:GridView ...
</ContentTemplate>
</atlas:UpdatePanel>

and you have set the GridView to use AJAX technology!!!!

off course you can do a lot of things, such have triggers and all, but
that's the simplest and I use it a lot :)

Belive me, it works fantastic!!! :-D

it's a time gain see the Atlas video from Scoot

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@i40g2000cwc.googlegr oups.com...
I think that AJAX is not the simpliest way to do this. I bielieved
there was a way thanks to cache or something like that.
May I use Javascript for my Menu Web control ?

Vincent

Bruno Alexandre a écrit :
sure, but for that you need to use AJAX technology, cause Master Pages is
not like FRAMESETS

so if you want only one part of the page reload use ATLAS (Ajax technology
for .NET 2.0 Framework from Microsoft)

download the video (Scoot's To Do List) and see it happend!
http://atlas.asp.net/
--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@u72g2000cwu.googlegr oups.com...
Hello,

I'm developping an asp.net application which used master page on which
i add several web control. One of the them is a menu control which as
several button in order to develop each sub menu. When i click on this
button it rises a postback and refresh all my controls.
My question is the following : is it possible the postback acts only on
one web control ?

Thanks in advance

Vincent.


Jun 14 '06 #5
imagine that you have an asp:menu control called myMenu, did you do like
this?

<atlas:ScriptManager runat="server" id="sm" enablePartialRendering="true" />

<atlas:UpdatePanel runat="server" id="up1" mode="Conditional">
<Triggers>
<atlas:ControlEventTrigger ControlID="myMenu" EventName="Click" />
</Triggers>
<contentTemplate>
the components that you need to update without refreshing the page
</contentTemplate>
</atlas:UpdatePanel>

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@u72g2000cwu.googlegr oups.com...
I try your solution with Atlas, but my menu is based on buttons and
link butonns. So when i put an update panel it raises Javascript
errors :'(

Vince.
Bruno Alexandre a écrit :
ATLAS is really simple!!!
all you need to do to your code is:

add ONE tag

<atlas:ScripManager id="sm" runat="server" mode="condicional" />

and then all the controls you want to be reloaded you encapsulate in other
atlas tag, like, if you want to update just a GridView just put the GV
code
inside that, like:

<atlas:UpdatePanel runat="server" ID="up1" Mode="Always" >
<ContentTemplate>
<asp:GridView ...
</ContentTemplate>
</atlas:UpdatePanel>

and you have set the GridView to use AJAX technology!!!!

off course you can do a lot of things, such have triggers and all, but
that's the simplest and I use it a lot :)

Belive me, it works fantastic!!! :-D

it's a time gain see the Atlas video from Scoot

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@i40g2000cwc.googlegr oups.com...
I think that AJAX is not the simpliest way to do this. I bielieved
there was a way thanks to cache or something like that.
May I use Javascript for my Menu Web control ?

Vincent

Bruno Alexandre a écrit :
sure, but for that you need to use AJAX technology, cause Master Pages
is
not like FRAMESETS

so if you want only one part of the page reload use ATLAS (Ajax
technology
for .NET 2.0 Framework from Microsoft)

download the video (Scoot's To Do List) and see it happend!
http://atlas.asp.net/
--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)
"Vincent A." <Vi**********@gmail.com> escreveu na mensagem
news:11**********************@u72g2000cwu.googlegr oups.com...
Hello,

I'm developping an asp.net application which used master page on which
i add several web control. One of the them is a menu control which as
several button in order to develop each sub menu. When i click on this
button it rises a postback and refresh all my controls.
My question is the following : is it possible the postback acts only
on
one web control ?

Thanks in advance

Vincent.

Jun 14 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by yoknows | last post: by
2 posts views Thread by Rob R. Ainscough | last post: by
5 posts views Thread by John | last post: by
17 posts views Thread by MeerkatInFrance | last post: by
2 posts views Thread by TheAmes | last post: by
2 posts views Thread by BillE | last post: by
reply views Thread by db007 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.