|
1 - why do you create a MailMessage object that you never use
2 - this code is unreadable. How can you be sure that the problem is not that the textboxes are in the wrong order ? Give them real names
3 - response.write ? Surely not ? Use a label
4- where do you set up a mail server that can deliver your message ?
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
MailMessage mailFor = new MailMessage();
mailFor.From = txtFrom.Text;
mailFor.To = txtTo.Text;
mailFor.Subject = txtSub.Text;
mailFor.Body = txtBody.Text;
mailFor.Priority = MailPriority.High;
try
{
SmtpMail.Send(mailFor);
lblMessage.Text="Your Mail Has Been Sent Successfully .";
}
catch (Exception ex)
{
lblMessage.Text="Mail Sending Fail. " +ex.Message;
}
Thanks & Regards
Tarini Singh
Sr. Software Engineer. (IT)
tksingh@zenta.com
|
|
|
|
|
how to add javascript function dynamically?? any special methods available..
Karthick.N
|
|
|
|
|
RegisterClientScriptBlock is what you want.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
karthick.n.mca wrote: how to add javascript function dynamically?? any special methods available..
In ASP.NET 1.1
ServerControl.Attributes.Add<br />
Page.RegisterStartupScript<br />
Page.RegisterClientScriptBlock
In ASP.NET 2.0
ServerControl.onClientClick<br />
ClientScript.RegisterStartupScript<br />
ClientScript.RegisterClientScriptInclude
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi,
Can u just tell me the code to retrieve particular cell value from datagrid.I mean 2nd row 3rd column etc.,
Thank u
|
|
|
|
|
if you are using athird party grid control then u ill be having lot of grid properties...though if ,net native controls then u should write ud function to achive..these things...
|
|
|
|
|
Try this:
this.GridView1.Rows[1].Cells[2].Text
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
|
SUDHAKAR PALLAM wrote: code to retrieve particular cell value from datagrid.I mean 2nd row 3rd column etc.,
Datagrid, 2nd row, 3rd Column
DataGrid.Items(1).Cells(2).Text
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi!
I have a serious problem with a web application i'm working on. I use forms authentication to authenticate users, but the problem is that when the user is not logged in the site has no style until the user gets logged in. When he logs out the style dissapears again. I have used some css for styling, but i'm really lost with here.
Any help is well appreciated!
|
|
|
|
|
Zoliq wrote: I use forms authentication to authenticate users, but the problem is that when the user is not logged in the site has no style until the user gets logged in. When he logs out the style dissapears again. I have used some css for styling, but i'm really lost with here.
Problem is with the authentication or with the CSS styles?
Linking your Web Page to the CSS Style Sheet...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
It seems that you may have denied the access to your images folder[hope your css file is in images folder] for all anonymous users. You can provide access by adding the following in web.config
<configuration>
<location path="Images">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>
*jaans
|
|
|
|
|
Thanks, J@@NS!
That was the problem you mentioned. Thank you very much! I'm new to ASP and i get lost very often, but i think that's the life of a programmer. BY!
|
|
|
|
|
hi all,
i m running .net application version 1.1 on web server, in this application i have create a user control in which i made login form , in this form when user login , his username value assign to a session variable,n in web config i session setting is as follow:
<sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;UID=userid;PWD=password"
cookieless="false" timeout="10000">
this is running correctly on my local host but whn i put this on web server within 5 minutes session outs, i dont understand the problem, plz help me its very urgent.
thanks.
|
|
|
|
|
|
hi,
i did that which u suggest me but now session time out very fastly.within in 2 min only.
in web config i have set time out 10000.plz reply if u have solution.
thanks .
|
|
|
|
|
ok i m sending a link:
www.raisarplazaithub.com, this site is under construction.
ok first login with userid=abc,password=abc and then click on classified link and then place ur ad n thrn place ad after this a widow will open n now fill all entries, u will see at the mean time session will time out and page directecto home page.
plz follow these step ,
after this if u find the problem then plz n plz reply me.
thanks.
|
|
|
|
|
Hi Plz Tell me some good sites to know abt GCA(Global Assembly Cache)...,
I need that with example codes...,
So it will easy to know whats going on in that...,
Thanks,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: GCA
GAC
Magh_M wrote: Hi Plz Tell me some good sites
Googling is allways the best for this[^]
Magh_M wrote: I need that with example codes...,
To share an assembly within a web application we add the assembly in the \bin folder. If we need to share between mulitple ASP.NET web application then we can install it in the (GAC)Global Assembly Cache.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
http://www.dnzone.com/ShowDetail.asp?NewsId=698
i think this will be help full for u
desire is different from burning desire
|
|
|
|
|
Hi all,
Can any one help me ,How to prepare a chat application?in .Net Applications
Any article if u have please send it to me.Whether Remoting concepts r useful.i dont know how to use remoting in .Net applications.
Thanks in advance
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
ASp.NET is not really the best way to write a chat app, unless you use AJAX a lot. I'd say a windows app makes more sense.
The core issue is, you need a central server so you can find IP addresses of people you want to chat to.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
ya Thank u,
but how can we know the IP Address of the users.
and i think we need to configure the SMTP Server also
Please suggest me in a Proper way?
Thanks fr u r reply
Regards..
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|