473,382 Members | 1,367 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,382 software developers and data experts.

Custom UpdatePanel - ASP.NET 2.0 and Client Callback

Hi,
I want to develop an ASP 2.0 Web control that would be just like an update
panel (to use with a tab control), so when the user makes a request, the
content of the page is loaded dynamicly without the need of a postback...
Client callback seems right in the situation except for one thing... How
can I register javascript from custom controls when using the client
callback feature? I mean, I can send all the render result through an
HTMLWriter, but How will I get the new javascript to render?

I've made some controls using this technique of rendering the content in an
HTML Writer then send the result string back to the javascript so it can
update a div (change it's innerHTML) in the page (a custom ad rotator)...
but I never managed to render the javascript from the customs controls as
well... Am I missing something? Is my technic the right one that should be
used?

Cna someone help me solve this problem please? at least, find a trace of
solution which I could dig from...

thanks

ThunderMusic
Nov 27 '06 #1
3 2048
this should be in your serializer. you can send javascript source down
easily, you just need to tag what is html, and what is javascript.

-- bruce (sqlwork.com)

"ThunderMusic" <No*************************@NoSpAm.comwrote in message
news:O2**************@TK2MSFTNGP03.phx.gbl...
Hi,
I want to develop an ASP 2.0 Web control that would be just like an update
panel (to use with a tab control), so when the user makes a request, the
content of the page is loaded dynamicly without the need of a postback...
Client callback seems right in the situation except for one thing... How
can I register javascript from custom controls when using the client
callback feature? I mean, I can send all the render result through an
HTMLWriter, but How will I get the new javascript to render?

I've made some controls using this technique of rendering the content in
an HTML Writer then send the result string back to the javascript so it
can update a div (change it's innerHTML) in the page (a custom ad
rotator)... but I never managed to render the javascript from the customs
controls as well... Am I missing something? Is my technic the right one
that should be used?

Cna someone help me solve this problem please? at least, find a trace of
solution which I could dig from...

thanks

ThunderMusic

Nov 28 '06 #2
thanks for your answer... Do you have an example? (or a link?) Will it work
with all custom servers or will I have to make my own to send this
javascript?

thanks again

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.coma
écrit dans le message de news: eS**************@TK2MSFTNGP03.phx.gbl...
this should be in your serializer. you can send javascript source down
easily, you just need to tag what is html, and what is javascript.

-- bruce (sqlwork.com)

"ThunderMusic" <No*************************@NoSpAm.comwrote in message
news:O2**************@TK2MSFTNGP03.phx.gbl...
>Hi,
I want to develop an ASP 2.0 Web control that would be just like an
update panel (to use with a tab control), so when the user makes a
request, the content of the page is loaded dynamicly without the need of
a postback... Client callback seems right in the situation except for one
thing... How can I register javascript from custom controls when using
the client callback feature? I mean, I can send all the render result
through an HTMLWriter, but How will I get the new javascript to render?

I've made some controls using this technique of rendering the content in
an HTML Writer then send the result string back to the javascript so it
can update a div (change it's innerHTML) in the page (a custom ad
rotator)... but I never managed to render the javascript from the customs
controls as well... Am I missing something? Is my technic the right one
that should be used?

Cna someone help me solve this problem please? at least, find a trace of
solution which I could dig from...

thanks

ThunderMusic


Nov 28 '06 #3
I meant custom controls (not custom servers)

"ThunderMusic" <NO.danlat.at.hotmail.com.SPAMwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
thanks for your answer... Do you have an example? (or a link?) Will it
work with all custom servers or will I have to make my own to send this
javascript?

thanks again

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.coma
écrit dans le message de news: eS**************@TK2MSFTNGP03.phx.gbl...
>this should be in your serializer. you can send javascript source down
easily, you just need to tag what is html, and what is javascript.

-- bruce (sqlwork.com)

"ThunderMusic" <No*************************@NoSpAm.comwrote in message
news:O2**************@TK2MSFTNGP03.phx.gbl...
>>Hi,
I want to develop an ASP 2.0 Web control that would be just like an
update panel (to use with a tab control), so when the user makes a
request, the content of the page is loaded dynamicly without the need of
a postback... Client callback seems right in the situation except for
one thing... How can I register javascript from custom controls when
using the client callback feature? I mean, I can send all the render
result through an HTMLWriter, but How will I get the new javascript to
render?

I've made some controls using this technique of rendering the content in
an HTML Writer then send the result string back to the javascript so it
can update a div (change it's innerHTML) in the page (a custom ad
rotator)... but I never managed to render the javascript from the
customs controls as well... Am I missing something? Is my technic the
right one that should be used?

Cna someone help me solve this problem please? at least, find a trace
of solution which I could dig from...

thanks

ThunderMusic



Nov 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: skberen | last post by:
Issue: We have a web user control on a web page (aspx) that uses the new ASP.Net 2 feature Client Callback. The web user control is using a CheckBoxList control and button control to allow the...
1
by: Vaidas Gudas | last post by:
How to update ATLAS AJAX UpdatePanel by using javascript.
0
by: Jay Douglas | last post by:
Hello all, I'm in need of a custom validator that: 1). Runs server side code using ajax through a client validate function 2). Client validate function does not set args.IsValid until the...
1
by: shanthsp2002 | last post by:
Hi i am Developing a kind of web based timesheet application and i got problem with the Updatepanel, actually i am using a gridview in which there are linkbuttons , when we click linkbutton of...
1
by: jobo | last post by:
I have a news section of the website contained within the updatepanel. What I want is that when a news summary is clicked, the news item opens up in that same box. I thought I wired everything up...
1
by: SachinSachin | last post by:
Hi All, I am implementing a custom gridview control, that emits some javascript to blink a row whenever a new row is added in gridview. The gridview is inside the <asp:updatepanel> for...
0
by: rupinderbatra | last post by:
Hello Everyone, I am trying to build a website where on click of a button, I am fetching some data from a web service (in code-behind) and displaying it using a repeater control. The repeater...
7
by: Mel | last post by:
I have an update panel that has the UpdateMode set to "Conditional". When I call UpdatePanel1.Update() in the VB code it does not work in FireFox. It works just fine in Internet Explorer 6.0. Any...
1
by: Jeff | last post by:
hi asp.net 3.5 (project upgraded from asp.net 2.0). are using vwd2008 express now This is my first ajax attempt. The code below shows a TextBox and a ListBox. The idea I was trying to...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.