|
Hi,
I am developing an Android Application where I would like to submit a search string to an ASP.NET web page. The App would then format the returned data. Any tips on how I might accomplish this?
Thank you!
|
|
|
|
|
Can any one help me to understand the concept of global.asax file in asp.net3.5
Thanks and regards
|
|
|
|
|
|
Thanks for the suggestion
|
|
|
|
|
Actually you should bookmark -> google.com[^]
Apurv
If Java had true garbage collection, most programs would delete themselves upon execution.
|
|
|
|
|
hi friends
i need to send mails from an asp.net application using c# but my IIS is not configured in my laptop so how to send mails
can anyone help me in this issue plz..
K.Gayathri
|
|
|
|
|
You don't need to configure IIS. The SmtpMail[^] class has a static property used to set the SMTP server to send mail through. You can also configure this in the web.config file in the mailSettings[^] element
No comment
|
|
|
|
|
hi
thanks for the reply
as per the link u gave
i wrote this in my web.config file
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network
host="localhost"
port="25"
defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
and in my code i wrote this:
MailMessage msgMail = new MailMessage();
msgMail.To = txtEmail.Text;
SqlCommand slistname = new SqlCommand("select * from list_builder where listid=" + selVal, conn);
drSubGroups = slistname.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.Subject = drSubGroups["ListName"].ToString();
}
SqlCommand sAccoutdet = new SqlCommand("select * from create_account where UserId=" + Session["UserId"].ToString(), conn);
drSubGroups = sAccoutdet.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.From = drSubGroups["EmailId"].ToString();
}
msgMail.Body = "Confirm your subscription";
SmtpMail.SmtpServer = "smtp.domain.com";
SmtpMail.Send(msgMail);
but still not working can you plz help me...
K.Gayathri
|
|
|
|
|
You have to give a better explanation than "it doesn't work".
One guess is you are using localhost as the smtp server and I doubt very much your local machine is an email server or configured as a relay.
Format your code snippets when posting
No comment
|
|
|
|
|
This my help[^]
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Warez yo grandmar dizzapeered to?
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
hi
thanks for the reply
my problem is i am not able to connect to the smtp server
can anyone help me out
my code is:
in my web.config file i have:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network
host="my id address here"
port="25"
defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
my asp.net c# code is
MailMessage msgMail = new MailMessage();
msgMail.To = txtEmail.Text;
SqlCommand slistname = new SqlCommand("select * from list_builder where listid=" + selVal, conn);
drSubGroups = slistname.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.Subject = drSubGroups["ListName"].ToString();
}
SqlCommand sAccoutdet = new SqlCommand("select * from create_account where UserId=" + Session["UserId"].ToString(), conn);
drSubGroups = sAccoutdet.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.From = drSubGroups["EmailId"].ToString();
}
msgMail.Body = "Confirm your subscription";
SmtpMail.SmtpServer = System.Configuration.ConfigurationManager.AppSettings["SMTPServer"];
SmtpMail.Send(msgMail);
K.Gayathri
|
|
|
|
|
1) Format your code snippets when posting
2) Don't repeat the question/reply in multiple places
3) I gave you the answer.
No comment
|
|
|
|
|
hi
i am having my .net application running in my system and i need to send a mail (eg to test to my email id itself).
so i am sending an email from my .net application to my email address hope u got my question now..
i am getting the error a smtp not connected...
K.Gayathri
|
|
|
|
|
I get your question, I got it the first time.
Yes, you have an email address. Good for you. However, your local machine is NOT an email server. ASP.NET and IIS don't just magically route emails around the world. You NEED an email server send an email.
Do you get my response? Let me repeat. Your local machine, ie localhost, is NOT an email server.
No comment
|
|
|
|
|
ya i got what u r saying
for that only i am trying to use smtp to send mails (is it ok)
so now tell me how to send emails..hope u would have got my code from my previous posting..
K.Gayathri
|
|
|
|
|
MalarGayu wrote: how to send emails
Use a valid SMTP server or configure a relay
Instead of continuing to post these questions why don't you spend some time researching. You have been given enough information. I'll get you started[^]
No comment
|
|
|
|
|
your local machine is NOT an email server. ASP.NET and IIS don't just magically route emails around the world. You NEED an email server send an email.
health
|
|
|
|
|
Hi Guys,
I have installed Visual Studio 2010 with Framework 4.0. But when I try to add an Ajax control on a web form it convert into an xml and shows some code. Also there is no Bin folder in the solution explorer, therefore no ajax.dll file. Do I need to install ajax for VS2010 and Framework 4.0?
I would appreciate your feedbacks.
Thanks
|
|
|
|
|
Did you create web site or a web application?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
There is no bin folder displayed in the Solution Explorer view because it is not part of the solution. It is a generated folder.
How are you adding this AJAX control? Is it form the controls toolbox? Are you pasting some code?
No comment
|
|
|
|
|
It's a web based project. On the Default.aspx Design page I simply drag and drop the ajax TextBoxWaterMarkExtender control from the Toolbox on the web page. The Ajax controls are listed under the General tab within the ToolBox. I also have another tab Ajax Extensions which only have Pointer, ScriptManager, ScriptManagerProxy, Timer,UpdatePanel and UpdateProgress controls.As soon as I drop it creates bunch of xml codes like as follows
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<a1:WebControlToolboxItem id="ref-1" xmlns:a1="http://schemas.microsoft.com/clr/nsassem/System.Web.UI.Design/System.Design%2C%20Version%3D2.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db03f5f7f11d50a3a">
<Locked>true</Locked>
<Filter href="#ref-5"/>
<Bitmap href="#ref-6"/>
<AssemblyName href="#ref-7"/>
<Company id="ref-8">Microsoft</Company>
<DisplayName id="ref-9">TextBoxWatermarkExtender</DisplayName>
<Description id="ref-10"></Description>
<TypeName id="ref-11">AjaxControlToolkit.TextBoxWatermarkExtender</TypeName>
<DependentAssemblies href="#ref-12"/>
<PropertyNames href="#ref-13"/>
<ToolData id="ref-14"><{0}:TextBoxWatermarkExtender runat="server"></{0}:TextBoxWatermarkExtender></ToolData>
<PersistChildren>0</PersistChildren>
</a1:WebControlToolboxItem>
<SOAP-ENC:Array id="ref-5" SOAP-ENC:arrayType="a2:ToolboxItemFilterAttribute[2]" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.ComponentModel/System%2C%20Version%3D2.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db77a5c561934e089">
<item href="#ref-15"/>
<item href="#ref-16"/>
</SOAP-ENC:Array>
<a3:Bitmap id="ref-6" xmlns:a3="http://schemas.microsoft.com/clr/nsassem/System.Drawing/System.Drawing%2C%20Version%3D2.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db03f5f7f11d50a3a">
<Data href="#ref-17"/>
</a3:Bitmap>
<a4:AssemblyName id="ref-7" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">
<_Name id="ref-18">AjaxControlToolkit</_Name>
<_PublicKey href="#ref-19"/>
<_PublicKeyToken xsi:null="1"/>
<_CultureInfo>127</_CultureInfo>
<_CodeBase id="ref-20">file:<_Version href="#ref-21"/>
<_HashAlgorithm xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SHA1</_HashAlgorithm>
<_HashAlgorithmForControl xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">None</_HashAlgorithmForControl>
<_StrongNameKeyPair xsi:null="1"/>
<_VersionCompatibility xsi:type="a6:AssemblyVersionCompatibility" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SameMachine</_VersionCompatibility>
<_Flags xsi:type="a4:AssemblyNameFlags" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">17</_Flags>
<_HashForControl xsi:null="1"/>
</a4:AssemblyName>
<SOAP-ENC:Array id="ref-12" SOAP-ENC:arrayType="a4:AssemblyName[4]" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">
<item href="#ref-22"/>
<item href="#ref-23"/>
<item href="#ref-24"/>
<item href="#ref-25"/>
</SOAP-ENC:Array>
<SOAP-ENC:Array id="ref-13" SOAP-ENC:arrayType="xsd:string[8]">
<item id="ref-26">Filter</item>
<item id="ref-27">Bitmap</item>
<item id="ref-28">AssemblyName</item>
<item id="ref-29">Company</item>
<item id="ref-30">DisplayName</item>
<item id="ref-31">Description</item>
<item id="ref-32">TypeName</item>
<item id="ref-33">DependentAssemblies</item>
</SOAP-ENC:Array>
<a2:ToolboxItemFilterAttribute id="ref-15" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.ComponentModel/System%2C%20Version%3D2.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db77a5c561934e089">
<filterType>Require</filterType>
<filterString id="ref-34">System.Web.UI</filterString>
<typeId id="ref-35">System.ComponentModel.ToolboxItemFilterAttributeSystem.Web.UI</typeId>
</a2:ToolboxItemFilterAttribute>
<a2:ToolboxItemFilterAttribute id="ref-16" xmlns:a2="http://schemas.microsoft.com/clr/nsassem/System.ComponentModel/System%2C%20Version%3D2.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Db77a5c561934e089">
<filterType>Allow</filterType>
<filterString href="#ref-11"/>
<typeId xsi:null="1"/>
</a2:ToolboxItemFilterAttribute>
<SOAP-ENC:Array id="ref-17" xsi:type="SOAP-ENC:base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAqdJREFUOE+Fk99PUnEYxo939n/UlVmpW9lIqwuXznQqWygqglsCLi3jgJrizIRUTFGsBDdBIWfq1lJTEHUg4q/MjfV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xI4Xr5q4qAiniBe+OKEzsCiF84e7L1jwb9HR4VV/J42rx7xsw==</SOAP-ENC:Array>
<a5:Version id="ref-21" xmlns:a5="http://schemas.microsoft.com/clr/ns/System">
<_Major>1</_Major>
<_Minor>0</_Minor>
<_Build>10301</_Build>
<_Revision>0</_Revision>
</a5:Version>
<a4:AssemblyName id="ref-22" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">
<_Name id="ref-36">AjaxControlToolkit</_Name>
<_PublicKey href="#ref-37"/>
<_PublicKeyToken xsi:null="1"/>
<_CultureInfo>127</_CultureInfo>
<_CodeBase id="ref-38">file:<_Version href="#ref-39"/>
<_HashAlgorithm xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SHA1</_HashAlgorithm>
<_HashAlgorithmForControl xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">None</_HashAlgorithmForControl>
<_StrongNameKeyPair xsi:null="1"/>
<_VersionCompatibility xsi:type="a6:AssemblyVersionCompatibility" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SameMachine</_VersionCompatibility>
<_Flags xsi:type="a4:AssemblyNameFlags" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">17</_Flags>
<_HashForControl xsi:null="1"/>
</a4:AssemblyName>
<a4:AssemblyName id="ref-23" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">
<_Name id="ref-40">System.Web.Extensions</_Name>
<_PublicKey xsi:null="1"/>
<_PublicKeyToken href="#ref-41"/>
<_CultureInfo>127</_CultureInfo>
<_CodeBase xsi:type="xsd:anyType" xsi:null="1"/>
<_Version href="#ref-42"/>
<_HashAlgorithm xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SHA1</_HashAlgorithm>
<_HashAlgorithmForControl xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">None</_HashAlgorithmForControl>
<_StrongNameKeyPair xsi:null="1"/>
<_VersionCompatibility xsi:type="a6:AssemblyVersionCompatibility" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SameMachine</_VersionCompatibility>
<_Flags xsi:type="a4:AssemblyNameFlags" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">None</_Flags>
<_HashForControl xsi:null="1"/>
</a4:AssemblyName>
<a4:AssemblyName id="ref-24" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">
<_Name id="ref-43">System.Web</_Name>
<_PublicKey xsi:null="1"/>
<_PublicKeyToken href="#ref-44"/>
<_CultureInfo>127</_CultureInfo>
<_CodeBase xsi:type="xsd:anyType" xsi:null="1"/>
<_Version href="#ref-45"/>
<_HashAlgorithm xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SHA1</_HashAlgorithm>
<_HashAlgorithmForControl xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">None</_HashAlgorithmForControl>
<_StrongNameKeyPair xsi:null="1"/>
<_VersionCompatibility xsi:type="a6:AssemblyVersionCompatibility" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SameMachine</_VersionCompatibility>
<_Flags xsi:type="a4:AssemblyNameFlags" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">None</_Flags>
<_HashForControl xsi:null="1"/>
</a4:AssemblyName>
<a4:AssemblyName id="ref-25" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">
<_Name id="ref-46">mscorlib</_Name>
<_PublicKey xsi:null="1"/>
<_PublicKeyToken href="#ref-47"/>
<_CultureInfo>127</_CultureInfo>
<_CodeBase xsi:type="xsd:anyType" xsi:null="1"/>
<_Version href="#ref-48"/>
<_HashAlgorithm xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SHA1</_HashAlgorithm>
<_HashAlgorithmForControl xsi:type="a6:AssemblyHashAlgorithm" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">None</_HashAlgorithmForControl>
<_StrongNameKeyPair xsi:null="1"/>
<_VersionCompatibility xsi:type="a6:AssemblyVersionCompatibility" xmlns:a6="http://schemas.microsoft.com/clr/ns/System.Configuration.Assemblies">SameMachine</_VersionCompatibility>
<_Flags xsi:type="a4:AssemblyNameFlags" xmlns:a4="http://schemas.microsoft.com/clr/ns/System.Reflection">None</_Flags>
<_HashForControl xsi:null="1"/>
</a4:AssemblyName>
<SOAP-ENC:Array id="ref-37" xsi:type="SOAP-ENC:base64">ACQAAASAAACUAAAABgIAAAAkAABSU0ExAAQAAAEAAQCPK9TDyQ7IhUYTfpE2AHQf3d2SnwXQMtUv0WBriGCYmbP3N6DmiBxfO7oKGPxgUoeQ9lLmSkGGh/tTjDyG0yWGbW2wch4W30ixt8brsHvIg9ShGeherOERCEL1lxI4Xr5q4qAiniBe+OKEzsCiF84e7L1jwb9HR4VV/J42rx7xsw==</SOAP-ENC:Array>
<a5:Version id="ref-39" xmlns:a5="http://schemas.microsoft.com/clr/ns/System">
<_Major>1</_Major>
<_Minor>0</_Minor>
<_Build>10301</_Build>
<_Revision>0</_Revision>
</a5:Version>
<SOAP-ENC:Array id="ref-41" xsi:type="SOAP-ENC:base64">Mb84Vq02TjU=</SOAP-ENC:Array>
<a5:Version id="ref-42" xmlns:a5="http://schemas.microsoft.com/clr/ns/System">
<_Major>1</_Major>
<_Minor>0</_Minor>
<_Build>61025</_Build>
<_Revision>0</_Revision>
</a5:Version>
<SOAP-ENC:Array id="ref-44" xsi:type="SOAP-ENC:base64">sD9ffxHVCjo=</SOAP-ENC:Array>
<a5:Version id="ref-45" xmlns:a5="http://schemas.microsoft.com/clr/ns/System">
<_Major>2</_Major>
<_Minor>0</_Minor>
<_Build>0</_Build>
<_Revision>0</_Revision>
</a5:Version>
<SOAP-ENC:Array id="ref-47" xsi:type="SOAP-ENC:base64">t3pcVhk04Ik=</SOAP-ENC:Array>
<a5:Version id="ref-48" xmlns:a5="http://schemas.microsoft.com/clr/ns/System">
<_Major>2</_Major>
<_Minor>0</_Minor>
<_Build>0</_Build>
<_Revision>0</_Revision>
</a5:Version>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
|
|
|
|
|
First, it was unnecessary to post all of this.
Second, are you sure you are using the toolbox and not a snippet that has been added. If yes, then try to delete the toolbox items and recreate. You can add toolbox item by dragging an assembly onto it.
No comment
|
|
|
|
|
Thanks for replies.
Will you be able to tell me where do I find the assembly or file which I need to ad again to the toolbox? A step by step guide will be very very helpful to me.
Thanks
|
|
|
|
|