|
Loop through the items in the Checkbox list
<br />
ListItemCollection list= CheckBoxList1.Items;<br />
foreach (ListItem item in list)<br />
{<br />
item.Selected = true;<br />
<br />
}<br />
But when you want to make all items to be selected ?
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... "
|
|
|
|
|
Thanks but I said checked, not selected!
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: Thanks but I said checked, not selected!
Its same thing if you view the html content if your aspx page the Check property will show checked
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... "
|
|
|
|
|
Sandeep Akhare wrote: if your aspx page blah blah blah
Thank you very much Sandeep for your precious time and efforts trying to help me, but did I ever mentioned aspx in any of my posts??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
:->:->Sorry dude i thougt its ASP.NET forum
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... "
|
|
|
|
|
AOA:
I have made a user control now i want to call that user control in my test.aspx.cs file .
can anybody knows how to call this.
Regards
Farhan Ali
|
|
|
|
|
First Register that control in your aspx page
<%@ Register tagprefix="tagprefix"
namespace="namespace"
assembly="assembly" %>
Then use it in your aspx page
<code><tagprefix:YourUserControl id="Give ID " runat="server" /></code>
IN Code behind (.cs) file use this id
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... "
|
|
|
|
|
i have done it like this but when in .cs file i use this id no attributes of that user control comes.
Am i missing something
Thanx
|
|
|
|
|
Are you able too see that user control When you run the application ?
Might be IDE problem if evry thing is right ?
Can you post the code ?
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... "
|
|
|
|
|
UserControl usc = (SuitableProd)Master.FindControl("SuitableProd");
if (usc != null)
{
usc. (here i want other controls which are contained by the user control)
}
|
|
|
|
|
TRY THIS
SuitableProd usc = (SuitableProd)Master.FindControl("SuitableProd");
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 anyone guide me as to how i can add a vertical scroll abr in the messagebox option...
i am displaying my output vertically which contains 569 fields...is their anyway a vertical scroll bar can be added in the messagebox??
|
|
|
|
|
Why dont you create your own messagebox control and add whatever you want in it?
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
thank u for helping me out sir,
but as i am not well versed with C#...i dont have any idea as to how to create my own messagebox...can u help me through???
|
|
|
|
|
It won't get any easier than creating a new dialog and putting a TextBox and a Button on it, will it?
Try working through some basic Windows Forms tutorials and your task will be a matter of minutes afterwards.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
|
Saritha Devaki wrote: how can we use this
Definitely not by asking three times. MSDN has an example about using it
|
|
|
|
|
sorry it is by mistake there are 3 questions .sorry once again
|
|
|
|
|
how can we use printdailog control in an application?
|
|
|
|
|
how can we use this control?
|
|
|
|
|
Hi ,
Can anyone please tell me how to completely stop the Outlook Security Alert whenever I am trying to access emial data .( the security alert that asks the user whether to allow the access to the outlook for maximum 10 minutes )
Thanks,
|
|
|
|
|
I doubt you can.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi guys,
I need your help on doing the following:
I am creating an outlook addin project and I need to have an event whenever an item is Sent I popup a messgeBox to the user with the Sent item data ex: Sent To or by SentOn
Thanks,
Nermeen
|
|
|
|
|
hiii,
iam working on a application using asp with C#.net,
iam not able to get how to insert data from textbox into database.
hope u will help me out of this..
suhasini
|
|
|
|