|
Not sure what you mean by it. It's not adding all the items marked?
Further, to avoid reference issues, create a new listitem every time you find that the checklistbox item is selected and then add that to the new list.
|
|
|
|
|
Make a loop iteration on the CheckBoxList on counter from Zero (0) till the item count in CheckBoxList.
then inside for loop, at every index put a if condition for, if the item at that index of CheckBoxList either the check box is checked or not,, if it is checked then add that item to a temporary created Data Table or DataSet, every time the condition falls true...
as the loop ends now Data Table or DataSet is populated with only Checked items from CheckBoxList.. Now bind this Data Table or DataSet to a ListBox .
- Happy Coding -
Vishal Vashishta
|
|
|
|
|
protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
ListBox1.Items.Add(CheckBoxList1.SelectedItem);
}
you have to add a ListItem in add method not a string!
and listbox selection mode should be multiple!
|
|
|
|
|
how to make video to interact with user in same tim through watch it
|
|
|
|
|
|
how can i embed vlc player in Asp.net
|
|
|
|
|
|
hello all...i want to integrate mobile recharge api with my web application in asp.net 3.5, c#.. so that one can recharge mobile using application..
+ i am having recharge api for mobile recharge
+ want detailed description on how can i integrate that api with my web application so that i can recharge mobile using my application..
modified 11-May-12 3:15am.
|
|
|
|
|
|
It's better to ask here, go to ask in Api provider forum or support team. But if you are having problems during the implementation in Asp.Net then you can ask here. Because most of the person don't have experienced with Third party API.
Thanks
Parwej Ahamad
|
|
|
|
|
Check if you can get some information (API documentation) from the vendor.
|
|
|
|
|
Hi
I am getting this error in my web application
Exception of type 'System.OutOfMemoryException' was thrown
I have dispose dataset and dataset=nothing after bind grid and I have also close connection after use.
Please suggest me solution for this..
Thanks
|
|
|
|
|
|
|
How many rows are you trying to bind to the Grid ?
Make sure you select only the columns necessary and build filtering logic in so that you are not attempting to display thousands of rows to a grid.
|
|
|
|
|
I wonder if any of you could help me on this. I am new to using AJAX, so do please explain as simply as possible.
I have a ModalPopUpExtender which, for some reason, will not bring up the pop up as expected. I did suspect that the script manager was not being inherited from the master page, but the RoundedCornersExtender seems to work as expected, so that would rule that issue out.
I know the number of properties of the extender is a little basic at the moment, but I just want to get the div to appear as a pop up before I start assigning the buttons or formatting the background.
The code is as follows:
<asp:modalpopupextender id="MPEProphetAndLoss1" runat="server" popupcontrolid="divProphetAndLoss1"
="" targetcontrolid="LinkButtonIntroductionText">
<asp:roundedcornersextender id="RCEProphetAndLoss1" runat="server" targetcontrolid="divProphetAndLoss1"
="" radius="10" corners="All">
<asp:roundedcornersextender id="RCEProphetAndLoss1InnerContainer" runat="server"
="" targetcontrolid="divProphetAndLoss1InnerContainer" radius="10" corners="All">
<asp:button id="btnProphetAndLoss1" runat="server" onclick="btnProphetAndLoss1_Click"
="" text="Close" backcolor="#A1B9AF" width="100px">
<asp:linkbutton id="LinkButtonIntroductionText" runat="server" text="Prophet And Loss: The Introduction"
="" onclick="btnIntroductionText_Click">
And the code behind for the 'onclick' is:
protected void btnIntroductionText_Click(object sender, EventArgs e)
{
divProphetAndLoss1.Visible = true;
}
Should the div be inside a panel for it to work, or can it work just within the div itself?
|
|
|
|
|
I don't think you need the btnIntroductionText_Click event since the Popup Extender is already taking care of it when you set the TargetControlID.
|
|
|
|
|
Check your PopUpTitle CSS, sometimes the AJAX fired and worked, but the proper css was not available, to alter.
In other words, the modelopopupextender just makes a change to the css, which makes it pop up, and then changes the css back to the original parameters to hide the popup.
So change your css to show the popup, and change the css back to hide the popup, before implementing the popup extender.
If the popup extender still doesn't work after that, then your missing a extender property, which should trigger an error.
I didn't see the close button target id.
<asp:ModalPopupExtender I
ID="MPEProphetAndLoss1"
runat="server"
PopupControlID="divProphetAndLoss1"
TargetControlID="LinkButtonIntroductionText"
CancelControlID = "bt_Modal_Cancel"
>
Test your css class for show and hide by altering the css
<div id="divProphetAndLoss1" runat="server" class="PopUpTitle"
This should be show or hide
protected void btnIntroductionText_Click(object sender, EventArgs e)
{
MPEProphetAndLoss1.Show();
}
}
|
|
|
|
|
I have generated a 2010 web setup and deployment project that works and is created to deploy to an iis7 server. When running the setup.exe installer that I have genrated, the user can select the values for site and application pool. The user can not select the value for virtual directory.
My problem is the user just want to hit the 'next' button all the time. They want all the values predetermined for them. Thus can you tell me and/or point me to a reference that will tell me how to have the values for:
a. application pool, and
b. site preset for the user?
|
|
|
|
|
Just off the top of my head but can't you disable the next button until an option has been selected? (I'm guessing here: have not had need to use that functionality)
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
I think IIS only needs to Config directory. other not used.
|
|
|
|
|
I do not want to give the user an option. I just want them to take the defaults that are setup. Is that possible?
|
|
|
|
|
All the options are in the properties window F4, you have to dig deep, and F4 each object until you find that option.
|
|
|
|
|
hi
where the view state is stored,intiailized in the page life cycle
|
|
|
|
|