Say I have an ASP.NET webpage and I also have a PHP Blog/BBS/Website. I want all logins to be done via the ASP.NET webpage. The ASP.NET Session State is stored in SQL. Is there any way I can read/decode the Session State from PHP to tell if a user is logged on if I have the Session State cookie?
...
If I need to implement my own MembershipProvider class, I have to implement all the services I require myself, so what advantage do I gain by implementing a MembershipProvider derived class versus just writing my own MySecurity class?
...
I'm creating an ASP.NET web application which I want to secure with Forms Authentication.
When the application is run for the first time, I want it to create a default administrator account so that the owner is able to log in and configure the application.
I managed to get something working for this by running the following method fro...
Hello,
I am not sure how to phrase a good question, so I will just say what I am after!
I have to retool a web application for our vendors and part of that requires restricting content on a vendor by vendor basis. Looking at ASP.NET (MVC) this seems easy enough using the built in Authorization Filters and the IPrincipal and IIdentity ...
I have a file named AttachmentDownload.aspx and inside Page_Load method have such code wich offers to download file. All names work correctly in IE except names which include ";" or "#". They offer user to save the file under name "AttachmentDownload.aspx". Is there a workaround for this?
Here is an example:
var fileName = Server.UrlP...
I'm an experienced desktop client developer in FoxPro, and I've started learning C# in VS2008 for object oriented programming. At this point, I've never worked on web-based data access apps. In moving to .NET, I want to learn web-based programming rather than desktop client-based, and my focus will be conventional Line Of Business apps.
...
Hi,
can anyone give a helping hand, I been watching the videos for the mvc storefront and have create my own website using these techniques i.e. DDD, Repository pattern but i wish to use Entity Framework.
In the Interfaces it returns IQueryable but with the entity framework i should return ObjectQuery instead? - I will be using LINQ.
...
Hi,
When you create a new asp.net page in VS 2008 and choose code behind, it also creates the typical aspx.vb or aspx.cs file to go along with it.
At the top of those files, VS names the 'Partial Class' name the file structure and/or name of the aspx file.
The question: Is there a best practice for this? Can I just use a single class...
I have a grid view with AllowSorting set to true. I get an event onsorting when a sortable header is clicked on. the handler has a parameter "GridViewSortEventArgs e" which has a SortDirection property on it. regardless of how many times you click on the same heading, the SortDirection is always Ascending. I think I'm missing something, ...
So what does this exactly means?
Some advised that to circumvent around this error, only bind a gridview to a dataset when the rows count of the datatable is greater than zero.
but how about if for example your search yielded no record returned, so your datatable would have no rows, but still, you can still bind to the dataset?
Aside ...
I am building a report that needs to include photographs, I have no way of knowing how many photos will be taken but they are stored on a file server under folder named after the ID of the report being generated. How would I go about including these in an RDLC?
...
hi everyone
I have a strange problem. I am trying to update some fields using linq and it is not working. I tried to build the site and debug it which works and shows that the function is called. I also tried manually adding the values in the code behind file and that works too but somehow on runtime the form doesnt pass the values back...
I'm looking for some examples of how you would show the status of a ventrilo server on your website. What I would like is the ability to show who is logged on and what channel they are logged into. I have found sites that you can purchase, but would like to either find a open source or free solution.
If there is not a solution already...
Update: the clearest explanation I have found on the web as I have been struggling through this can be found here.
Maybe I just don't understand the model of runat server terribly well. It appears the following code is always executing the if block. If the code is running on the server side I guess I can understand that it has to be s...
Hi
I want to compare rows of two grid views.GW1 and GW2.
When I click a Search Button ,I want to check the Values in the GW2,and if GW1 and GW2 have same PayID ,EmpID,then that specific row of GW1 must be disabled
Thanks
...
Hi all,
I need help in validating the destination account no while transferring the balance from one account to another account. I have written the code but not getting exact output. Here is my code,its bit lengthy pls read out this code and point me out where is my mistake.I have written this inside the session handling.
protected void...
Hi there,
Does anyone have any recommendations for CAPTCHA components for use in ASP.NET projects?
Cheers!
...
Hi all,
I am fairly new to asp.net and come into a problem whilst using a gridview.
I have added some entries that contain the "&" symbol eg "PR Murphy & Associates".
I haven't done any encoding of my data prior to inserting it into the database.
When the gridview is changed to edit mode my text looks like this: "PR Murphy & Associate...
Hi,
I would like to ask you guys cause I am not sure about the answer.
I have website, Asp.Net 2.0, where I have section where only authenticated user has access. For sure user is redirected to restricted section only after successful authentication (login/pass). But my question is more concerned about fact if I need to use https o...
I can't find a good article that solves my following issue, so if anyone has the answer or just a link to the answer I would be happy.
Let's say I have created a UserControl called MyUserControl.ascx
I reg it in ascx with prefix uc
<uc:MyUserControl runat="server" id="uc_test" SomeProperty="true">
<InnerContent>
...
Controls added...