locked
Use a third party control in asp.net webform issue RRS feed

  • Question

  • User-234441352 posted

    Hi,

    I am trying to use a third party control in my Asp.Net WebForm application which has been developed in php ( and in jquery as client side).

    This control has some popups, Wizards and form elements. 

    When we click the form submit button, aspx page send a postback call and then whole process start again.

    This is only happen in Asp.Net Webform pages and I have tried in Asp.Net MVC application, everything works fine.

    please see my code if there is a way to solve this. Still i am trying to fix it by finding a better solution.

    <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication13._Default" %>
    
    <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
        <div id="api_wrapper">
            Widget
        </div>
        <script type="text/javascript">
            if ((typeof jQuery != 'undefined') && parseFloat(jQuery.fn.jquery) > parseFloat('2.2.0')) {
                // jQuery is loaded => print the version
                document.write('<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></'
                    + 'script>');
            }
            else if (typeof jQuery == 'undefined') {
                 document.write('<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></'
                   + 'script>');
    
            }      
        </script>
    <script type="text/javascript" src="https://www.thirdpartyapi/v2/thirdpartyplugin.js"></script>
    <script>var toke = '3d4d64738d88gca86d6t9h9f3de8t7b3';</script>  
    </asp:Content>

    Friday, October 16, 2020 3:23 PM

Answers

  • User475983607 posted

    I assume you have to write a JavaScript application or do HTTP requests from the code behind to the 3rd party.  I recommend reading the 3rd party support documentation or contacting the 3rd party for assistance.   You have to understand, there is nothing this support forum can do to help you with an unknown 3rd party service/library.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 16, 2020 3:33 PM