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

ASP.NET

 
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 
QuestionI will created dynamic check boxes in panel but it losing the checked values when i reloads Pin
haneef112-Apr-07 0:10
haneef112-Apr-07 0:10 
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
Sun Rays12-Apr-07 0:18
Sun Rays12-Apr-07 0:18 
QuestionHow do solve the Internet Explorer Script Error? [modified] Pin
jayarajmrj11-Apr-07 23:42
jayarajmrj11-Apr-07 23:42 
GeneralRe: How do solve the Internet Explorer Script Error? Pin
Guffa12-Apr-07 0:11
Guffa12-Apr-07 0:11 
GeneralRe: How do solve the Internet Explorer Script Error? Pin
jayarajmrj12-Apr-07 0:21
jayarajmrj12-Apr-07 0:21 
GeneralRe: How do solve the Internet Explorer Script Error? Pin
Guffa12-Apr-07 8:10
Guffa12-Apr-07 8:10 
AnswerRe: How do solve the Internet Explorer Script Error? Pin
uowzd0112-Apr-07 15:55
uowzd0112-Apr-07 15:55 
Questionmodify a connection string in the web.config file [modified] Pin
steve_rm11-Apr-07 23:40
steve_rm11-Apr-07 23:40 
AnswerRe: modify a connection string in the web.config file Pin
Mayank Parmar12-Apr-07 0:18
professionalMayank Parmar12-Apr-07 0:18 
QuestionRe: modify a connection string in the web.config file Pin
steve_rm12-Apr-07 1:46
steve_rm12-Apr-07 1:46 
Questionwhat is vsdisco file in asp.net Pin
Shuaib wasif khan11-Apr-07 23:26
Shuaib wasif khan11-Apr-07 23:26 
AnswerRe: what is vsdisco file in asp.net Pin
Sun Rays12-Apr-07 0:12
Sun Rays12-Apr-07 0:12 
Questionwindows service Pin
siddisagar11-Apr-07 23:14
siddisagar11-Apr-07 23:14 
QuestionAJAX simple problem Pin
Yoyosch11-Apr-07 22:57
Yoyosch11-Apr-07 22:57 
QuestionGridView row background color Pin
Yoyosch11-Apr-07 22:56
Yoyosch11-Apr-07 22:56 
AnswerRe: GridView row background color Pin
Naveed Kamboh11-Apr-07 23:11
Naveed Kamboh11-Apr-07 23:11 
GeneralRe: GridView row background color Pin
Yoyosch12-Apr-07 0:04
Yoyosch12-Apr-07 0:04 
GeneralRe: GridView row background color Pin
Naveed Kamboh12-Apr-07 0:06
Naveed Kamboh12-Apr-07 0:06 

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.