Can't load user control with FormView in Atlas update panel

S

staeri

I have a simple aspx page containing a FormView which I have converted
to a ascx page but when I load this user control it's empty. If I load
demo user controls from msdn they show up so the problem is with the
user control.

I have the following code behind:

Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports NameOfWebService

Public Class MyCodeBehind
Inherits UserControl

Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)
If (Not IsPostBack) Then
'Perform search
Dim s As New DataImport
Dim result As DataImportDsResult =
s.DataImportCompanyDs("xxx")

'Bind form view to dataset
fv1.DataSource = result.Fields
fv1.DataBind()
End If
End Sub

Is there anything wrong with it?

Regards,

S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top