Click here to Skip to main content
16,015,709 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: using local iis Pin
Sandeep Mewara26-Jun-12 20:11
mveSandeep Mewara26-Jun-12 20:11 
Generalresponse.redirect problem Pin
sc steinhayse26-Jun-12 18:11
sc steinhayse26-Jun-12 18:11 
GeneralRe: response.redirect problem Pin
Sandeep Mewara26-Jun-12 20:24
mveSandeep Mewara26-Jun-12 20:24 
GeneralRe: response.redirect problem Pin
sc steinhayse27-Jun-12 4:10
sc steinhayse27-Jun-12 4:10 
GeneralRe: response.redirect problem Pin
Sandeep Mewara27-Jun-12 4:44
mveSandeep Mewara27-Jun-12 4:44 
QuestionForce a postback from asp code behind Pin
Steve Holdorf26-Jun-12 11:48
Steve Holdorf26-Jun-12 11:48 
AnswerRe: Force a postback from asp code behind Pin
Sandeep Mewara26-Jun-12 20:32
mveSandeep Mewara26-Jun-12 20:32 
Questioncalling __doPostBack() from JavaScript does not respond after adding AJAX ScriptManager on the form Pin
rssadiq26-Jun-12 11:40
rssadiq26-Jun-12 11:40 
SQL
Hi

I've created a Bubble chart using Google Chart. When user clicks on a bubble I call __doPostBack() function using javaScript to post-back the selected value to the server. Here is an excerpt from  my code:

C#
// Instantiate the visualization (BubbleChart) in a div element
            chart = new google.visualization.BubbleChart(document.getElementById('chart_div'));

            // The event handler, selectHandler(), calls the chart's getSelection() method
            function selectHandler()
            {
                var selectedItem = chart.getSelection()[0];
                if (selectedItem)
                {
                    var value = selectedItem.row; //, selectedItem.column);
                    document.getElementById('txtDistance').value = 'You have selected ' + data.D[value].c[0].v;
                    __doPostBack('txtDistance','');
                 }
                var selection = chart.getSelection();
            }

            // Listen for the 'select' event, and call my function selectHandler() when
            // the user selects something on the chart.
            google.visualization.events.addListener(chart, 'select', selectHandler);

XML
As you can see that the javascript is assigning a value to the the TextBox 'txtDistance' (the TextBox 'txtDistance' has an  associated TextChanged event) and calling the __doPostBack function to trigger the event procedure 'txtDistance_TextChanged()'

Everything works fine until I add an AJAX ScriptManager ( <asp:ScriptManager ID="ScriptManager1" runat="server" />) in the form.

Can anyone explain why is this happening please?

AnswerRe: calling __doPostBack() from JavaScript does not respond after adding AJAX ScriptManager on the form Pin
jkirkerx26-Jun-12 12:21
professionaljkirkerx26-Jun-12 12:21 
QuestionTime Out problem Pin
WebMaster26-Jun-12 8:29
WebMaster26-Jun-12 8:29 
AnswerRe: Time Out problem Pin
jkirkerx26-Jun-12 9:54
professionaljkirkerx26-Jun-12 9:54 
AnswerRe: Time Out problem Pin
Roger Wright26-Jun-12 19:19
professionalRoger Wright26-Jun-12 19:19 
GeneralRe: Time Out problem Pin
WebMaster27-Jun-12 4:38
WebMaster27-Jun-12 4:38 
GeneralRe: Time Out problem Pin
Roger Wright27-Jun-12 20:05
professionalRoger Wright27-Jun-12 20:05 
Questionrun web form app under local iis from vs 2010 Pin
classy_dog26-Jun-12 6:09
classy_dog26-Jun-12 6:09 
AnswerRe: run web form app under local iis from vs 2010 Pin
R. Giskard Reventlov26-Jun-12 6:17
R. Giskard Reventlov26-Jun-12 6:17 
GeneralRe: run web form app under local iis from vs 2010 Pin
classy_dog26-Jun-12 12:19
classy_dog26-Jun-12 12:19 
QuestionError XML Parsing Error: not well-formed Location: http://localhost/asp/ Line Number Pin
Member 245846725-Jun-12 22:05
Member 245846725-Jun-12 22:05 
AnswerRe: Error XML Parsing Error: not well-formed Location: http://localhost/asp/ Line Number Pin
Sandeep Mewara26-Jun-12 0:41
mveSandeep Mewara26-Jun-12 0:41 
GeneralRe: Error XML Parsing Error: not well-formed Location: http://localhost/asp/ Line Number Pin
Member 245846726-Jun-12 18:42
Member 245846726-Jun-12 18:42 
GeneralRe: Error XML Parsing Error: not well-formed Location: http://localhost/asp/ Line Number Pin
Sandeep Mewara26-Jun-12 20:05
mveSandeep Mewara26-Jun-12 20:05 
GeneralRe: Error XML Parsing Error: not well-formed Location: http://localhost/asp/ Line Number Pin
Member 245846726-Jun-12 23:30
Member 245846726-Jun-12 23:30 
GeneralRe: Error XML Parsing Error: not well-formed Location: http://localhost/asp/ Line Number Pin
Sandeep Mewara27-Jun-12 5:19
mveSandeep Mewara27-Jun-12 5:19 
Question"Unable to launch the configured Visual Studio Development Web Server" Error Pin
Z@db@khsh25-Jun-12 5:42
Z@db@khsh25-Jun-12 5:42 
AnswerRe: "Unable to launch the configured Visual Studio Development Web Server" Error Pin
Sandeep Mewara26-Jun-12 0:39
mveSandeep Mewara26-Jun-12 0:39 

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.