I created a application with Two layers
DAL and BLL ,and I registered them in GAC for global access by assigning strong keys for the dlls
I have created two versions like version 1 should return 10 as output and version 2 as 20
For my website I am adding the dlls from GAC so it will not place in bin it should directly assign to web.config as Microsoft dlls( System.Web.Extensions)
I am getting the outputs clearly for version 1 and version 2 as 10 and 20 as i expected. but Once I published the code with version 1 dll it is getting output as 10,
if I change to version 2 in web.config that time also it is showing the output as 10,y it is not showing as 20 even though I change to version 2(version 2 indirectly refers to version 2 dlls in gac as per before publish)
Whenever some user logs in to a system, it actually creates a new session.
Just store the Session id againist IP address in the database whenever the user logs in.
Now create one handler from which check every request. Use IRequiresSessionState to get the session id. If the session is found in the database for the same IP, Server.Transfer to Logout page with a particular error.
This way no more than 1 login would be allowed from the same IP.
Remember : You should delete the entries as soon as the user logs out. Also you need to place a trigger which would automatically delete one record when Session expires in the server for the IP, so that if one user forgets to logout, he could login again after a certain Timeout range.
That cant be done. Bcos in case of Firefox Session will be the same if you open a new tab. That is why if you login on an account using firefox, it will automatically transfered(which is of course not the case with IE)
I have a developed a mobile client application for which i wants to make a server application.
I have my website which have a database to it and i wants that both server application and my website will share the same database.
The main feature of the server application i to make continuous http request to a URL and capture the response and perform according to the response.
But i dont know what to do in this regards, i am totally stucked to this please help me what to do.
which kind of application i have to make either web application or web services & how i will integrate it to my website.
m working on shopping cart using csharp.
m retaining the products in datatable and finally then m showing this product in datalist(cart).
but the problem is that the datatable only keeps single row.
whenever i use to add new product to cart the old one is not shown only recently added product is shown.
plz guide where m i wrong.how to retain multiple rows in datatable.i used session but no change.
I believe that somewhere in your code you are overwriting the DataTable without preserving the older records .
Most possible place is where you are adding a new row,
just debug your code or post relevent pieces here ,
"Technically", the bug is here (your assigning a whole new datatable as your Session["cart"] object).
Session["cart"] = dt;
If your Session["cart"] schema is the same as dt just do:
But the whole thing is veerrry messsssyy....
Come on man, ever heard of Sql injection?
I see you use parameters in your Update method, good - use them all round your code, better yet, turn those sql strings into stored procedures.