I solved my own problem. I have to use the WriteToFile method to write to a temp folder on the hard drive, and then use the Source property when adding the attachment.
I wish there was a way to directly add the attachment as an object without going thru the intermediate step of copying the file...
I am trying to use CDO to email an excel document as an attachment. I retrieve the attachment from an email and am trying to forward it to someone else. I am able to retrieve the attachment from the original email, but when I go to send it out again, the excel file cannot be opened. It attaches...
I have a datagrid that is not populated from a database, but from a textbox everytime the ADD button is clicked.
I create a datatable with 2 columns, and assign it to a dataview and rebind the datagrid. All works well, until I have a second or third record to add to the datagrid. It keeps...
Thanks jbenson. That approach did work, but I'm not looking
for a client side function. I want the function to reside on the server... Is there a way to run the function from
the server, as this function will be accessing the database, and I don't want intricacies of the db to be exposed.
Thanks.
Here is my code-behind, what am I doing wrong?
Thx
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient ;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls...
Thanks jbenson. Now, where does the statement
descriptiontextbox.Attributes.Add("onFocus", "call a function here();")
need to be added? I have added that into the InitializeComponent method, but that doesn't seem to work. The event doesn't seem to fire.
Thx
I have an ID textbox and a Description textbox on a web form. I want to capture the data entered into the ID text box, when the focus is lost from it, or the focus is on the description text box.
I don't see a text box event I can use for this. Can anyone help?
Thanks.
...= 1
insert into AcctFNGWarranty
values (@MachineSerial,
@MachineModel,
@MachineFNGWrnty,
@UnderWarranty)
end
fetch next from cMachines into @MachineSerial, @MachineModel, @MachineFNGWrnty
end
close cMachines
deallocate cMachines
select * from AcctFNGWarranty
Ok, the SAVE button calls a validation routine when clicked.
The text box also calls the same validation routine when its lostfocus event is fired. If I have the user clicking on the SAVE button, I don't want to run the lostfocus event of the text box. Is this possible?
How do I prevent the lostfocus event from firing before
a click event fires?
I have a button that I use to SAVE information in a form. There is another text box in this form that has code in it's lostfocus event. When I click on the SAVE button, instead of running the code behind that button...
I would like to know if there's anyway to
have your own button in a msgbox() function.
Instead of the standard constants vbYes, vbNo,
vbCancel etc. I just want a button to be called
say "Do This" instead of the standard ones.
Any API or something else someone can point me to?
Thx
This is what I do:
Initially, the application needs to be loaded on every PC
that's going to use it. Along with the EXE, I also have a launcher app on the client computer. The client runs the launcher app, which checks the version of the EXE on the network, and copies the file onto the local...
Hi all,
I am trying to have 2 columns with a checkbox in each in a listview control. Is that possible?
On the properties of a Listview, I only see the Checkboxes option at the control level, and not at the column level.
Any help would be appreciated.
Thanks.
Hi Paul,
I tried executing the package like you said, but the user
who wouldn't ordinarily have the SQL client components
installed on her machine, cannot run "dtsrun" from her
machine. I get a "File not found" error. I checked her machine, and it didn't have the dtsrun.exe...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.