|
Hi friends ,
i need coding for login page that checks user name and password from database table. i search from google but i can t find satisfactory answer. plz send me coding if anyone knows
|
|
|
|
|
Hi,
you r using built in login control or making your own custom login
|
|
|
|
|
hi nidhi sorry im not able to understand what u say
|
|
|
|
|
Hi,
We can use login in two way.
1. use built in login control of asp.net.
2. Create one html form where we keep 2 fields,login and password and then check it from database.
So what do you want to follow.
|
|
|
|
|
Jas 007 wrote: Hi friends ,
i need coding for login page that checks user name and password from database table. i search from google but i can t find satisfactory answer
I have already suggested you to buy a Beginners's Book before asking this type of question . Check Here[^]
Jas 007 wrote: search from google but i can t find satisfactory answer.
What kind of answer do you expect ?
I have searched google and Got This[^]
Jas 007 wrote: plz send me coding if anyone knows
This does't help you to learn .
|
|
|
|
|
|
web user control will be helpfull for you create a user control and add in your page where ever you want....
umerumerumer
|
|
|
|
|
Dear friends,
How can I destroy a variable in ASP.Net(C#).
If anybody knows, please answer
Regards
Shivan
Shivanandan C V
|
|
|
|
|
Assign null value to the variable .
int i ;
i=10;
i=null ;
|
|
|
|
|
Nishant Singh wrote: int i ;
i=10;
i=null ; //destroy variable
Wrong. This will not compile. int can't have NULL value.
|
|
|
|
|
i think variables are destroy after there scope is complete....
function ()
{
var a;
}---->here.
why you need to destroy it??
umerumerumer
|
|
|
|
|
I am using dataTable to temporarily display data in GridView.So in my function I wrote code for adding fields and records.
Then while running it for the second time, it displays error that column name already exists.
So I think that the datatable is not getting cleared while stopping the program.
Shivanandan C V
|
|
|
|
|
How this data table object is declared? Looks like you have incorrectly declared the data table.
|
|
|
|
|
I have declared it as
static DataTable dtMainTask = new DataTable();
Shivanandan C V
|
|
|
|
|
Shivan Nandan wrote: static
This is the problem. Do you know what is the scope for a static variable? It lives until the application domain unloads. BTW, is there any specific reason for declaring it as static?
|
|
|
|
|
If I didnt declare it as static, then its value becomes empty in another function.
ie,
I declared it outside all the function ,
In Page_PreInit - declared the fields,
In btnAdd_Click - wrote function to add rows
Therefor if I didnt declare it as static then the fields are not accessible in btnAdd_Click function.
Shivanandan C V
|
|
|
|
|
The variables are automatically destroyed once they are out of there scope.
If u are talking abt object.Let the asp.net garbage collector handle it for u.
|
|
|
|
|
Why you want this.Actually for any value type variable you does need to care because thaey are allocated n stack so they will be according to the scope of that variable.
For reference type vaiable also ,the garbage collector take care of all this,you can also call garbage collector by your own but it is not advisable as per Microsoft.You can do one thing,if reference variablle if you don't need any more ,you can assign null it to you,it'll help gc.
Cheers!!
Brij
|
|
|
|
|
Brij wrote: if reference variablle if you don't need any more ,you can assign null it to you,it'll help gc.
No.
|
|
|
|
|
hi all ,
Created a web control for menu where i am trying to set the property by passing hashtable.
Dont know y it throws error
|
|
|
|
|
if(NoClearInformation())
NoHelp() Seriously, check all your objects are instantiated.
|
|
|
|
|
plz dont mind,
can u suggest wht info do u need.
|
|
|
|
|
The error which you said will happen only when you try to use an object which is not initialized.
|
|
|
|
|
Thx navaneeth for the soln..
Actually i was trying to place the control in the master page content holder..
Thus was getting the error.
the Problem is solved.
|
|
|
|
|
Hello guys,
I'm using system.IO.File.Exist to check to see if the file exist and if it does. i delete it by calling File.Delete(C:\"MYFile.txt");
if(File.Exist)
{
File.Delete(C:\"MYFile.txt");
}
This works if as long as the file is not opened (i'm doing some processing within the file). But when i try to delete it after processing, it errors out. Apparently the process is not releasing this file and that's why it throws an exception that says that the file is being used by another process.
The file class doesnt provide a mechanism to see if the file is currently open or not so that I will only call Delete on the file if it is not open. Or how dow I explicitly close the file?
Thanks for your help in advance.
Tina
|
|
|
|