Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Web part Programming Error

  Asked By: Howard    Date: Mar 21    Category: Sharepoint    Views: 687

I am trying to develop an ajax-based webpart that uses object model.

In the program I have a dropdown list which is populated according to an action.

When I press a button it grabs the list of sites in a webapplication, and fill
in the dropdown list.

But any other event (button press etc) produces the following error.


If a remove the following part from the code I don't get the error.


foreach (web in sites) {

dropdownSites.Item.Add(web.Url.ToString());

}

But i can't do this.

What could be the reason?

Any idea?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Arlene Hodge     Answered On: Mar 21

The error  didn't come through

 
Answer #2    Answered By: Jolene Sandoval     Answered On: Mar 21

I guess the images are skipped somehow.
The error  is as follows:

Sys.WebForms.PageRequestManagerServerErrorException: Unknown error occured while
processing the request on the server.
The status code  returned from the server was: 500

 
Didn't find what you were looking for? Find more on Web part Programming Error Or get search suggestion and latest updates.




Tagged: