|
1- Session
You can use Session["name"]= variable;
In the other page put the session in lable or text.
Label1.Text=Session["user"].ToString();
2- QueryString
SqlCommand cmd=new SqlCommand("select id from Table where id="+dgi.Cells[12].Text,sqlConnection1);
|
|
|
|
|
Aloha,
We have a well functioning site map (breadcrumbs) in our asp.net application. Now some of the brass have decided that the root node should not be displayed, but how do we implement that?
A root node is required in the sitemap XML file, so we can't remove it there. We have a custom site map provider, but it's impossible to edit the parent nodes in there. Only the current child node can be edited.
Any ideas?
|
|
|
|
|
i want to mail welcome message when a user register in my web site.
i use the below code but it does'nt work.
it's give me this error : (The"SendUsing" configuration value is invalid.)
public static void Send(string mail,string sname,string sfamily)
{
MailMessage mailMsg = new MailMessage();
mailMsg .From = "info@mashhad915.com";
mailMsg .To =mail;
mailMsg .Subject = "Welcome!";
mailMsg .Body ="welcome";
mailMsg.Bcc="info@mashhad915.com";
mailMsg.Cc="info@mashhad915.com";
SmtpMail.SmtpServer.Insert(0,"127.0.0.1");
SmtpMail.Send(mailMsg );
}
please help me?
it's very important for me.
|
|
|
|
|
check ur smtp configuration, it might be not properly configured.
|
|
|
|
|
Use smtpserver out blank as below:
SmtpMail.SmtpServer="";
or
give ur smtp server according to ur smtp out as like below :
SmtpMail.SmtpServer="mail.a2z.com"
prabir
|
|
|
|
|
I had a similar problem a few weeks ago. It helped to set the smtp server to local host and not domain.com or mail.domain.com.
|
|
|
|
|
Hello,
In my recent project I used sending mails functions.
Actually 2 approaches are their.
1. In this case the mails go to bulk /spam folder
2. In 2nd approach mail will go to inbox(u r using authentication here as u have to mention uid/pwd of sending mailer)
I am putting the exact codes that I have written previously.
______________________________________________________
1st Approach
public void SendMail()<br />
{<br />
MailMessage msgMail=new MailMessage();<br />
msgMail.To=emailTo;<br />
msgMail.From="test@test.com";<br />
msgMail.Subject="test visitors mail";<br />
msgMail.Body="whatever u want";<br />
SmtpMail.SmtpServer = "";<br />
SmtpMail.Send(msgMail);<br />
<br />
}<br />
2nd Approach(same as 1st approach with some additional fields of authentication)
public void SendMail()<br />
{<br />
MailMessage msgMail=new MailMessage();<br />
msgMail.To=emailTo;<br />
msgMail.From="test@test.com";<br />
msgMail.Subject="test visitors mail";<br />
msgMail.Subject="test visitors mail";<br />
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "test@test.com");
msgMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "testpassword");
SmtpMail.SmtpServer = "mail.test.com" ;
SmtpMail.Send(msgMail);<br />
<br />
}
Thanks,
Prabir
|
|
|
|
|
|
Hi,
I want to use ASP.Net menu control in my project, the main problem i am facing is how to integrate the Membership and Roles in the Menu, what i mean to say is that only limited menus should be visible to user who has logged in, based on the role whihc he/she has.
How can i accomplish it.
Thanks,
Deepak Surana
|
|
|
|
|
hi,
Programatically How to get Shared folder's in a computer's which are connected in LAN.
kamalnath
|
|
|
|
|
|
Friends...any one can guide me about how can i implement PaymentGateway(PAYPAL ,Escrow, HSBC and Other CreditCards) in my application which is on asp.net 2.0 with c#..
Please help me i urgently need this and i don't know about it.
Thanks in Advance
Nilesh Upadhyay.
|
|
|
|
|
Paypal has its own API, logon to the paypal site for more information
Blog Have I http:\\www.frankkerrigan.com
|
|
|
|
|
Hi All,
I am using ASP.NET 1.1 for web application.I need to add TabControl for WebApplication.
Is that possible in ASP.NET 1.1?
Thanks in advance
|
|
|
|
|
Hi
For Each control in Web page you can find TabIndex in the properties of each control and give them the order u want.
|
|
|
|
|
hi,
Try this link...
http://msdn.microsoft.com/library/default.asp?url=/workshop/webcontrols/overview/tabstrip.asp
Thanks & Regards...
Amit
|
|
|
|
|
Hii friends,
I am intrested to have a website like http://www.tmz.com/ but in .NET.
So can you plese suggest any good CMS in .NET for this.
Best Wishes,
prabir
|
|
|
|
|
|
Hello,
Budget is not a issue, but I need some good links 4 CMS of this type, then I need to research.
Can u plz suggest.
Thanks,
Prabir
|
|
|
|
|
Ok,
well, I suggest you have a look here http://www.cmsmatrix.org/
|
|
|
|
|
thank you Jason
Thanks,
Prabir
|
|
|
|
|
|
hi, I have problem related to printing .
I have to take print of only one page and want to set it through the code of javascript using
printWindow.document.write(printContent.innerHTML);
I want to specify the No of Pages=1 as argument i.e. hard coded.
Currently what is happning ,initially RadButtn of Print dialogue box is set for "ALL" in this case I get one extra page along with required one,this should not happen.
If we select Radbutoon For number of pages and set it to 1, I get only 1 page that is Ok.But if user will not select it then his one page is wasted bcoz "All" radio btn is selected by default.
Hoping Got my problem.
Please tell how to achieve it?
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
Please any one can give me some idea about.
How to Implement payment gateway (Paypal ,Credit Cards and escrow)in my project which are
in asp.net(C#) and SqlServer2000.
thanking you.
|
|
|
|
|
You need a Merchant Account with the Payment Gateway like Verisign or ICICI PaySeal.
|
|
|
|