|
Where you want to remember your username and password ? In mind or somewhere else ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
I mean that i use cookie to remember, but i don't know
................
|
|
|
|
|
My friend Cookies are not safe to use. If your application is not very concern about security then you can use cookies
it is very simple
<br />
Cookie["UserName"] = UserNameTextBox.Text;<br />
Cookie["Password"] = PasswordTextBox.Text;<br />
string username= Cookie["UserName"];<br />
string password= Cookie["Password"];<br />
<br />
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
So do you have any comment for me?
Thanks and Regards
Socheat
................
|
|
|
|
|
|
Claerly specify what you want to do? your question is not clear?
Regards,
Satips.
|
|
|
|
|
Am sorry, I mean that i want to use cookies, so please help me
................
|
|
|
|
|
I am doing the project of electronic PO form, and I got stuck. I am using wins 2000 server, front end ASP version 3.0, back end SQL database.
I have 2 questions to ask if anybody knows any of these, please let me know I really appreciate.
1/. To the PO form, do you know how to display PO # on
the form. This # usually shows up at the top right
corner of the form (6 digit # such as 026191). I set
up in database by using identity increment in PO #
column so that every time the user adds new orders,
the PO # will automatically increase.
To ASP file, how can I display the #?
2/. After the user fill out the form, they will submit to whoever approves the orders like a manager, it should be default. At the left bottom it shows the name of the person who orders. At the right bottom it shows the name of the approval person like manager. Do you know how to set up this?
If you have any ideas, please let me know.
Thank you very much for your help.
JoinCP
|
|
|
|
|
hi,
I have a Asp.Net application in which i have to print a page. the thing is that i have to print the next page by clicking the print button option in my previous page. pls give me a proper code using javascript print function.
Regards
Vijay.
|
|
|
|
|
So far what you have tried for this application.
What error it shows?
we are here to help you, not to do your work?
Regards,
Satips.
|
|
|
|
|
hi satips,
I have tried using onclick=window.print() in javascript for the button click in that particular window. it works fine. but the thing is i have to use the button in another form and when i click the button, the form which needs to be printed(ie.., the next form) should be printed. Can we pass the particular aspx pagename inside the window.print() function?. pls help me..
Regards
Vijay
|
|
|
|
|
Yes you can pass the particular aspx pagenmae inside the window.print() function.
But be careful in using the javascript. did u use the onblur function in your javascript.
Regards,
Satips.
|
|
|
|
|
Thanks for ur reply dude. but i did'nt use that onblur function. can u please tell me what's the purpose of that function and why do we use it?
Regards
Vijay.
|
|
|
|
|
how to take (postgres or orther database) Database backup,restore using asp.net codebehind(C#.net coding) save to client.
|
|
|
|
|
hi friends,
i have a problem, like when i redirects from http to https from my current page to my other page, then my request is going into loop i am not able to reach at redirected page.
i have just replace "http" to "https" and reform the url and redirected to that https url.
can anyone please help me.
Chirag Patel
|
|
|
|
|
HI,
Can you tell us how do u redirect? I mean using javascript or in C# code.
Please paste your code here if you can.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
hi i have to create a MSI (setup) project that install a VPN package during installation it should not allow the user to select the path for saving it. how to do this in .net framework. ples help me
|
|
|
|
|
Hi Gurus,
Can any body send me the code of sending Mail through ASP.NET
and wht are the requirements for sending a mail. Which Namespace we should import.
Using System.Net.Mail Or
Using System.Web.Mail
Can any one help me out of this Plzzzzzzzz.
Plz send me the code
Expecting an Early and favourable Reply
Thanks in Advance
with thanks and regards,
kaushik pulpa
|
|
|
|
|
|
Use the namespace System.Net.Mail,System.Net.Mail.SmtpClient
There are lot of examples SMTP[^]in CP itself.
This article will help you in creating the SMTP.
Regards,
Satips.
|
|
|
|
|
Hi,
using System.Net.Mail;
static string HostName = System.Net.Dns.GetHostName();
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add("mrk_hari@yahoo.com");
message.Subject = "This is the Subject line";
message.From = new System.Net.Mail.MailAddress("shkuricheti@gmail.com");
message.Body = "This is the message body";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(HostName);
smtp.Send(message);
Sandeep Kumar.V
|
|
|
|
|
the reply from sandeep works fine
|
|
|
|
|
here is that what you are looking for? Sometimes links are good, but thats my biggest problem with alot of people on CodeProject, most of us are smart enough to google, and if I come here, its because chances are I didnt understand what they were explaining out there. It helps to see real life code, so here is an example for you from one of my projects.
private void SendEmail()<br />
{<br />
try<br />
{<br />
MailMessage newMail = new MailMessage();<br />
<br />
newMail.From="e-mail@e-mail.com";<br />
<br />
<br />
newMail.From="e-mail@e-mail.com";<br />
newMail.To=lblEmail.Text;<br />
newMail.Subject="Your TCAIMS Password";<br />
newMail.Body="Your password is "+lblPassword.Text+".";<br />
SmtpMail.SmtpServer="SMTP IP ADDRESS HERE";<br />
SmtpMail.Send(newMail);<br />
<br />
<br />
<br />
newMail = new MailMessage();<br />
newMail.From="e-mail@e-mail.com";<br />
newMail.To=lblEmail.Text;<br />
newMail.Subject="Your User ID";<br />
newMail.Body="Your User ID is "+lblUserID.Text+".";<br />
SmtpMail.SmtpServer="SMTP SERVER IP";<br />
SmtpMail.Send(newMail);<br />
<br />
}<br />
catch(Exception err)<br />
{<br />
string s = err.Message;<br />
HandleErrors(s);<br />
}<br />
<br />
}
|
|
|
|
|
My name is Jatiner and I work for Microsoft on the TechEd event. I generally read IT blogs to keep up with what is going on in the industry and decided to jump on in with a little plug for TechEd 2007 (June 4 – 8). This year we’ve dedicated 50% of the event content to developer specific tools with deep technical training that covers Visual Studio® 2005, Windows Vista™ development and the .NET Framework. You can also get in-depth information on building software using Visual C++®, Visual Basic® and Visual C#®. The incredible amount of information you can learn at TechEd is awesome but it is also an incredible place to network and let loose a little. The event is in Orlando, FL this year so the attendee party is at Universal Studios Islands of Adventure and the place is reserved for TechEd attendees only! Trust me, these parties are a blast. If you decide to go you should register now before it sells out like it did last year…we are also offering a bit of an incentive, all registrations before May 11th are entered to win either 1 of 5 Xbox 360 Elites (killer graphics) or 1 of 5 Amex gift cards (Disney ain’t cheap!) www.microsoft.com/teched
Jatinder Singh
|
|
|
|
|