|
Hi CleaKO,
I need to read mails from Eudora software something like outlook. Actually I need to seperate delivery and undelivery mails from Eudora.I am using ASP.NET2.0(VB).I have created a form where I select the mail ID's , heading, any image or link or attachment to be added with that mail and finally when I clicked on the button send mail then it should open the instance of Eudora and when I say send then it should send the mails.I want to open only one instance with different letter something like mail Merge in word.
Do u have any help for the same?Please help me with code.
Thanks in advance..
|
|
|
|
|
This I dont know anything about and I would suggest you start a new thread rather than take someone else's.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
Actually I have done that but didnt got any reply till today.I am search this from very long.
Anyways thanks for the reply.
|
|
|
|
|
|
Using a button with the following line in OnClick event: Response.Redirect("aaa@aa.aa") is not a best solution:
* it opens a new mail window - thats great, but...
* it also leaves a browser window with "aaa@aa.aa" as an addess. This is awfull efect - I would like the browser window to stay on the page, where was the button that I clicked.
|
|
|
|
|
Since you insist on using an asp:button to do this look here[^], it looks like this will require JavaScript.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
I insist to use asp:button, because I have several other things that have to be done after clicking on this button.
Your help is extremaly usefull, but I`m not an expert in Javascript and there is one more small hint that I need:
I read this article and I copied the function:
function OpenMail()
{
location.href = "mailto:help@help.net";
return false;
}
into my .aspx page.
My button has the following definition:
<asp:Button ID="AcceptButton" runat="server" Text="aa" OnClick="AcceptButton_Click" CausesValidation="False" UseSubmitBehavior="False" />
And as I said before, several things has to be done after clicking on this button, so AcceptButton_Click looks like:
protected void AcceptButton_Click(object sender, EventArgs e)
{
ClearData();
...
//How to call that method written in Javascript?
}
The question is - how to call that method written in Javascript?
|
|
|
|
|
You can call attach the javascript to the serverside control like this:
Button1.Attributes.Add("onClick","javascript functionname();");
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thank you both very much guys!
The button.attributes(...) was correct a correct solution to the last part of the problem
|
|
|
|
|
Im glad it worked, I just hate requiring JavaScript for functionality because you will use this and someone will have scripting turned off then they wont be able to get the mailto function of the button click. You can also use a LinkButton and call a server command when it is clicked in order to do the same thing and I think you can have it appear as a command button.
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
.NET Assembly CustomerInfo.dll has a class by name CustomerInfo which inturn has two methods GetCustomer() and GetCustomerDetails() and GetCustomer() calls GetCustomerDetails().
GetCustomerDetails() takes two input parameters, Stored Procedure Name and Customer Id and returns a dataset.
We want to find the Stored Procedure name which is being passed as input parameter to GetCustomerDetails() function on call from GetCustomer(), when we analyze the assembly using reflection in ASP.NET.
Class CustomerInfo
{
public dataset GetCustomer(int CustomerId)
{
string SP1 = "Stored_Procedure1";
string SP2 = "Stored_Procedure2";
string SP3 = "Stored_Procedure3";
return GetCustomerDetails(SP1,CustomerId);
}
public dataset GetCustomerDetails(string StoreProc,CustomerId)
{
//Logic to get the data from the database.
}
}
When we analyze this assembly, i want to know the value for the paramter StoreProc being passed to the function GetCustomerDetails(). In this case the value being "Stored_Procedure1".
Can anybody help on this?
|
|
|
|
|
Reflection lets you find methods and properties in a class. It doesn't let you watch methods being called, and examine the parameters that were passed in to them.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Friends,
I have a question, I hope you will know. I am developing buttons dynamically in .cs file of a c# project. I uploaded page on the server now I want that if user of website press One of the buttons he can view the drives from his local computer not from the server. I tried but everytime it accesses server drives. I need functionality just like as "Browse" button in the html. REMEMBER I DON't WANT to use 'BROWSE' BUTTON IN ANY CONDITION.
Regards,
Abubakar
|
|
|
|
|
To do this, you need to write an ActiveX or other sort of control. Your ASP.NET .cs files are on the server, they have no way of seeing the file system on the client.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
|
You want a replacement for the HTML Browse button to use with ASP.NET C#?
This still works though:
<input type=file id=myFile runat=server /> I ask because that control still works fine as long as you just set it to runat=server .
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
i add a FileUpload control an a button in the update panel but when FileUpload set to file and button clicked i recieved the error and PostedFile property of File Upload is null
but when i don't use Update Panel all things is Ok
what's the problem ??
With Thanks
MHF
|
|
|
|
|
We have developed a .net application with back end sql server 2000. Operating system on server machine is Windows Server 2003.Client machine's OS is Windows XP. Sql server authentication is given. I can access the sql server from the client machine. Butw when trying to access the sql server through the .Net application it shows an error 'Sql Server does not exists or access deneid'.
I am using the same connection string for a windows application and it gets connetced and works fine.
Please help me
|
|
|
|
|
hi there:
Just guess...maybe the ASP.NET account does not have permission to access the DB
<< >>
|
|
|
|
|
Can you connect to the database server from the web server machine?
|
|
|
|
|
Hi,
I have a button named btn1, now under the btn1_click event i wrote the following:
if(condition)
{
}
else
{
this.RegisterClientScriptBlock("",DisplayAlert());
}
-------------
public string DisplayAlert()
{
string script="";
script += ;
script += "alert('Text');";
script += "
}
Now the alert is being displayed but the entire page is being blank when displaying the alert box.
The requirement is that original page should be at the background while displaying the alert message.
Thanks
Gautham
|
|
|
|
|
Actually the javascript has to get registered on page load. In your case it is happening after you click the button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
You can registrer the buttons onclick event by using button.Attributes.Add("onclick","DisplayAlert();");
If you now add the javascript function to the page's html and remove the original click event in code it should all work fine.
HV
|
|
|
|
|
Try it using RegisterStartupScript(Type, string, string), it will work as per ur expectation.
Confidence comes not from always being right, but from not fearing to be wrong.
Mihir..
|
|
|
|