|
get the MemberShip object and you'll get all the related info and feed to the controls manually.
|
|
|
|
|
If you're using the Microsoft login control, have you bothered to read the documentation ? I believe there's a control whose only purpose is to show those details when someone is logged in.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
tell me the code in asp.net
|
|
|
|
|
No - try to do your own work and ask specific questions when you can show that you've put some effort in instead of asking us to write the code for you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
i have made asp based web page using C# in which there is a login form and it is running well But I want to implement another thing in it . I want to have "remember me" component in it.Plz send me the code for it in C#
.
Thankx
|
|
|
|
|
If the Check box is enabled you can work with this Code
you can try FormsAuthenticationTicket and add it to Cookie.
|
|
|
|
|
how could it do this? I mean don't know how to put the code of "formsAuthentication" and add it to the cookie..that's why i have asked to do so...
|
|
|
|
|
are you using FormAuthentication as first place? If so, you don't have to add code to the cookie, add Authentication Ticket to the cookie.
|
|
|
|
|
|
store the credentials in a Cookie if 'Remember Me' is selected and later retrieve data from the cookie to pre-populate the fields.
|
|
|
|
|
I would like to get the local printers on the client computer in order for the client to pick from in a dropdown box and then print to. Is this possible?
|
|
|
|
|
You can just invoke window.print in the client browser. It open up the print dialog box where there is already one dropdown box to choose printers.
Certain things are not accessible in browser due to security reasons. Direct access to printer is not possible.
|
|
|
|
|
Hi,
I am importing data to sqlserver2005 from a csv file. But the folder where i upload the file before import is unaccessible even though i have given full rights to everyone accessing this folder or even the root folder of the application for testing purposes. I am getting error 'invalid File' (though the file is valid csv) on my system where Norton and Kaspersky are installed but when i tryed to import data from same file using other system it did not give error and file was uploaded successfully and then imported to database. I have restarted the deployment server. Should i restart iis admin servies or what should i do. I have given full rights on the folder where i m uploading the file before importing it to database.
Thanks,
Safvi
|
|
|
|
|
have you selected the option in advance to implement those permission on child object?
|
|
|
|
|
The follwing piece of code is working accuratly some time while inaccuratly on other system. Working ok on local system and even on one system after deplyment.
Dim intFileNameLength As Integer = InStr(1, StrReverse(strPath), "\")
FileName = Mid(strPath, (Len(strPath) - intFileNameLength) + 2)
If Right(FileName, 4).ToLower <> ".txt" And Right(FileName, 4).ToLower <> ".csv" Then
ErrorControlStep1.ErrorMessage = "Invalid File"
ErrorControlStep1.Visible = True
Exit Sub
Else
....
...
End if
What could be the reason. May be this <> operator. while the file was csv not any other.
Thanks for ur reply.
Safvi
|
|
|
|
|
If you try to cut - > paste the file manually from the folder to another, does it allow you to do so?
If not, I think IIS must have held the file while uploading. Just restart the IIS Service from IIS console and see if it cures the problem or not.
|
|
|
|
|
The follwing piece of code is working accuratly some time while inaccuratly on other system. Working ok on local system and even on one system after deplyment.
Dim intFileNameLength As Integer = InStr(1, StrReverse(strPath), "\")
FileName = Mid(strPath, (Len(strPath) - intFileNameLength) + 2)
If Right(FileName, 4).ToLower <> ".txt" And Right(FileName, 4).ToLower <> ".csv" Then
ErrorControlStep1.ErrorMessage = "Invalid File"
ErrorControlStep1.Visible = True
Exit Sub
Else
....
...
End if
What could be the reason. May be this <> operator. while the file was csv not any other.
Thanks for ur reply.
Safvi
|
|
|
|
|
K.Safvi wrote: FileName = Mid(strPath, (Len(strPath) - intFileNameLength) + 2)
Horrible. Check out the Path class ( system.IO.Path ), it has methods to return filenames, file extensions, etc.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Whenever i try to publish filesystem website to HTTP, first it prompts me with an error to run as administartor and also to install windows component of IIS although i have checked every option while
enabling IIS from Control Panel. And when i run VS as administrator it deploys successfully but while
open site it gives error access denied......
|
|
|
|
|
I think your IIS is not configured correctly...
Take a look if the site you added to IIS actually runs or not. Also add permission to asp.net to the folder you publish.
If still have problems, install aspnet again.
To install go to Command prompt of Visual studio.
type
aspnet_regiis /i
I hope this will cure the problem.
|
|
|
|
|
go to your command prompt of VS.net and run this command
aspnet_regiis -i
|
|
|
|
|
hi,
i want to convert a date selected from calender control into english words.
e.g 11/01/1948 to-- eleven january nineteen fourty eigth.
can anybody help!
|
|
|
|
|
guess you've to write your own algo for that
|
|
|
|
|
you have to use a method which returns the word for each number. For an example refer the following code.
public string getWordForNumber(int number)
{
string word = null;
switch (number)
{
case 1 :
word = "One";
break;
case 2:
word = "Two";
break;
..
..
..
default:
break;
}
return word;
}
For 30/31 days of month, you dont need 30/31 case on your switch. use another method which returns 10 to the power 1 numbers, For an example, for 21 --> for number 2 it should return Twenty, using the above method you can get next number, for number 1 - One, All together --> Twenty One
|
|
|
|