That is exactly what I tried and it did not work. In any case, the issue is resolved so thank you for your help.
Time is the fire in which we burn.
That is exactly what I tried and it did not work. In any case, the issue is resolved so thank you for your help.
Time is the fire in which we burn.
I managed to write what I needed with those references as well. Thank you for your reply.
Time is the fire in which we burn.
You are correct. It is screwed up. I was trying to say "does NOT appear in Reference Manager". I tried adding System.DirectoryServices.dll and the namespace system.DirectoryServices.ActiveDirectory now appears. Thank you very much.
Time is the fire in which we burn.
I have been trying all day to figure out why in one of my C# projects in Visual Studio 2013, .NET framework 4.5 I cannot find System.DirectoryServices.ActiveDirectory. I try to add it as a reference but it does appear in Reference Manager. I have been searching all day on how to resolve the issue and I cannot find an answer. I need some help please. I am out of options. The only thing I can guess is that using System.DirectoryServices.AccountManagement replaces System.DirectoryServices.ActiveDirectory.
Time is the fire in which we burn.
Thank you! You are absolutely correct (yes, I rebind the datasource). I was seriously about to lose my mind. It never occured to me that that could be an issue.
Time is the fire in which we burn.
I lose the selectedIndex the moment I have some action that does a postback. I have tried to capture it in may places, during Page_Init, LoadViewState, SaveViewState, with the IsPostBack, and without it, etc. For the past two days, I have had no success. ...a little bit later... I am starting to believe that it is a data binding issue. You were absolutely correct. When I remove the databinding code, everything works fine. I need to figure out why.
Time is the fire in which we burn.
modified on Thursday, April 8, 2010 2:42 PM
Thank you! That's interesting. Could you please elaborate a little bit? I rebind the datasource every time the page is loaded. Are you saying that this is considered as messing with the listitem collection? The code I use to delete the item is very simple (obviously I am trying to mark the item but I cannot):
int iIndex = lstNames.SelectedIndex;
if (iIndex > -1)
{
lstNames.Items.RemoveAt(iIndex);
table.Rows.RemoveAt(iIndex);
}
Every time I change the selection, I would like to retrieve the selected index. I cannot because during postback it is set to 0. I have tried to save the view state, but that did not work either. My problem is that I cannot get the selected index at any time at all. If at any point I could retrieve its value, I can store it somewhere. The problem is that I am reading 0 at all times. I don't know what to do.
Time is the fire in which we burn.
I have created a custom user control using Visual Studio 2008. The user enters data in three TextBoxes. The data is added in a DataTable which is bound to a ListBox. The user has the option of deleting items from the ListBox. The ListBox is declared as follows:
asp:ListBox ID="lstNames" runat="server" Height="99px" Width="245px"
EnableViewState="True"
onselectedindexchanged="lstNames_OnSelectedIndex"></asp:ListBox
Inside the function Page_Load I have the following"
if (!Page.IsPostBack)
{
...
lstNames.DataSource = table;
lstNames.DataTextField = "Display";
lstNames.DataBind();
...
}
I also have two buttons which allow me to add user input from TextBox controls to the ListBox and delete items. My question is: When I select an item and try to delete it, the SelecteIndex becomes 0 during the postback and the first item is removed (not the one I select). Basically, the SelectedIndex does not persist during a postback. I have looked at different postings here and other sites as well, searched MSDN but I cannot figure out the answer. Is there a way to overcome this problem and how? Thanks!
Time is the fire in which we burn.
Thank you so much Zac. That answers my question. :)
Time is the fire in which we burn.
toxcct wrote:
where else do you think you can dynamically allocate some memory ?
In multiple heap scenarios you can define your own memory segments to specify which area of memory is used to allocate various elements such as messages, semaphores etc. I have a feeling that this is processor dependend and not something that I can do with C standard functions. Is there a way of doing this without depending on the platform being used? I realize that my previous question is not clear enough and I apologize for that. I must stress that this is a Real-Time programming related question.
Time is the fire in which we burn.
I know that this question is not really related to Visual C++ but hopefully there will be someone here who has experience in real-time programming. I'd like to allocate memory using malloc( ) function which allocates it on the internal SRAM. Does anyone know how I could do dynamic memory allocation on the SDRAM?
Time is the fire in which we burn.
I see your point. He needs to be fixed and then allowed to get laid. This will solve the reproduction problem. Time is the fire in which we burn.
He needs to get laid. Time is the fire in which we burn.
Actually, I was just told that it is a second level support meaning that I won't be dealing with phone calls. Someone in the first level will bring the problems to me. However, I am still required to communicate with clients. It appears that the developers have been doing both, providing support and developing. That overwhelms them (which is understandable) so they want to create a support team. Most of the jobs that I have had were not what I expected. They tell you one thing and then when you start working, you find out that it is something else. In my current job I was told that I was going to design templates so I jumped at the opportunity. I find myself reading project descriptions, performing technical reviews, negotiating prices with developers, etc. I don't know where the templates are. Now in terms of money, I still don't know what they will offer for the product support. I am not that thrilled about the job itself. It's the idea that it my lead to a higher position that entices me. Time is the fire in which we burn.
I am curios about a product support position that has been offered to me. Has anyone ever worked in product support? What's it like? Time is the fire in which we burn.
I live in Windsor, Ontario (Canada) and I pay $CAN 44.95 (approx 30 Euros) for 5Mbps. I use Cable and DSL here has the same price. For 300 Kbps the price is $CAN 29.95 (20 Euros). The maximum you could buy is 10Mbps $CAN 69.95 (48 Euros). But you also have upload/download bit caps, email space, webspace, free security services, etc. For 5Mbps you get 15Gb upload/download, 100 Mb of email space, 10 Mb of webspace, 7 email addresses, and 3 IP addresses. For 10Mbps you get everything mentioned above, plus 30Gb of upload/download. Dario Solera wrote: [ITA] Tozzi ha ragione: Gaia si sta liberando di noi. [ENG] Tozzi is right: Gaia is obliterating us. Just a suggestion...I believe that a closer English interpretation of "Gaia si sta liberando di noi" would be "Gaia is getting rid of us". Time is the fire in which we burn. -- modified at 18:41 Wednesday 31st August, 2005
I figured out the problem. I had IsPostBack in Page_Load commented out and that caused the Text Boxes to be updated with the old data. Time is the fire in which we burn.
I am fairly new to ASP.NET myself so please excuse my ignorance in this subject, but have you looked at web.config file in your root directory? Under I believe you shouldn't have or anything at all for that matter (I could be wrong on this). Also if you have then that blocks anonymous users. would allow all the users to view your website. Furthermore, anonymous access should be allowed to the users through the IIS manager. These are only just a few possibilities that I am aware of and hopefully this will help you. Time is the fire in which we burn.
I am having a problem with the textbox controls in my page. When the page loads I initialize the text boxes with data retrieved from a database.
Page_Load()
{
for i = 1 to 5
Dim tmpTextBox As TextBox = FindControl( "txtBox" & i )
tmpTextBox.Text = Session("txtBox" & i )
next i
}
The user can modify the contents of the text boxes so when they click submit I update the Session variables by grabbing the "new" data typed in the text boxes.
OnSubmit()
{
If Page.IsValid then
Dim i As Integer
For i = 1 to 5
Session("txtBox" & i) = (CType( FindControl( "txtBox" & i), TextBox )).Text
Next i
Response.Redirect("NextPage.aspx")
End if
}
It turns out that the txtBox.Text (all of them actually) retains its old value (the one that I initialized it with). If I type new text, I cannot retrieve it. I have RequiredFieldValidator linked to those text boxes and I am not sure if that has anything to do with it. Does anyone have any suggestions about this because I have ran out of options? Thank you. Time is the fire in which we burn.
Andrew Hain wrote: Thank you. I am still mystified at how we got away without that for years. Actually, I got away with something similar. While I had the table opened in Access I hit the sort button on the toolbar so after that the records appeared to be always sorted. Somehow it worked for a while and I thought that I didn't have to write a single line of code to keep the records sorted. Well, it stopped working at some point. :) Time is the fire in which we burn.