|
Hey i have answered the same question below.
Regards,
Satips.
|
|
|
|
|
Take a checkbox in the login page i had used Logincontrol of asp.net2.0
CheckBox chkBox = (CheckBox)Login1.FindControl("RememberMe");
if (chkBox.Checked==true)
{
HttpCookie myCookie = new HttpCookie("myCookie"); //Instance the new cookie
Response.Cookies.Remove("myCookie"); //Remove previous cookie
Response.Cookies.Add(myCookie); //Create the new cookie
myCookie.Values.Add("user", this.Login1.UserName); //Add the username field to the cookie
DateTime deathDate = DateTime.Now.AddDays(1); //Days of life
Response.Cookies["myCookie"].Expires = deathDate; //Assign the life period
myCookie.Values.Add("pass", this.Login1.Password);
}
Getting after Cookie created u write the code in page load event....
if (Request.Cookies["myCookie"] != null) //Cookie Exists??
{
HttpCookie cookie = Request.Cookies.Get("myCookie");
string user = cookie.Values["user"].ToString();
if (user != "")
{
Login1.UserName = user; //Write the username onto login username textbox
}
}
came out of hardwork
|
|
|
|
|
Hi,
I have a webform where i have a text box and input type=file control.
Now when i select a file from the browse button the path is visible to us at the same the name of the file should be displayed in the other textbox present in the form.
How to achieve this? The question in which event i should extract the name of the file from the path available and assign to the textbox?
Thanks!
Gautham
|
|
|
|
|
You can use onpropertychange event for that purpose.
Apurva Kaushal
|
|
|
|
|
How to reset web parts to its default setting?
e.g. If I personalize the setting of http://my.msn.com/
then how can I reset the contents of site ?
Vikas Neema
|
|
|
|
|
|
Hi
There is the requirement of autometic software updation process. We need a method where the admin will check for updates with a button in the GUI, and the system will self-extract and install on it's own. We're going to get many customers on our project, and need automated processes for this.
Please give the idea how it is possible both for Window and Web based application. We are using .NET as well as Delphi application.
|
|
|
|
|
I think it can be achived thru windows scheduler...
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi Friends
I created login page like username,password
how can i created "Remember me on computer" with check box using cookies
can u help me??
regards
saravanan
|
|
|
|
|
There is an Article related to Remember me by Minhajkk here[^] in CP itself.
Hope this will Help you.
Regards,
Satips.
|
|
|
|
|
anybody is here
Raghvendra Kumar Roy
|
|
|
|
|
is anybody here ?
Did you have a question ?
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 )
|
|
|
|
|
ya but it is not visible
Raghvendra Kumar Roy
|
|
|
|
|
What is your Question Raghavendra Kumar Roy.
Regards,
Satips.
|
|
|
|
|
Don't use html tags. Put that in the tags given in the editor.
Apurva Kaushal
|
|
|
|
|
Please post your questions....
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Dear all,
I have developed a custom httphandler.But when i register this custom httphandler with any of my applications the controls are not getting rendered. i think it is because only one httphandler can process a web request at a time and the default asp.net httphandler is not processing the request. is there any way to get these two handlers process the request. how can i get the controls rendered even i use a custom httphandler. hope you all got my point. awating reply eagerly
Ramesh.Kanjinghat
|
|
|
|
|
Let we know it in detail what the Default asp.net HttpHandler is doing and alos about the Custom HttpHandler.
Regards,
Satips.
|
|
|
|
|
hi,
i have set of file paths from client machine, to be uploaded to my upload folder in my application.
i add more than one file to listbox.
when i click save button all files to be uploaded.
i know oploading using htmlinput file.
eagerly waitng for ur solutions...
vinod
|
|
|
|
|
Hope the Article by Konstantin Vasserman File Upload[^] here in CP will Help you.
Regards,
Satips.
|
|
|
|
|
i saw that before itself but its uploading using inputfile.
in my senario, i get the file path from list box and i want the file to upload to my machine
vinod
|
|
|
|
|
Hope this may help you.
Regards,
Satips.
|
|
|
|
|
thank u satips..
but there also it using multiple htmlinputfiles for multple files
but here in my requirement i do not have htmlinputfile i have fromfilepath
and tofilepath(in my machine)
i have to upload from fromfilepath to tofilepath
-- modified at 3:07 Wednesday 13th June, 2007
|
|
|
|
|
Hi,
You can use FileInfo class for this.
FileInfo fInfo = new FileInfo(path);
if(fInfo.Exists)
{
fInfo.CopyTo( destfilename );
}
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Hi,
I am having complex schema XSD file, i want to convert the XSD schema in to database table (oracle/sql server 2000) using vb/c# .net is it possible. If so can you plz guid me how to convert.
Thanks
Warm Regards
Prakash-B
Thanks
Warm Regards
Prakash-B
|
|
|
|