locked
how to get describe Ajax Slideshow to navigation? RRS feed

  • Question

  • User-1136231507 posted

    Hi,

    I created ajax slide show with database and now want to get describe to navigate but when I want to do this 

    Here is code

    <a href='reader.aspx?Test=<%# Eval(Decribe.Text) %>'><asp:Label ID="Decribe" runat="server"/></a>

    navigate to page reader but quieystring is null

    http://localhost:20608/reader.aspx?News=

    I cant get Describe how to get that?

    plz help me THANKS,

    Sunday, October 5, 2014 12:38 PM

Answers

  • User61956409 posted

    Hi gigidel,

    Thanks for your post.

    As for your problem, I create a sample for you, you could refer the following code.

    <script src="Scripts/jquery-1.10.2.js"></script>
    <script>
    
            $(function () {
    
                $.ajax({ 
                    type: "Post", 
                    url: "Main.aspx/getdescrie",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) { 
                        //get the describe form database via ajax
                        var des = data.d;
                        //change href 
                        document.getElementById("a1").href = "reader.aspx?Test=" + des;
                    },
                    error: function (err) {
                        alert(err);
                    }
                });
            });
    </script>
    
    <a id="a1" href="#">describe</a>

    If you have any question about my reply, please let me know freely.

    Best Regards,

    Fei Han



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 6, 2014 4:00 AM