Click here to Skip to main content
15,923,087 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Really slow "getting files" in VS2005 all of a sudden Pin
Saksida Bojan21-Sep-07 9:37
Saksida Bojan21-Sep-07 9:37 
GeneralRe: Really slow "getting files" in VS2005 all of a sudden Pin
InvalidTypecast21-Sep-07 9:46
InvalidTypecast21-Sep-07 9:46 
AnswerRe: Really slow "getting files" in VS2005 all of a sudden Pin
InvalidTypecast24-Sep-07 10:36
InvalidTypecast24-Sep-07 10:36 
QuestionTreeView that Updates a grid Pin
cisco210321-Sep-07 5:28
cisco210321-Sep-07 5:28 
AnswerRe: TreeView that Updates a grid Pin
Saksida Bojan21-Sep-07 8:59
Saksida Bojan21-Sep-07 8:59 
QuestionValidating Controls:Detailsview Pin
Priya S21-Sep-07 5:16
Priya S21-Sep-07 5:16 
AnswerRe: Validating Controls:Detailsview Pin
Kasi Viswanathan21-Sep-07 21:54
Kasi Viswanathan21-Sep-07 21:54 
QuestionDatagrid within a user control Pin
talasila8021-Sep-07 4:41
talasila8021-Sep-07 4:41 
Hi
Here is the situation, I have an aspx page with 10 buttons on it, when each button is clicked I load a user control using the following statement,

Me.DGPanel.Controls.Add(LoadControl("Controls/AmexUC.ascx"))

In each control there is a Label a Textbox and a Datagrid, When the contol loads to the page, Both the label and textbox display fine but there is no datagrid, Here is the code that I am using in the Page_Load of the user control

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
logPath = Request.MapPath("~\\Log\\")

dateFrom = Convert.ToDateTime(Request.QueryString("DateFrom"))
dateTo = Convert.ToDateTime(Request.QueryString("DateTo"))

AmexDataMgr.ListForCollection(dsn, uid, pwd, PriBox, SecBox, Sys, Prod, Serv, db_app, dateFrom, dateTo, "A", "A", coll, logPath)
coll = Me.LoadCollection(coll)

If Not Page.IsPostBack Then

Me.BindData()
End If

End Sub

And the code for BindData():-

Private Sub BindData()
Me.DataGridCtrl.DataSource = coll

Me.DataGridCtrl.DataBind()
End Sub




QuestionDisplay in BOLD Pin
bhattiprolu21-Sep-07 4:37
bhattiprolu21-Sep-07 4:37 
AnswerRe: Display in BOLD Pin
Paddy Boyd21-Sep-07 4:41
Paddy Boyd21-Sep-07 4:41 
GeneralRe: Display in BOLD Pin
bhattiprolu21-Sep-07 5:03
bhattiprolu21-Sep-07 5:03 
GeneralRe: Display in BOLD Pin
Paddy Boyd21-Sep-07 5:08
Paddy Boyd21-Sep-07 5:08 
GeneralRe: Display in BOLD Pin
bhattiprolu21-Sep-07 6:10
bhattiprolu21-Sep-07 6:10 
GeneralRe: Display in BOLD Pin
Paddy Boyd21-Sep-07 6:12
Paddy Boyd21-Sep-07 6:12 
GeneralRe: Display in BOLD Pin
bhattiprolu21-Sep-07 6:26
bhattiprolu21-Sep-07 6:26 
GeneralRe: Display in BOLD Pin
Saksida Bojan21-Sep-07 8:54
Saksida Bojan21-Sep-07 8:54 
QuestionObject cannot be cast from DBNull to other types Pin
newbieAl21-Sep-07 4:27
newbieAl21-Sep-07 4:27 
AnswerRe: Object cannot be cast from DBNull to other types Pin
eggsovereasy21-Sep-07 4:40
eggsovereasy21-Sep-07 4:40 
GeneralRe: Object cannot be cast from DBNull to other types [modified] Pin
newbieAl21-Sep-07 4:51
newbieAl21-Sep-07 4:51 
GeneralRe: Object cannot be cast from DBNull to other types Pin
InvalidTypecast21-Sep-07 9:21
InvalidTypecast21-Sep-07 9:21 
GeneralRe: Object cannot be cast from DBNull to other types Pin
eggsovereasy21-Sep-07 10:07
eggsovereasy21-Sep-07 10:07 
GeneralRe: Object cannot be cast from DBNull to other types Pin
newbieAl24-Sep-07 3:02
newbieAl24-Sep-07 3:02 
QuestionDifference between DataBinder.Eval() and Eval()?? Pin
Sri_346421-Sep-07 2:37
Sri_346421-Sep-07 2:37 
AnswerRe: Difference between DataBinder.Eval() and Eval()?? Pin
pmarfleet21-Sep-07 4:05
pmarfleet21-Sep-07 4:05 
Questionhow to pass a javascript variable into asp variable? Pin
ganeshMohan21-Sep-07 2:31
ganeshMohan21-Sep-07 2:31 

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.