Click here to Skip to main content
16,020,714 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: dropdownlist problem Pin
Blue_Boy3-Aug-09 21:09
Blue_Boy3-Aug-09 21:09 
AnswerRe: dropdownlist problem Pin
Christian Graus3-Aug-09 21:16
protectorChristian Graus3-Aug-09 21:16 
QuestionHow To Start Crystal Reports In VisaulStudio 2008 Pin
axman_podili@yahoo.co.in3-Aug-09 21:05
axman_podili@yahoo.co.in3-Aug-09 21:05 
QuestionHow to use RecordSelectionFormula in Sql Server Reporting Services 2005 useing ASP.NET? Pin
nileshjethava3-Aug-09 21:04
nileshjethava3-Aug-09 21:04 
QuestionCrystal report Allignment problem Pin
Any_India3-Aug-09 20:35
Any_India3-Aug-09 20:35 
Questionontextchanged event Pin
Member 38798813-Aug-09 20:09
Member 38798813-Aug-09 20:09 
AnswerRe: ontextchanged event Pin
Christian Graus3-Aug-09 20:23
protectorChristian Graus3-Aug-09 20:23 
GeneralRe: ontextchanged event Pin
Ricardo Casquete3-Aug-09 21:59
Ricardo Casquete3-Aug-09 21:59 
I agree with you, however I am sure you have seen at least a website full of UpdatePanels that are doing partial post backs and then the developers that don't understand the Page life circle write sh*t code that makes the whole application unmaintainable.

So if they cannot write their own JavaScript methods and being able to handle the callback of the webservices, maybe is better to do a whole postback... (very sad... but true).


having said that... that's what (and how) I would do (following Christian approach)

I would recommend you write your own javascript handler and call a webservice using the microsoft AJAX wrapper.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="YUITable._Default" %>
<%@ Register TagPrefix="csl" Assembly="YUITable, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="YUITable" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

<html>
<head runat="server">

   <script type="text/javascript">
   
    var tbMaster_SelectedDataChanged = function ( dataTable, selectedData )
    {
        //Perform the Call to the WebService passing the values of the first Selected Row values as arguments
        YUITable.LoremIpsum.GetDataWithParameters (0,1,2,onSuccess, onFailed );
                                                    
        //Handling the Result of the WebService call
        function onSuccess ( result )             
        {
            var childTable      = document.getElementById ( "tbChild" ).childNodes [ 1 ]; //The Real data is the Second Child
            if ( dataTable )
            {
                var data =  Array.parse ( result );
                CreateDateTable ( "tbChild", tbChildheaders, data );
            }
        }

        function onFailed ( ) 
        {
            alert ( "error" ); 
        }
    };

       
    </script>

</head> 
<body class="yui-skin-sam">
    
    <form id="form1" runat="server">
    
    <asp:ScriptManager ID="ScriptManager" runat="server"  >
        <Services>
            <asp:ServiceReference InlineScript='true' Path="LoremIpsum.asmx" />
        </Services>              
    </asp:ScriptManager>

    </form>
</body>
</html>


Ricardo Casquete

AnswerRe: ontextchanged event Pin
Ricardo Casquete3-Aug-09 21:59
Ricardo Casquete3-Aug-09 21:59 
Questionhow to get value from javascript on page load event Pin
rahul.net113-Aug-09 19:58
rahul.net113-Aug-09 19:58 
AnswerRe: how to get value from javascript on page load event Pin
Christian Graus3-Aug-09 19:59
protectorChristian Graus3-Aug-09 19:59 
GeneralRe: how to get value from javascript on page load event Pin
rahul.net113-Aug-09 20:11
rahul.net113-Aug-09 20:11 
GeneralRe: how to get value from javascript on page load event Pin
Christian Graus3-Aug-09 20:18
protectorChristian Graus3-Aug-09 20:18 
GeneralRe: how to get value from javascript on page load event Pin
rahul.net113-Aug-09 20:33
rahul.net113-Aug-09 20:33 
GeneralRe: how to get value from javascript on page load event Pin
Christian Graus3-Aug-09 21:03
protectorChristian Graus3-Aug-09 21:03 
GeneralRe: how to get value from javascript on page load event Pin
Arun Jacob3-Aug-09 21:07
Arun Jacob3-Aug-09 21:07 
GeneralRe: how to get value from javascript on page load event Pin
rahul.net113-Aug-09 21:08
rahul.net113-Aug-09 21:08 
Questionplease help me Pin
sivasampathkumar3-Aug-09 19:49
sivasampathkumar3-Aug-09 19:49 
AnswerRe: please help me Pin
Christian Graus3-Aug-09 19:51
protectorChristian Graus3-Aug-09 19:51 
AnswerYou are too stupid to use a computer Pin
Christian Graus3-Aug-09 20:21
protectorChristian Graus3-Aug-09 20:21 
QuestionServer Application Unavailable error in IIS 5.1 Pin
Chesnokov Yuriy3-Aug-09 19:41
professionalChesnokov Yuriy3-Aug-09 19:41 
AnswerRe: Server Application Unavailable error in IIS 5.1 Pin
Abhijit Jana3-Aug-09 19:46
professionalAbhijit Jana3-Aug-09 19:46 
Questiondoes not contain definition for row index [modified] Pin
haleemasher3-Aug-09 19:41
haleemasher3-Aug-09 19:41 
AnswerRe: does not contain definition for row index Pin
Abhijit Jana3-Aug-09 19:48
professionalAbhijit Jana3-Aug-09 19:48 
GeneralRe: does not contain definition for row index Pin
haleemasher3-Aug-09 20:16
haleemasher3-Aug-09 20:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.