|
vhs17 wrote: Is there any javascript for this ? or any coding(C#)??
Yes. There are lot of Examples are hereitself.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
foreach (GridViewRow gdvRow in ResultsGrid.Rows)
{
CheckBox objCheckBox = (CheckBox)gdvRow.Cells[columns].Controls[1];
if (htmlCheckBox.Checked == true)
{
}
}
|
|
|
|
|
HI TRY THIS SCRIPT IF YOU WANT TO CHECK ALL CHECKBOXES ON CLICK OF BUTTON
for (var i = 0; i < e.form.elements.length; i++) <br />
{<br />
if (e.form.elements[i].name == "CHKNAME")<br />
e.form.elements[i].checked = true;<br />
<br />
}<br />
}
bEST rEGARD
pATHAN
---------------------------------------------------
|
|
|
|
|
pass the datagrid name via the codebehind: btnCheckAll.Attributes.Add("OnClick","javascript:return CheckAll("dgdGrid");");
function CheckAll(dataGridName)
{
var ChkState = true;
//count the no. of rows in the DataGrid List
var count = document.getElementById(dataGridName).rows.length;
for(i = 2;i<=count+1; i++)
{
var id = dataGridName+"__ctl" + i + "_chkSelect";
var elem = document.getElementById(id);
elem.checked = ChkState ;
}
}
where "chkSelect" will be the name of the checkbox as mentioned in the item tempelate column in the html code for the datagrid.
Hope this helps !!
|
|
|
|
|
Thank you All..........
|
|
|
|
|
Hi
I'm trying to move the selected item from listbox1 to listbox2. but the condition is tat if the selected item of listbox1 does not exists in listbox2 only then that particular item should be added to listbox2
Thanks in advance
Regards
G...
|
|
|
|
|
What is the problem ?
Before adding to listbox 2 check the item is already added to it if no then add
atleast first try
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
iterate through each item of first box using foreach loop and check if that item is there in box two, if not there add it. you will need to use two nested foreach loop to acomplish this.
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
Try out this code and check,whether its answers ur question. U can use this for both single item and multiple item move.
Dim i As Integer
Dim j As Integer
Dim n As Integer
For i = 0 To ListBox1.Items.Count - 1
n = 0
If ListBox1.Items(i).Selected = True Then
For j = 0 To ListBox2.Items.Count - 1
If ListBox2.Items(j).Text = ListBox1.Items(i).Text Then
n = 1
End If
Next
If n <> 1 Then
ListBox2.Items.Add(ListBox1.Items(i).Text)
End If
End If
Next
with regards,
sudha
|
|
|
|
|
Thanks Madam.. its really working fine
|
|
|
|
|
Hello all,
I have a multiview with two views. on click of one button I need to change activeviewindex of multiview with clientclick event of this button(java script function to handle this). i have a server side click event too for the same button, after clientside event changes the activeindex of multiview, my server side event will work with the current active index(which is changed through javascript).
So i just want to change activeviewindex of a multiview from javascript.
is there any way to do this? Any idea will be helpful...
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
hi friends
In enterprise library 2.0 contain the class and dll..
which one i will use the program.
another query is:
it contain multiple classes.
For example,cacheblock contain multiple class.which class should i use program
regards
saravanan
|
|
|
|
|
Could you explian your query properly ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
can you clarify your question
Mahendra
|
|
|
|
|
What is your problem?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
In enterprise library
contain 7 blocks..
1.dataacces block
2.security block
.
.
.
7.configuration block
each block contain multiple class libraries
each class libraries contain different type of code.
how to use the enterprise library in aspx page..
hope u understand
|
|
|
|
|
It depends on your Requirement.
if u want to Manage Database Interaction u have to use DATA Access BLock.
if u want to Manage Exception have to use ExceptionHandling BLock.
Mahendra
|
|
|
|
|
thanxs
but i have one doubt.
In dataaccess block contain sql,oracle like this
here sql contain near to 20 class libraries
for example
1.ConnectionStringFixture.cs
2.DataAccessTestsFixture.cs
i use enterprise library 2.0
i am new in enterprise libray
plz help
regards
saravanan
|
|
|
|
|
saravanan05 wrote: i am new in enterprise libray
My Kind and Humble request is Go through some of the books related to the Enterprise Library and also gi through some of the Links which you get ti from our Best Friend and try to understand the concept and implement it.
Then ask your Query. Don't ask your problems blindly.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
Glad to Help Always.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
You should really just add a reference to the DLL. You don't need to include all the classes in your solution...
|
|
|
|
|
I have used the XMLHttpRequest class to get results from my http handlers. I see that IE caches the results returned by http handlers .How can I avoid this ???
|
|
|
|
|
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi All
Im having a problem getting my treeview to select a single node.
I wanna achieve the following:
When i click on the checkbox then i want to select that node,that part works.
But when i select a second node then i want the first node to be deselected.
Can someone please help.
Thanks in advance.
living life on the flip side
|
|
|
|