Click here to Skip to main content
15,890,579 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Access file in the client machine Pin
sivainfo12-Apr-07 17:46
sivainfo12-Apr-07 17:46 
GeneralRe: Access file in the client machine Pin
kubben13-Apr-07 1:50
kubben13-Apr-07 1:50 
QuestionIt's urget please help me with this code Pin
Oga M12-Apr-07 2:12
Oga M12-Apr-07 2:12 
QuestionURLRewriting of a Pathname like (www.myspace.com/[username]) Pin
Succodimele12-Apr-07 2:10
Succodimele12-Apr-07 2:10 
AnswerRe: URLRewriting of a Pathname like (www.myspace.com/[username]) Pin
e2canoe12-Apr-07 4:50
e2canoe12-Apr-07 4:50 
GeneralRe: URLRewriting of a Pathname like (www.myspace.com/[username]) Pin
Succodimele15-Apr-07 20:54
Succodimele15-Apr-07 20:54 
Questioni want code for crating dynamic check boxes in panel. and i need to store the id's of checked when i click submit button. Pin
haneef112-Apr-07 1:24
haneef112-Apr-07 1:24 
QuestionI will created dynamic check boxes in panel but it losing the checked values when i reloads Pin
haneef112-Apr-07 1:19
haneef112-Apr-07 1:19 
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


this is haneef

AnswerRe: I will created dynamic check boxes in panel but it losing the checked values when i reloads Pin
Naveed Kamboh12-Apr-07 3:27
Naveed Kamboh12-Apr-07 3:27 
Questionurgent Pin
Shuaib wasif khan12-Apr-07 1:00
Shuaib wasif khan12-Apr-07 1:00 
AnswerRe: urgent Pin
gauthee12-Apr-07 1:08
gauthee12-Apr-07 1:08 
AnswerRe: urgent Pin
enjoycrack12-Apr-07 2:27
enjoycrack12-Apr-07 2:27 
Questionhow to play audio in 2003 Pin
Kirtibangalore12-Apr-07 0:53
Kirtibangalore12-Apr-07 0:53 
AnswerRe: how to play audio in 2003 Pin
Goalie3512-Apr-07 4:27
Goalie3512-Apr-07 4:27 
AnswerRe: how to play audio in 2003 Pin
e2canoe12-Apr-07 4:57
e2canoe12-Apr-07 4:57 
Questionhow to properly hide elements Pin
markymark8212-Apr-07 0:36
markymark8212-Apr-07 0:36 
AnswerRe: how to properly hide elements Pin
gauthee12-Apr-07 0:39
gauthee12-Apr-07 0:39 
GeneralRe: how to properly hide elements Pin
markymark8212-Apr-07 0:52
markymark8212-Apr-07 0:52 
GeneralRe: how to properly hide elements Pin
gauthee12-Apr-07 1:10
gauthee12-Apr-07 1:10 
AnswerRe: how to properly hide elements Pin
kubben12-Apr-07 5:43
kubben12-Apr-07 5:43 
GeneralRe: how to properly hide elements Pin
Not Active12-Apr-07 7:48
mentorNot Active12-Apr-07 7:48 
GeneralRe: how to properly hide elements Pin
kubben12-Apr-07 13:55
kubben12-Apr-07 13:55 
QuestionGridView Sorting Pin
Jay_se12-Apr-07 0:27
Jay_se12-Apr-07 0:27 
AnswerRe: GridView Sorting Pin
Mayank Parmar12-Apr-07 0:42
professionalMayank Parmar12-Apr-07 0:42 
GeneralRe: GridView Sorting Pin
gautamamit820-Jun-10 23:00
gautamamit820-Jun-10 23:00 

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.