473,372 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 3462
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yoknows | last post by:
Hello .Net Gurus. This is my first post here so I apologize in advance if I have not provided the right information. I hope someone has seen this problem before and can tell me what I am doing...
2
by: Rob R. Ainscough | last post by:
I'm using forms authentication along with Master pages -- my authenticated forms reside is a sub-dir (Secure) below the web site root dir. The problem is that any graphics placed on the Master...
0
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and...
5
by: John | last post by:
I have textbox control on a masterpage. Now when we type something in textbox and press the enter key, i want it to post to another page.aspx. How can i do this? Thanks.
17
by: MeerkatInFrance | last post by:
There comes a time when you know you are not going to be able to work something out yourself, however hard you try. I have reached that moment. I have a master page and a slave page (or whatever...
0
by: John Smith | last post by:
I still have not gotten this damn thing figured out and I'm asking for help one last time before I give up on it. I have a user control that contains a paged gridview control. The master page...
2
by: TheAmes | last post by:
Hi I have a asp.net site in VB.NET and VWD 2005 Express. in the master page i have a Label. from a content page i change the value of this label like so: dim X as label =...
2
by: BillE | last post by:
I am using master/content pages, with a treeview in my master page. When the selected node changed event fires in the treeview, I redirect to the requested content page associated with the...
0
by: db007 | last post by:
I have a problem at the moment with a web project. I have two Panels within an UpdatePanel on an aspx page (using Masterpages). I'm using ASP.Net 2.0 with an AJAX enabled website. The two...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.