Click here to Skip to main content
15,897,187 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAjax Control ToolKit Problem Pin
pampam11017-Aug-09 9:30
pampam11017-Aug-09 9:30 
AnswerRe: Ajax Control ToolKit Problem Pin
Abhijit Jana17-Aug-09 10:06
professionalAbhijit Jana17-Aug-09 10:06 
GeneralRe: Ajax Control ToolKit Problem Pin
pampam11017-Aug-09 10:11
pampam11017-Aug-09 10:11 
GeneralRe: Ajax Control ToolKit Problem Pin
pampam11020-Aug-09 3:11
pampam11020-Aug-09 3:11 
QuestionGetting crazy with datalist-volume 2- Pin
Ersan Ercek17-Aug-09 9:22
Ersan Ercek17-Aug-09 9:22 
QuestionCalling non-static method from static webmethod Pin
DotNetXenon17-Aug-09 8:19
DotNetXenon17-Aug-09 8:19 
AnswerRe: Calling non-static method from static webmethod Pin
N a v a n e e t h17-Aug-09 8:44
N a v a n e e t h17-Aug-09 8:44 
GeneralRe: Calling non-static method from static webmethod Pin
DotNetXenon17-Aug-09 9:29
DotNetXenon17-Aug-09 9:29 
Everything has a necessity and I wanted to clearly communicate that am not a beginner.
Please ask why this is needed if you are interested to help or opt to stay out. There will be somebody else who will be willing to help. When I have posted a question on a forum, it clearly means I am looking for a solution.



This is what am trying to achieve.
Ajax control, collapsible panel extender(cpe) needs to expand a panel containing a repeater control and load data into repeater when the panel is expanded.
I found that there is no server side click event but there is an expand-collapse javascript handler.

To call server side code from AJAX, Pagemethods can be used.
<asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server">
</asp:ScriptManager>

[System.Web.Services.WebMethod]
public static DataSet GetContactName()
{
DataSet ds = new DataSet();
XmlDocument doc = new XmlDocument();
ds.ReadXml(System.Web.HttpContext.Current.Server.MapPath("App_Data/Group.xml"));
LoadData(ds);
}

public void LoadData(DataSet ds)
{
DataSet ds = GetContactName();
repeaterGroup.DataSource = ds;
repeaterGroup.DataBind();
}


I am not able to access LoadData from GetContactName(). Any help on this would be greatly appreciated.

------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates

GeneralRe: Calling non-static method from static webmethod Pin
Christian Graus17-Aug-09 11:57
protectorChristian Graus17-Aug-09 11:57 
QuestionFocus Issue Due to AJAX Refresh Pin
platso_58817-Aug-09 5:37
platso_58817-Aug-09 5:37 
QuestionHow to calculate number of lines? Pin
Gaurav Aroraa17-Aug-09 3:19
professionalGaurav Aroraa17-Aug-09 3:19 
AnswerRe: How to calculate number of lines? Pin
Blue_Boy17-Aug-09 3:31
Blue_Boy17-Aug-09 3:31 
GeneralRe: How to calculate number of lines? Pin
Gaurav Aroraa19-Aug-09 3:07
professionalGaurav Aroraa19-Aug-09 3:07 
AnswerUse integer division Pin
David Mujica17-Aug-09 4:02
David Mujica17-Aug-09 4:02 
GeneralRe: Use integer division Pin
Gaurav Aroraa19-Aug-09 3:13
professionalGaurav Aroraa19-Aug-09 3:13 
QuestionText reterival from dynamic HTML textbox Pin
VarunPrakash17-Aug-09 2:56
VarunPrakash17-Aug-09 2:56 
QuestionGetting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 2:04
Ersan Ercek17-Aug-09 2:04 
AnswerRe: Getting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 2:14
Ersan Ercek17-Aug-09 2:14 
GeneralRe: Getting crazy with datalist control within update panel Pin
Coding C#17-Aug-09 2:22
Coding C#17-Aug-09 2:22 
GeneralRe: Getting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 2:42
Ersan Ercek17-Aug-09 2:42 
AnswerRe: Getting crazy with datalist control within update panel Pin
Ersan Ercek17-Aug-09 3:51
Ersan Ercek17-Aug-09 3:51 
Questionsession Pin
mylogics17-Aug-09 1:50
professionalmylogics17-Aug-09 1:50 
AnswerRe: session Pin
Coding C#17-Aug-09 2:04
Coding C#17-Aug-09 2:04 
AnswerRe: session Pin
Ersan Ercek17-Aug-09 2:10
Ersan Ercek17-Aug-09 2:10 
AnswerRe: session Pin
Abhijit Jana17-Aug-09 9:51
professionalAbhijit Jana17-Aug-09 9:51 

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.