| eidting two tables wthin a datagrid (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.datagridcontrol |
| Apologies if this has been asked before and I have searched on the Internet to no avail. I would like to use a Datagrid to edit data held in two tables that are 'joined' by a common field. I know hoe to write the code to edit a row from one table, however, using two tables is causing me pain. Any ideas, suggestion or links to examples? Thanks Brian |
|
| Eject a disk with c# (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I wish to be able to eject either a pc card or compact flash card programmatically Is there any way to achieve this in with C#? TIA Tony |
|
| Element End Tag (VIP replies) |
| microsoft.public.dotnet.xml |
| How can you tell when you've reached an elements end tag? For example, how can the following code tell that MenuItem Label "Overview" ClientSideOnClick "CacheDemo/IntroToCache.ascx"/ has an end tag? StringBuilder sb new StringBuilder(); if (xmlReader.NodeType XmlNodeType.Element) { while (xmlReader.MoveToNextAttribute()) { sb.Append (xmlReader.Name " " xmlReader.Value); // How can I tell when the ... |
|
| EMAB, Impersonation and Event log (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.security |
| Hi all, I'm having a problem in ASP.NET enabling write access to the system event log using EMAB, which uses System.Diagnostics.WriteEntry under the covers. Specifically: * The web application has anonymous authentication (only) enabled. * The account used is IUSR mypc * I use InstallUtil to create the 2 source entries in HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application. These are Excep... |
|
| Email Attachments are corrupted (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| What needs to be done to get SmtpMail.Send to work with an attachment ex. Imports System.Web.Mail Dim ms as New MailMessage Dim mattach As New MailAttachment("FullPathToPDFFile",MailEncoding.UUEncode) ms.To "someone@microsoft.com" ms.From "me@somewhere.com" ms.BodyFormat MailFormat.Text ms.Subject "Test" ms.Body "Test Message" ms.Attachments.Add(mattach) SmtpMail.Send(ms) I have previously reporte... |
|
| Email from ASP.Net (VIP replies) |
| microsoft.public.dotnet.general |
| What is the best way to launch outlook from an asp.net web page? Can you do this using MAPI or is there a control that you can purchase? We are unable to use SMTP. We use MS Exhange and MAPI currently for our client/server apps. |
|
| emailing attachment files in VB.Net (VIP replies) |
| microsoft.public.dotnet.general |
| Need your help in sending an email message with an attachment in my VB.Net program. Sending a body message is no problem. I don't know how to use the attachment property in an email Following is an excerpt from the program: Imports System.Web.Mail Imports System.Web.HttpServerUtility Imports System.Diagnosticss Public Class Emailing Inherits System.Web.UI Page Protected withEvents btnSubmit As Sys... |
|
| Embedding a PDF doc in an ASP.NET page, beside ASP.NET web control (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, I'm developing an ASP.NET website that requires that a PDF document is displayed to the user, based on a set of criteria that the user supplies. The PDF to be displayed (name of doc determined at runtime), is precreated and stored in a special folder. It must be displayed alongside other ASP.NET controls (i.e., no new pop up window, or child browser window) the PDF document has to be viewed al... |
|
| Embedding a PDF doc within an ASP.NET page (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, I'm developing an ASP.NET website that requires that a PDF document is displayed to the user, based on a set of criteria that the user supplies. The PDF to be displayed (name of doc determined at runtime), is precreated and stored in a special folder. It must be displayed alongside other ASP.NET controls (i.e., no new pop up window, or child browser window) the PDF document has to be viewed al... |
|
| Enabled/Desabled Main Item Menu when I click on mdi Child form (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Plesa help me ! How can I enable/disable Menu Item (Menu is MainMenu for App.) on mdi parent form when I click on some control in activ child form? |
|
| EnableViewState="False" Does not take effect? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, All I create an ASP.NET page, it contains FirstName textbox and LastName textbox. I setup "enableViewState false" in page directive. When I enter data in FirstName and LastName textbox, after I refresh the page or go to different page and come back to the same page, I find data entered in FirstName and LastName textbox are still there. I think after setup "enableViewState false" , we are not s... |
|
| EnableVisualStyles and DoEvents (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I've noticed that calling DoEvents is much slower in an application that has called Application.EnableVisualStyles in Sub Main. Furthermore, the performance seems to worsen each time that DoEvents is called. To demonstrate what I'm experiencing, create an app with a Sub Main, a Main Form, and a Button (called Button1). Include the following code in Sub Main: Application.EnableVisualStyles Applicat... |
|
| Encryption with des with random password (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hello, I face a practical problem with encryption. I've read examples for encrypting a file with the DES algorythm. The algorythm uses a key and a IV value. Both are 8 bytes if I'm correct, and can be generated by the system or specified by me at design time. How can I then do DES encryption with a password? pwd: 8charact can be translated into the key value (transform string to byte array) But wh... |
|
| Enterprise Policy error using certificates on V1.1 Framework (VIP replies) |
| microsoft.public.dotnet.security |
| If you sign an app using a X509 certificate and then set the enterprise security policy to allow FullTrust to any app signed by the given publisher, the application cannot access Web Services failing with the exception below. The same app under V1.0 with the same policy works fine. It seems to relate to the execution of code which is runtime compiled Enterprise Policy as follows: All Code Nothing ... |
|
| Enum All Roles in a Principal? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.security |
| I know how to do ..IsInRole() to test if a user is in a particular role. How do I enumerate all of the roles currently attached to my principal instance? WindowsPrincipal or GenericPrincipal. Thanks. |
|
| enum font family (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| How can i enumerate font familys? Font sizes, borders, colors are there but not familys. Thanks. Richard |
|
| Enumerating non-ui components from the given form instance (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, As you know, all the non ui components (like Timer control, etc.) that sit on the form are contained in its private variable 'components'. How can I enumerate such components from any form instance given to me? I have no access to the source of the given form instance, but I can impose that the form be inherited from certain base class I provide. Would appreciate any inputs. If there is other ... |
|
| EnumPrinters gives system.nullreferencedexception (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I use the following code and can get all the correct printer information back for Printer Info 1. However, when I try the same code for Printer Info 2 or 5 I get a System.NullReferenceException. Can someone please help DllImport("winspool.drv", EntryPoint: "EnumPrintersA", SetLastError: True, CharSet: CharSet.Unicode) Private Shared Function EnumPrinters(ByVal flags As Int32, ByVal pName As String... |
|
| equivalent of vb6's "resume next" (VIP replies) |
| microsoft.public.vsnet.debugging |
| while performing step through debugging in vb6, there is a neat trick you can use ... if you have On Error GoTo ERROR HANDLER (... many lines of code ...) Exit Sub ERROR HANDLER: Debug.Print Err.Number & " " Err.Description Resume Next 'this line un commented for step through debugging only End Sub you can put a breakpoint on the "Resume Next" and then step to the line right after the line that ca... |
|
| Error ... (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I'm trying to execute stored procedure and I collect its parameters from WebForm. There is an error: Error converting data type varchar to int. What could be the problem? Here it is the code: private void Button2 Click(object sender, System.EventArgs e) { SqlConnection conn new SqlConnection("Data Source ;Initial Catalog ; User ID ; Password "); SqlCommand cmd new SqlCommand("prSVOFFRDATA", co... |
|
| Error 1928. Error registering COM+ Application (VIP replies) |
| microsoft.public.dotnet.framework.interop |
| When we try and install our COM components using a client proxy from our Windows 2003 machine onto our XP machines we always get an error during installation on the client machine (see below). Now if we select the option "Save COM Component in 1.0 format..." when creating the client side proxy installer on the server the installation always works. Now my understanding is that XP and 2003 use the s... |
|
| Error and double open dialog when downloading Excel file from ASP.NET. (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I've got two problems. First, when this code works, I get a "Open/Save/Cancel" dialog and if I click "Open", I get the same dialog again and then IE opens Excel. So what am I doing wrong to get the double dialog? Also, I occasionally get a "Server Application Unavailable" error message (as an HTML page) instead of the download. When I get the error, two log files are generated into my web server's... |
|
| Error connecting to sql server thro .net (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| When i try to connect to sql server using my .net appln, i get the following error. But i am able to connect to the sql server using query analyzer. It also works if i try connecting through an ASP page (using Server.CreateObject(ADODB.Connection)) !!! Any idea ?! [SqlException: SQL Server does not exist or access denied.] System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction... |
|
| Error CS0120 (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I'm new to programming in C# and I have an error I can't figure out. error CS0120: An object reference is required for the nonstatic field, method, or property 'SharpConnectFrameworkNS.SocketListener.StartListening()' button in a differnt namespace that calls it. private void Form1 Load(object sender, System.EventArgs e) { SocketListener.StartListening(); } and heres StartListening; public void St... |
|
| Error during DataAdapter Config Wizard (VIP replies) |
| microsoft.public.vsnet.ide |
| Every time i put a data adapter on my form, i get the following error after clicking "next" An unexpected error has occured. Error Message: Object reference not set to an instance of an object. Call Stack: at Microsoft.VSDesigner.Data.VS.VsConnectionManager.CheckConnection(Int32 index, ProviderNameInfo nameInfo) at Microsoft.VSDesigner.Data.VS.VsConnectionManager.GetConnectionNameList(ArrayList na... |
|