|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Custom UpdatePanel - ASP.NET 2.0 and Client CallbackI 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 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) Show quoteHide quote "ThunderMusic" <NoSpAmdanlatathotmaildotcom@NoSpAm.com> wrote in message news:O28r$6kEHHA.4208@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 > 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_r_u_c_e_removeundersco***@sqlwork.com> a écrit dans le message de news: eSptC0oEHHA.2***@TK2MSFTNGP03.phx.gbl...Show quoteHide quote > 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" <NoSpAmdanlatathotmaildotcom@NoSpAm.com> wrote in message > news:O28r$6kEHHA.4208@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 >> > > I meant custom controls (not custom servers)
Show quoteHide quote "ThunderMusic" <NO.danlat.at.hotmail.com.SPAM> wrote in message news:%233J%23weuEHHA.3608@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_r_u_c_e_removeundersco***@sqlwork.com> a > écrit dans le message de news: eSptC0oEHHA.2***@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" <NoSpAmdanlatathotmaildotcom@NoSpAm.com> wrote in message >> news:O28r$6kEHHA.4208@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 >>> >> >> > >
Repeater and Checkboxs
Charat Control (date Vs date) Dynamicly setting readonly in through a property Get Datakey Value from Gridview/sqldatasource Making a GridView Cell read-only Help Me WinForm controls in Web Forcing datalist to start new row on demand Question to CreateUserWizard and database Zomm In and Zoom Out |
|||||||||||||||||||||||