|
|
|
I copied from u Only long back..!You suggested to someone
I think..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
If same user logging in twice, Make his 1st attempt to log-out how to handle this. Any help
|
|
|
|
|
You can maintain a database for logged in user. While new user logging in check with the DB for the same user are already logged in or not, if yes show him a message that some one has already logged in using same credentials.
Thanks !
|
|
|
|
|
Yes i thought of this. but logging out previous attempt would be better. any idea on that.
|
|
|
|
|
You can. But for that each and every time you have to check with the Database or may be Cached data. You can try like that, Suppose below is your logged in table Structure
M_ID M_Name M_Status
101 Abhi 1
102 Raj 1
Now, M_Status ,1 Means these user are logged in. If some other user trying to logged in using same M_ID like 101, you just check your temp DB and and set M_Status=0 and insert a new record as below .
M_ID M_Name M_Status
101 Abhi 0
102 Raj 1
101 Jhon 1
Now, who is already logged in ("Abhi") with the same ID ( 101 ) with M_Status=0 is need to be logged off from application.
So, after that table should be like this,
M_ID M_Name M_Status
102 Raj 1
101 Jhon 1
Its means, if any point of time any M_Status=0, corresponding user need to be logged off from application.
This is just an idea. You can think on that
|
|
|
|
|
i have used Application State and achieved. Thnks for u r suggestions
|
|
|
|
|
If possible please provide some details of implementation, so that it can help some others
|
|
|
|
|
MasterPageLoad
Dim userId As String = Session("UserID")
Dim multipleLogin As New Dictionary(Of String, String)()
multipleLogin = New Dictionary(Of String, String)()
Application.Lock()
multipleLogin = DirectCast(Application("MultipleLogin"), Dictionary(Of String, String))
If (multipleLogin.ContainsKey(userId)) Then
Response.Output.Write("<script>alert(You have already signed in. Loggin out)</script>")
Session.Clear()
Response.Redirect("~/Login.aspx")
End If
multipleLogin.Add(userId, Session.SessionID)
Application("MultipleLogin") = multipleLogin
Application.UnLock()
|
|
|
|
|
Hi
I wrote this code
string root=server.mappath(~/);
or
string root=server.mappath(~);
or
string root=server.mappath(/Project);
but it does not work,
please help me
Thanks
|
|
|
|
|
suppose your report mypersonal.rpt is in Reports folder then u can use
string root = Server.MapPath("~Reports/mypersonal.rpt");
otherwise
string root=Server.MapPath("mypersonal.rpt");
may this will help you.
please post your comment if this helps you.
|
|
|
|
|
but what about if i have the report in a separate project.
e.g report.dll
so, then how can I use Server.MapPath()?
|
|
|
|
|
The Server.MapPath method maps the specified relative to the corresponding physical path on the server.
As for Example.
Server.MapPath("MyFile.txt")
will return the Physical path for file that you have specified ( assume that it is located on root )
|
|
|
|
|
Server.MapPath("~");
This returns your root directory Path
Enjoy!Best Regards,
Chetan Patel
|
|
|
|
|
hi sir,
please help me sir.i am new in asp.net and i am developing an application on asp.net.and i am using crystal report.sir my crystal report is working fine locally.but sir it is giving error on server when it loads.and the error message is this .
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
i am unable to understand that what could be the problem.and for crystal report i am adding following assemblies in web.config and same dll in my bin folder.
add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
add assembly="CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
sir please help me as soon as possible because date of submission of this project has passed.
|
|
|
|
|
|
thank u sir
but which application i am running locally same application i am deploying on server.but i am facing the problem on server.while all the dll's in web.config and bin folder are same as locally running application on server.
please help me.
|
|
|
|
|
I am not talking abt application .I am talking abt software..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
|
hi
I want compare old html file with a new one and highlight the differences between them, but the difference should only be the one made in the text not the html tags... like what we see in browser
waiting for a early reply
thanking you
kirti
|
|
|
|
|
asset
|
.=====Fixed assest
.
.=====Current asest
|
======Cash
.======Bank
|
=====SbH Bank
==== Hdfc Bank
account code, parent code, ac/name, acctype
| | | |
10000 assest o
101000 10000 fixed 1
102000 10000 current 1
1020200 bank 1020000 1
10202001 sbh bank 1020200 2
10202001 Hdfc Bank 1020200 2
please make this application with asp.net with c#
Thanks Regards
|
|
|
|
|
|
I am trying to add a vb class in a project that is written in C# but i do not know how and there is no toturial how to do that help please.
|
|
|
|
|