| ApplicationContext update form from different thread (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I am using an applicationcontext to manage my multiple forms. I need to invoke a method in my applicationcontext from a separate thread. I am unable to make the context switch as the ApplicationContext class does not have any methods/properties like InvokeRequired etc which a regular form does. To illustrate the issue, I have created a sample code below. On start a main form is created by the appl... |
|
| apsnet_wp.exe non-default identity vs. System.Web.Mail.SmtpMail (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| Hello, Can anyone suggest how to handle th following problem: 1. I've changed userName and password attributes in processModel in machine.config to make aspnet wp.exe run under my local account. 2. But now the following code in my .aspx fails with exception: using System.Web.Mail; SmtpMail.SmtpServer "mymailhost"; SmtpMail.Send("from@host.com", "to@host.net","test 2", "test message"); Exception: S... |
|
| apsnet_wp.exe non-default identity vs. System.Web.Mail.SmtpMail (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.security |
| Hello, Can anyone suggest how to handle th following problem: 1. I've changed userName and password attributes in processModel in machine.config to make aspnet wp.exe run under my local account. 2. But now the following code in my .aspx fails with exception: using System.Web.Mail; SmtpMail.SmtpServer "mymailhost"; SmtpMail.Send("from@host.com", "to@host.net","test 2", "test message"); Exception: S... |
|
| apsnet_wp.exe non-default identity vs. System.Web.Mail.SmtpMail (VIP replies) |
| microsoft.public.dotnet.general |
| Hello, Can anyone suggest how to handle th following problem: 1. I've changed userName and password attributes in processModel in machine.config to make aspnet wp.exe run under my local account. 2. But now the following code in my .aspx fails with exception: using System.Web.Mail; SmtpMail.SmtpServer "mymailhost"; SmtpMail.Send("from@host.com", "to@host.net","test 2", "test message"); Exception: S... |
|
| apsnet_wp.exe non-default identity vs. System.Web.Mail.SmtpMail (VIP replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, Can anyone suggest how to handle th following problem: 1. I've changed userName and password attributes in processModel in machine.config to make aspnet wp.exe run under my local account. 2. But now the following code in my .aspx fails with exception: using System.Web.Mail; SmtpMail.SmtpServer "mymailhost"; SmtpMail.Send("from@host.com", "to@host.net","test 2", "test message"); Exception: S... |
|
| apsnet_wp.exe non-default identity vs. System.Web.Mail.SmtpMail (VIP replies) |
| microsoft.public.dotnet.framework |
| Hello, Can anyone suggest how to handle th following problem: 1. I've changed userName and password attributes in processModel in machine.config to make aspnet wp.exe run under my local account. 2. But now the following code in my .aspx fails with exception: using System.Web.Mail; SmtpMail.SmtpServer "mymailhost"; SmtpMail.Send("from@host.com", "to@host.net","test 2", "test message"); Exception: S... |
|
| are multicast delegates thread-safe? (VIP replies) |
| microsoft.public.dotnet.framework |
| If you have a multicast delegate (say, an event in C#), is it safe to invoke this delegate at the same time from multiple threads (assuming, of course, that all of the methods that the delegate calls are themselves thread safe?) It seems this should be safe, since delegates are immutable, but the documentation says any instance members (of the MulticastDelegate class) are not guaranteed to be thre... |
|
| Are records in a dataset lost when switching forms? (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| My dataset1.xsd contains several elements. One of my elements "reqs" contains records of data which are filled via form1. When I call form2 from form1, dataset1.reqs is empty. I thought that since the dataset1.reqs is in memory, I could see element and their records in any forms I called outside this form1. Is there a way to be be able to display records in another form? Thanks, Nancy. |
|
| Argb Color to Know Color Name (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi NG, I have an Argb color stored in a database as a 32 bit integer. If this color is a KnownColor, is there any way I can get the known color name so I can display the known color name on the form and in my reports? The System.DrawingColor.ToKnowColor method will not do this for me. Thanks in advance for any help. Sam Matzen |
|
| Array (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| In VB6, it was possible to create an array of controls (ie. command buttons) and create them dynamically at runtime. Is there a function that does the same in .NET or am I missing something blatently obvious? Thanks, Gareth |
|
| array from inputbox (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| How can you populate an array using an inputbox(es)? thanks portroe |
|
| Array of literals or better? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I've got a web page that requires a value pulled from a strongly typed dataset to be displayed 7 or 8 times. Does anyone have any opinion on the best way to do this? It seems stupid to use 8 asp:literal page elements.... Thanks in advance, Duncan |
|
| ArrayList and DataSource of a DataGrid (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Hello, I use a DataGrid (say myGrid) to show the content of an ArrayList of objects. To do that, i first create a DataGridTableStyle with the necessary GridColumnStyle. Then affecting to the myGrid.DataSource the arrayList produces the expecting grid. Now i want the dataGrid to reflects the change in the arrayList when one or more elements are added or removed. I try the following code: myGrid.Dat... |
|
| ArrayList in a struct (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Is it possible to use an ArrayList inside a struct? I keep running into a null reference exception when I try to Add to the ArrayList in the struct, and it won't let me initialize the ArrayList in the struct. Any ideas? Thanks, Michael C. |
|
| arrays and datagrids (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I wonder if someone could help me. I've got a 2 Dimension Array that I'm working with and want to display the results from this array in a datagrid. I'm quite new to C# and seem unable to link the two together. So, the question is, how do I set up my datagrid to accept the array as the source? Thanks, Alan |
|
| Arrays and GC (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I've found that big arrays sometimes don't get collected for a significantly long period of time (i.e., they don't get collected frequently enough to avoid the handled memory from exceeding the system memory). Calling GC.Collect seems to solve the problem, but I was under the impression that you shouldn't have to call GC.Collect when working with arrays. I've included some sample code. To use the ... |
|
| arrays and parse enumerators (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I have ..... enum day {monday, tuesday, wednesday}; myArray[2,2] 5; i (int)Enum.Parse(typeof(day), wednesday); Console.Writeline(i); Console.Writeline(myArray[2,2]); outputs: 2 5 as expected. If i try Console.Writeline(myArray[i,i]); i get index outside bound of array error. Any ideas anyone? |
|
| ascx client scripting problem (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have several ascx pages included in a web form. These ascx pages have client script for setting or clearing asp:checkboxes without going through a postback to the server. However, since the ascx pages are included in an aspx page, the rendered web page has renamed the ascx checkboxes, thus making the scripts to set or clear specific checkboxes not to work. e.g.: in acsx file: asp:checkbox ID "Te... |
|
| Asking 2nd time : Question Regarding creation of HTMLinputButton (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| This is my second try at getting an answer for this question. I have managed to get the HtmlInputButton to generate properly, and have managed to add an event handler to the button. However, for some reason, the event handler is not running when the button is clicked. Below is the code to generate the button and add the button to the tablecell. (note: this is run during the Page PreRender function... |
|
| ASP DataGrid Sorting (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| Hi all, I have written a simple Web Application that displays a query result onto a page using the ASP DataGrid. To Digress Development information about the page is as follows 1. The database used is SqlServer 2000. 2. A Stored Procedure is dragged onto the page from the Server Explorer creating a connection and command object. 3. An adapter object is dragged onto the page from the Toolbox and th... |
|
| ASP State Integration (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| We are in the process of upgrading part of a large system to .NET, whilst the majority will remain ASP. Sharing session state information will not be a problem at the moment as it is trivial and will be passed in using QueryString. More pressing is the synchronisation of session timeouts between the two environments. Is the only way to do this to have URL references from one environment to another... |
|
| ASP.Net (VIP replies) |
| microsoft.public.dotnet.academic |
| I am developing ASP.Net programs for students to use in an online class. I am working on both a desktop and laptop that have the same VS.Net software installed. My desktop runs the simple program listed below without errors. On both platforms, I have set up the same virtual directory file systems. Does anyone have a suggestion? When I transferred the program to my laptop, I received the following ... |
|
| ASP.Net and COM Problem (VIP replies) |
| microsoft.public.dotnet.framework.component_services |
| I have a web site coded in C#. It needs to call a COM component written in VB6. This COM conects with another computer. This second machine conects to a mainframe kind of a wrapper and returns some informations from mainframe to COM component on the first machine (the web server) In the development server (Windows 2000) there's no problem calling the component, but in the production server i got t... |
|
| ASP.NET and Javascript (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Is there a way for me to change the ImageUrl property for an image using javascript? I am assuming there is since I am using javascript to show and hide the panel that the image is on. If so, what would the correct syntax be? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
| asp.net coding popup windows (VIP replies) |
| microsoft.public.dotnet.general |
| Help! Iâ m trying to get popups to work in asp.net using vb code behind. I have the following 2 subs but I canâ t get the PopupWindow to work. Any suggestions? If I put the window.open in the html code it works fine. Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim msg As String "'popup.aspx','mywin'" PopupWindow(Me, msg, "strScript") ... |
|