hi,
i found that the pageload event was called twice which lead to the uncheck of the datagrid checkbox
thank you all [:)]
User Profile
Collapse
-
hi,
thankyou very...much hussain,
actually i have copied code from the same article
My doubt is after selecting the rows only i click the button then where to store the status of the checkbox and how to use those values...Leave a comment:
-
-
Are you using asp.net or vb.net
if asp.net then go thro this article this would help
http://aspnet.4guysfromrolla.com/articles/021203-1.aspx
hope this helps you...Leave a comment:
-
Using checkbox in autogenerated datagrid
hi all,
I have 3 autogenerated columns and 1 template column for checkbox and im using vs 2003 in asp.net
my code is
Code:Dim myDataGridItem As DataGridItem Dim chkSelected As New System.Web.UI.WebControls.CheckBox For Each myDataGridItem In dgresult.Items chkSelected = myDataGridItem.FindControl("chkSelection") If chkSelected.Checked
-
you can try this link
http://www.thescripts. com/forum/thread637955.ht mlLeave a comment:
-
Leave a comment:
-
hi,
copy the below code
Code:If dg1.Items.Count Mod dg1.PageSize = 1 And _ dg1.CurrentPageIndex = dg1.PageCount - 1 And _ dg1.CurrentPageIndex <> 0 Then dg1.CurrentPageIndex = dg1.CurrentPageIndex - 1 End If
where dg1 is the datagridname
surely this will solve the problem
try this
all the bestLeave a comment:
-
hi,
check this example this will surely help u
http://aspalliance.com/articleViewer.a spx?aId=427&pId =-1
bye
all the bestLeave a comment:
-
hi sugee,
if u r using the query to rebind the datagrid u can use the order by key word to rearrange the gridvalues while rebinding
hope this helps uLeave a comment:
-
hi,
i think that this is because u have 2 lines
with the same
<%@ Register TagPrefix="mbrs c" Namespace="Meta Builders.WebCon trols" Assembly="MetaB uilders.WebCont rols.RowSelecto rColumn" %>
check the htmlside of the form
im just guessing it.if its wrong, im sorryLeave a comment:
-
hi,
u can use the regular expression validator with
validation expression property set to [0-9]{3}-[0-9]{4}-[0-9]{6}
this will give u the format XXX-XXXX-XXXXXX
if u want alphabets the u can use [a-z]{3}-[0-9]{2}-[A-Z]{3}
this will give u the format XXX-XX-XXXX with first 3 letters in small letters followed by 2 digit number then followed by 3 captial letters
hope this helps u
all the bestLeave a comment:
-
hi,
here is alink
http://aspalliance.com/136_DataGrid_an d_Checkboxes
in this example the author has used the lablebox instead u can use a textbox
hope this helps u
with regards
Asha SLeave a comment:
-
hi,
use the below code in the pageload event
Dim button As WebControl
button = Page.findContro l("btnsave")
button.Attribut es.Add("onclick ", "return confirm_save (this.form);")
in the javascript
function confirm_save (frm)
{
return confirm ('Are you sure you want to Save the record?')
}Leave a comment:
-
hi,
try this code
'Retrieve the data into a DataSet:
Dim strSQL As String = "Select course_id,cours eName From MyTable"
Dim Connection As New OleDbConnection ("PROVIDER=.... ")
Dim DA As New OleDbDataAdapte r(strSQL, Connection)
Dim DS As New DataSet
DA.Fill(DS, "couse")
'Create and populate the DataTable to bind to the ComboBox:
...Leave a comment:
-
hi,
i think u mean the same as it is in
http://www.thescripts. com/forum/thread600725.ht ml
hope that helps u,Leave a comment:
-
hi,
here is alink
http://aspalliance.com/136_DataGrid_an d_Checkboxes
in this example the author has used the lablebox instead u can use a textbox
hope this helps u
with regards
Asha SLeave a comment:
-
hi,
could u plz explain me what is User.IsInRole(" Admin")==true meansLeave a comment:
-
hi,
i have an idea about ur query
So,here is my idea
use a session variable in the login page
like
In the submit button:
session("uname" )=txtuname.text
if session("uname" )='a' then
response.redire ct("pageX.aspx" )
else
response.redire ct("pagey.aspx" )
end if
hope this code helps
with regards
Asha SLeave a comment:
-
hi,
set the datatextfield property to the name of the course
set the datavaluefield property to the id as shown below
ddlist.DataText Field = "coursename "
ddlist.DataValu eField = "course_id"
to access the id use the following code
ddlist.Selected Item.Value
using the above code only the course name is displayed and internally u get the course id
...Leave a comment:
No activity results to display
Show More
Leave a comment: