Click here to Skip to main content
16,004,887 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Tree view remove child node Pin
J Liang11-Apr-07 22:50
J Liang11-Apr-07 22:50 
QuestionScreenscraping Real Time Stock Quotes ?? Pin
vivek_r11-Apr-07 20:16
vivek_r11-Apr-07 20:16 
AnswerRe: Screenscraping Real Time Stock Quotes ?? Pin
Paddy Boyd11-Apr-07 23:07
Paddy Boyd11-Apr-07 23:07 
QuestionHelp Me soon Pin
Mkanchha11-Apr-07 19:53
Mkanchha11-Apr-07 19:53 
AnswerRe: Help Me soon Pin
Sophia Rekhi11-Apr-07 22:47
Sophia Rekhi11-Apr-07 22:47 
QuestionImport from excell to SQL 2005 Pin
samerh11-Apr-07 19:53
samerh11-Apr-07 19:53 
AnswerRe: Import from excell to SQL 2005 Pin
Mayank Parmar12-Apr-07 0:26
professionalMayank Parmar12-Apr-07 0:26 
QuestionI will created dynamic check boxes in panel but it losing the checked values when i reloads Pin
haneef111-Apr-07 19:49
haneef111-Apr-07 19:49 
I will created dynamic check boxes in panel but it losing the checked values when i reloads


Example :

no problem with bind data but when i click submit i need to reload the binddata() definitely other wise panel doesn't show any items.

if i reload then checked values are losing when i calling the submit button.




sub binddata()

dim ds as dataset // here i will take data source from which from database.
Try

ds=obj.GetSource()
For index = 0 To ds.Tables(0).Rows.Count - 1

chklist = New CheckBox
chklist.Text = ds.Tables(0).Rows(index).Item(0).ToString
chklist.ID = ds.Tables(0).Rows(index).Item(0).ToString
chklist.EnableViewState = True


Panel1.Controls.Add(chklist)
Panel1.Controls.Add(New LiteralControl("
"))

Next


end sub


problem below when i reloads the databind(). but i need to be definitely reloads the databind other wist panel doen't show any thing


Private Sub submit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles submit.Click


While index < ds.Tables(0).Rows.Count
DisplayPanel = CType(FindControl("panel1"), Panel)
chklist1 = CType(DisplayPanel.FindControl(ds.Tables(0).Rows(index).Item(0).ToString), CheckBox)
If Not chklist1 Is Nothing Then
chklist1.Text = ds.Tables(0).Rows(index).Item(0).ToString

If chklist1.Checked = True Then //here showing that not checking even thought i will check check boxes
objWeb.Addid(drlist.SelectedItem.Value, chklist1.ID)
End If

End If
index = index + 1

End While

end sub






this is haneef

Questionfull text search Pin
Utkarsh sharma11-Apr-07 18:17
Utkarsh sharma11-Apr-07 18:17 
AnswerRe: full text search Pin
thomasa11-Apr-07 23:01
thomasa11-Apr-07 23:01 
QuestionHow to import Excel file to mySQL ? Pin
cheeken2u11-Apr-07 16:04
cheeken2u11-Apr-07 16:04 
AnswerRe: How to import Excel file to mySQL ? Pin
Naveed Kamboh11-Apr-07 22:35
Naveed Kamboh11-Apr-07 22:35 
QuestionArabic or Non-English Language in ASP.NET Pin
ahmed hakem11-Apr-07 15:50
ahmed hakem11-Apr-07 15:50 
AnswerRe: Arabic or Non-English Language in ASP.NET Pin
Paddy Boyd11-Apr-07 23:15
Paddy Boyd11-Apr-07 23:15 
QuestionOn click event Pin
hadad11-Apr-07 12:35
hadad11-Apr-07 12:35 
AnswerRe: On click event Pin
Elina Blank11-Apr-07 13:16
sitebuilderElina Blank11-Apr-07 13:16 
GeneralRe: On click event Pin
hadad11-Apr-07 13:29
hadad11-Apr-07 13:29 
GeneralRe: On click event Pin
Elina Blank11-Apr-07 13:34
sitebuilderElina Blank11-Apr-07 13:34 
GeneralRe: On click event Pin
hadad12-Apr-07 1:36
hadad12-Apr-07 1:36 
Questionrunat=server or runat="server"? Pin
Yeppr11-Apr-07 11:04
Yeppr11-Apr-07 11:04 
AnswerRe: runat=server or runat="server"? Pin
J$11-Apr-07 12:19
J$11-Apr-07 12:19 
QuestionSending e-mails with unicode encoding Pin
Ahmed Galal11-Apr-07 10:13
Ahmed Galal11-Apr-07 10:13 
Questionexpression not a method Pin
Hasan Ali11-Apr-07 8:28
Hasan Ali11-Apr-07 8:28 
GeneralRe: expression not a method Pin
Guffa11-Apr-07 8:53
Guffa11-Apr-07 8:53 
GeneralRe: expression not a method Pin
Jonathan [Darka]17-Apr-07 21:57
professionalJonathan [Darka]17-Apr-07 21:57 

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.