xtw's Q&A profile
.NET Development Smtp with c# through gmail.
Hi guys, hope you can help. I have installed Visual Web Developed and started learning ASP.NET with c#. I am currently trying to build a website that sends email through gmail's smtp, here's the code: _______________________________________________________________________ using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Net.Mail; using System.Net; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage( ...Show All
SQL Server Open a blank or new record set code needed.
I have an access 2003 Data access page published to the web that gets its data successfully from an MS SQL 2005 server. I need the "page when it opens" to display a new / blank record (not the first record in the table as it does by default) any pointers would be nice thanks Pete... Thank you for your input. I don’t want to sound confusing although I am confused! Here goes. I built the Access database with Access 2007, connecting to a 2005 SQL server. The database tables all have primary keys. The forms all function fine and I used the code in them “d0cmd on open goto newrecord” and the forms open ready for a new record concealing existing data from the users. I then used access 2003, to create data access pages and ...Show All
Visual Studio 2008 (Pre-release) Filter Inner List Property
Hello, I have done a test to see how WPF is handing entity binding and it working great. Much better than WinForms. I have create a class call Mission with property Name and a property Tasks of type IList<Task>. I also create a Task class which have Name and Legnth. Now, I have created two missions with few tasks in each of them. The missions are stored in List<Mission>. I have bound the mission list to an ItemsControl and set its ItemTemplate to Expander. The Expander header is bound to the mission's name. I then create an inner ItemsControl inside the missions control which have its ItemsSource property bound to the Tasks property. Inside the inner ItemsControl I put a TextBlock which bound to the task's name. ...Show All
Visual C++ question about dlls
hey all i am using visual studio express and i was wondering if it was possible to creat dll files. i am putting a hook procedure in it. if it is please tell me thanx. hhmm.. ok let see.. wat is exactly not working... ok here we go.i click new project, the new project window comes up, i click on the win32 console application, and i name my project. then the win32 application wizard comes up and i click next to go to application settings. and under application type i have a selection of 4 bubbles, they are: windows application, console application, dll, and static library. u are telling em to click on dll but i cannot becasue it is grayed out as is windows application. ...Show All
Visual Studio Express Editions User Searches 2 fields to find a database record in application.
Hi, I am learning Visual studio 2005 Express Suites (very new learner). I am attempting, in a form to have a user type in a first name and last name into a text box each, then click a button to find a person in the database. The associated database fields are: StudentID, StudentFirstName, StudentLastName (StudentID is a foreign key in a a couple of other tables). The text box field names are: TxtBFirstName and TxtBLastName. The button name is: BSearch There seems to be a way to do this type of search through the bindingsource [studentsbindingsource] where I click the little arrow, choose "Add Query", click "Query Builder", then edit the SQL query. I am confused as to how to phrase the WHERE clause - basically it would ...Show All
Visual Studio Express Editions A little DLL problem
Well i finally have a sample dll that almost does what i want, but .... something to do with allocating a class isnt working. if my sample dll is sample.h #ifdef EXP #define declare __declspec ( dllexport ) #else #define declare __declspec( dllimport ) #endif #include <someclass.h> declare Som eClass glbBob( int ); // Some class is a typical class with proper constructors (init 0, then copy data) and operators &n ...Show All
Software Development for Windows Vista TabletPC and Video Drivers
I have a Toshiba TecraM7 tabletPC. The display adapter on it is the nVidia Quadro NVC 110M. Currently, Vista Beta build 5472 is installed with the latest of Windows Updates. After the updates, the video display in the device manager is showing up as only "standard VGA." I've talked with nVidia, who has this display adapter's drivers on hand, but they are only good for desktops [only]. I've talked to the tech support and they say that it is the manufacturer's responsibility for notebook and tabletpc drivers. I then talked to Toshiba's tech support, and they have been almost no help at all. The last response I got from them is "the driver must not be available yet." Wel ...Show All
Visual Studio Express Editions Installation Error
When i try to install Visual Basic Express Edition it gets so far then a box saying 'Unknown Error' comes up with eht only option to click ok when you do the window comes up again, the installation will continue but then the program will not run, help appreciated ...Show All
Visual C++ IWebBrowser2
Hi, I'm writing an application that prints bills from HTML files. Because I don't want that the header and footer from IE is added, I want to create an own print template. My big problem is that I have to get a IWebBrowser2 interface from the ActiveX. The WebBrowser::ActiveXInstance returns an Object^ but how can I convert it to an IWebBrowser2 The source code of the sample application in http://msdn2.microsoft.com/en-us/library/bb250434.aspx ("Print Customization for Internet Explorer 5.5") would also help but I'm not sure it's possible to get it. Thanks in advance! See PRB: Cannot Retrieve Top-Level IWebBrowser2 Interface from a .NET UserControl ...Show All
Windows Forms textbox and formatting
hi i am using vb2005. i have a textbox which is linked to sqltable and its string(text). the data is an amount-cost. sometimes i want to display data from table or sometimes i want to add new data. whatever it is i want the format of the textbox is like for eg 2,000,000 AED(i mean the separation commas and at the end the currency type.) can i format the textbox accordingly using soem code Public Function Add (ByVal propertyName As String , ByVal dataSource As Object , ByVal dataMember As String , ByVal formattingEnabled As Boolean , ByVal updateMode As System . Windows . Forms . DataSourceUpdateMode , ByVal nullValue As Object , ByVal formatString As String ) As System . Windows . ...Show All
Microsoft ISV Community Center Forums Running a macro if new mail if from a specific address
Hello, I'm currently trying to write a macro that is run when new mail is received in Outlook 2002 (possibly XP not sure though) I would like the macro to check if the new email is from a specific address (in this case sales@falcontrunking.co.uk ), delete the email, and display a message saying "There is a new message in the Sales Inbox". I know how to run a macro when a new message is received and I know how to show a message box saying "There is a new message in the Sales Inbox" but I don't know how to check if the new message has been received from a specific address. Can anyone help me Sorry. I'm running Outlook 2003 here, and I shouldn't have assumed that the NewMailEx ...Show All
Visual Basic reading binary data from varbinary(max)
I used to do this with an Image data type (sql2000) and an array of bytes. Worked great. Now , in sql2005/vb2005 we are supposed to use the varBinary(max) type . Fine. Anyone know how to get it to work the reader code is straight from the help docs in the section: "Working with large value types" I'm trying to use some of the new functionality but I can't get anything to work well yet with this datatype. Error is on this line at design time: Dim binaryData() As Byte = CByte(reader.GetValue(8)) .....This is supposed to read the 9th column into an array of bytes..... "***value of type Byte cannot be converted to 1-dimensional array of byte***" Here's the code: blob is a varBinary(max) column Private Sub GetImageF ...Show All
SQL Server No ADO type command for Data Flow?
I'm probably not looking in the right place, but all I could find when creating a data flow task was OLE DB Commands. I was trying to utilize a dataaccesslayer piece of code that we use every where in our projects, but because it uses ADO and not OLE DB, it caused an issue between the column data types. Is there an ADO command object available Or are we forced to use the OLE DB command object All I was looking to do was to Execute a SQL command. There's an object on the Control Flow level to do that, but not on the Data Flow level---not sure why that is. Thanks, Jeff Tolman E&M Electric JazzGeek wrote: It's not necessarily a particular command. It's using A ...Show All
Smart Device Development Designing multiple threads
Hi, I'm trying to build an application which keeps sending messages to a server as user inputs some values. The application should also recieve messages from the server and update the interface. These processes should continue until the user wishes to quits. I'm not sure about how many threads I should create and how to handle them. Can anyone please advise me on this regard Thank you so much Windows CE 5.0 and previous supports 32 simultaneous processes maximum (32Mb Virtual mem x process). Altought you can create as many threads only limited by RAM memory. About how to use them, take a look at this MEDC2006 HandOnLab . regards ...Show All
SQL Server CASE statement with IN/OR
Hello, I'm trying to write a query with case statement. the condition is when project_ref =393 then select qtn_ref in (7070000,7060000)) and when project_ref =391 and select q.qtn_ref=8700000 I need this condition in 'WHERE' statement. I can use 2 SELECT queries using 'IF ELSE', but I woud like to find out if there's any way to use CASE so I can write 1 query. Tring to do something like this but it doesn't work. SELECT * FROM table WHERE qtn_ref = case when project_ref =393 then 7070000 or 7060000 when project_ref =391 then 8700000 Anyone can help, please Hi, I just modified your Query. i dont have an SQL Instal ...Show All
