i have to develop a simple gallery system by using ajax. So i develop a
simple idea about this. My idea is create a new aspx page to view
pictures and at the main page write a ajax method to parse this page
and show the result. In gallery page which is parsed by ajax method i
used a datalist control it is really good to listing templated
records.In main page i have another ajax method it is working but
ajaxmethod which is related to gallery issues not working., No Error no
warning. i put a breakpoint and no action;) here is my ajax method:

    [AjaxPro.AjaxMethod]
    public string GetGallery(int Kat_Prefix)
    {
        WebClient c = new WebClient();
        Stream s = c.OpenRead("./Resimler.aspx?KatId=" + Kat_Prefix);
        StreamReader rd = new StreamReader(s);
        string Content = rd.ReadToEnd();
        rd.Close();
        s.Close();
        Content = Content.Substring(Content.IndexOf("<!-- Burda Baslar
-->"), Content.IndexOf("<!-- Burda Biter -->") - (Content.IndexOf("<!--
Burda Baslar -->") + ("<!-- Burda Baslar -->").Length));
        return Content;
    }


here is the javascript function :
function GaleriIsleri(x)
{
    _Default.GetGallery(x, BilgiGetir_callback);
    document.getElementById("Content").style.display="none";
    document.getElementById("Yukleniyor").style.display="block";

}



after execution Content of Content Layer is null.

I dont want to javascript codes with XmlHttpReqest to reading
Resimler.aspx and  i want to use ajax methods in my C# code.

Can anybody help me about this? I have two ajaxmethod in code behind
one of them is working but other one( i wrote it above) is not working.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to