I'm debugging my VB.net webapplication, with VS.2005
When I step into the code, I get the following error on this line of code:
ddlServers.DataBind()
"There is no source code available for the current location."
I asks me if I want to show the disassembly.
What goes wrong?
Hi.
where is the code for binding the values to the dropdown..
are u using sqldatasource or coding manually..
I use an ObjectDataSource:
<asp:DropDownListID="ddlServers"
runat="server"style="margin: 10px;"
DataSourceID="ObjectDataSource1"DataTextField="SERVER_NAME"
DataValueField="SERVER_AND_PORT"AutoPostBack="True"
meta:resourcekey="ddlServersResource1">
</asp:DropDownList>
<asp:ObjectDataSource
ID="ObjectDataSource1"
runat="server"SelectMethod="GetServers"
TypeName="Plugin_Manager_BLL.PluginManager"OldValuesParameterFormatString="original_{0}">
</asp:ObjectDataSource>
as far as I'm aware - you wouldn't need to call the databind() if your ddl has a datasource - this should be done automatically. If you need to re-bind, after a postback for example, why not try to add:
if not page.ispostback then
'do stuff
else
ddl.databind()
end if
maybe try that?
Hi,
Based on my understanding, when you try to step into the code above, you get the error message above. You used ObjectDataSource to bind the control. If I have misunderstood you, please feel free to let me know.
The error message above indicates that the debugger cannot display source code for the current location where execution has stopped. As far as I know, when we use a library without its source code, we cannot show the source code (DataBind method).
To better understand your issue, could you please confirm the following information:
If we create another simple project and bind the DropDownList with ObjectDataSource, does it have the same issue?
0 comments:
Post a Comment