|
What do you mean by tracking? creating a log in a database of messages sent, setting read receipt etc
|
|
|
|
|
angel_oct11 wrote: Whether a mail sent, is viewed by the recipient or no
Proper way is using read receipts. But it will work only on POP3 clients like outlook etc. There are many other ways like attaching a 1px image and checking the requests. But none of them are a good solution, and now a day's most of the email systems will block the images and scripts contained in the mail body.
|
|
|
|
|
You can log any System.Net.Mail.SmtpException exceptions which will tell you if a mail was not sent successfull to the mail server and you can add a read receipt to a MailMessage like so:
_mailMessage.Headers.Add("Disposition-Notification-To", fromEmailAddress);
|
|
|
|
|
HI all
In my asp.net page I'm attempting to use the OpenfileDialog object to
offer a common dialog box for the user to select a particular file on their
hard drive that may subsequently be uploaded
to our website.
The reason I'm doing it this way is that I've read that by using the common
dialog box, the security issues are based on the logged in user.
Of course, I added a reference to System.Windows.Forms and added a using
clause.
Here's the problem, when I use the following code
OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "Choose File";
ofd.InitialDirectory = [at] "c:\" ;
ofd.Filter = "All files (*.*)|*.*|All files (*.*)|*.*" ;
ofd.FilterIndex = 1 ;
ofd.RestoreDirectory = true ;
ofd.ShowDialog();
ShowDialog() throws the following exception:
[InvalidOperationException: It is invalid to show a modal dialog or form
when the application is not running in
UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly
style to display a notification
from a service application.]
System.Windows.Forms.CommonDialog.ShowDialog()
TestPortal1.AttachFileForm.btnBrowse_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\testportal1\attachfileform.aspx.cs:73
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEven tHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
Any advise you can give would be greatly appreciated.
Thanks,
monika
|
|
|
|
|
|
You can't invoke windows forms code like that from an asp.net page - this code will attempt to run on the server. You need to use the file upload html control.
|
|
|
|
|
OR
If you are using Silverlight, you can probably use "Safe File Open Dialog".
Example[^]
|
|
|
|
|
Is there a FTP command that retrives the size of a folder?
I'm trying to get the full size of a folder on a server,
and the only way I can think of is using a FTP-client.
Thanks
Thomas
|
|
|
|
|
Hi
Does anyone know any applications that I can use to create flash websites.
I know Macromedia Flash exists but are there any other software applications I can use?
cheers
jamie
|
|
|
|
|
|
If you like Microsoft technology, I recommend you to give a try "Silverlight".. that's awesome!
|
|
|
|
|
hi,
if the user enters space in the textbox and submits it by clicking error. How can i validate it .
only space should not be allowed. Please anyone help me out in this. \
|
|
|
|
|
You can trim the whitespace and check for the value. If it is blank, alert message. Javascript don't have an inbuilt trim method. Check this[^]
|
|
|
|
|
You can use the ASP.NET validator controls, here is an example using the RequiredFieldValidator.
It will not accept a space as valid input.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" Display="Dynamic"
ErrorMessage="Enter a valid value!"></asp:RequiredFieldValidator>
<asp:Button ID="Button1" runat="server" Text="Button" />
|
|
|
|
|
Hi,
I am developing an application, which needs a pop up window to be opened, when a button is clicked, i have tried out Response.redirect, but then it navigates from one page to another, i want both the windows to be opened,
can some body help me in this regard
|
|
|
|
|
You can use ClientScriptManager.RegisterStartUpScript("name","your popup JS") to open a popup window. Or use simple Response.Write()
|
|
|
|
|
Pls can you be more clear with the post, i have never used the function said above, can you explain the parameters for the function..
and another important issue is that, i am creating the button dynamically and for that button click, i should be able to open a popup window
|
|
|
|
|
It is used to register client side scripts to the page. The script you specified inside that will be added to the page. See the following sample.
ClientScriptManager.RegisterStartUpScript("SampleAlert","<script language='javascript'>alert('hi') </script>"); See the MSDN[^] documentation
|
|
|
|
|
Hello Friends,
I want to copy the contents(subdirectories and files) from source folder into destination folder.
Here is my code ...........
DirectoryInfo dir=new DirectoryInfo(MapPath(".")+"\\"+"Images");
dir.MoveTo(MapPath(".")+"\\"+"Hello");
and also I've set <identity impersonate="true" /> in web.config
The error i'm getting is given below...
Access to the path "c:\inetpub\wwwroot\Rough\Images" is denied.
|
|
|
|
|
The Knowledge wrote: and also I've set <identity impersonate="true"> in web.config
Do impersonation before the move. Undo it after the move. Search google for doing this, you will find many links.
|
|
|
|
|
Hi everyone.
i am new in reporting.
How do i pass parameters in report.rdlc dynamically?
I want to pass parameter from Access database.
I am using VB.
Thanks
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
How do i make a query to Global Address List?
|
|
|
|
|
You can use the System.DirectoryServices namespace, here is an example[^].
|
|
|
|
|
Dear Friend..
I need to create a virtual directory for my application.If i do it,its asking for the alias name.After giving the alias name,its saying that the name already exists.But that alias name doesn't exist in my IIS before.What could be the problem..? I am getting the following message when i try to give the alias name.
"The alias LM/W3SVC/1/Root/iCashCard already exists.Please choose a different alias."
Why does this occur.? Someone help in this regard as early as possible..
Regards,
Balaguru
|
|
|
|
|
Balagurunathan S wrote: "The alias LM/W3SVC/1/Root/iCashCard already exists.Please choose a different alias."
This[^] would help you
|
|
|
|