I'm building several user controls (ASCX) for my website and several of them are very similar in what they do. (As a side note, I must create unique UC's even if they're similar because I'm creating widgets for the new Telligent Community themeing system). For example, two of them are different but use the same front-end code to create a 2 or 3 tab panel where you can click a tab and it changes the data below. I have a single JS file to handle these tabs and the animations. I'm currently dynamically adding my JS file reference to the <head> from the user controls' code via:
I have Membership, Profile and Role providers setup for my .NET MVC website. I would like to say: this Role has access to that Page. How do I 'inject' this code to the RoleProvider? Or do I have to override it somehow? Any leads?(Roles are stored in the default ASP.NET SqlRoleProvider, Pages are stored in a seperate SQL database).
I need to check if an authenticated user is authorized to access a directory. I have done this before with a base class library method, I just cannot remember what class it's part of or what it's name was. I think the method was a static method and the class may have had the word Utility in it's name, but I just can't remember or find it on the net. BUT I KNOW I HAVE USED IT! The method definition was something like:
I have a VB.NET VS2010 solution with a WinForms project that calls a web site project in the same solution. I can step into this web method: <WebMethod()> Public Function GetStartUpData() As DataSet and other web methods, but not the following method. I wonder if it has to do with the fact that that is the only web method that uses a parameter of Nullable type. The method works, I just can't step into it .If I try, I get the error: Unable to automatically step into server. unable to determine a stopping location
<WebMethod()> Public Function RetrieveOrdersByFilter( _ ByVal customerId As Nullable(Of Integer), _ ByVal fromDate As Nullable(Of Date), _ ByVal toDate As Nullable(Of Date), _ ByVal fromStatusCodeId As Nullable(Of Integer), _ ByVal toStatusCodeId As Nullable(Of Integer)) As DataSet
In my ASP.Net application I have several pages that provide a list of items from the database. Currently we are using an UpdatePanel to refresh the whole list on a certain interval so that changes from other users will be propagated the screen. Obviously this isn't very efficient and we don't think it will scale well.What are some other methods for accomplishing this. Is there a specific pattern for addressing this issue?
I'm using Forms authentication in my application but I'm not using the Membership that's built into .NET.
How do I automatically send user to login page when his/her FormsAuthenticationTicket expires? I just don't want a user log in and leave a page on their computer screen long after their session has expired. I'd like to make sure that as soon as the user's FormsAuthenticationTicket has expired, I send them to login page.
I've got a web site that has a master page and that master page (mpMaster that has a user control ucControl1) which has a sub user control (ucControl2), this user control has a property which accepts a value. Now, I have a page that uses the master page and on this page I have another user control (ucPageControl), I need to find a way of setting the value in ucControl2 from ucPageControl. Is this possible at all?
have two user controls on one aspx page. UC1 has a grid which contains a link button column which user clicks. Based on the value of clicked cell, I need to show some data into UC2.How do I pass data from UC1 to UC2? How do I invoke a function of UC2 from UC1?
It's simple to create both user control from the two world : ASP.NET+Razor or MVC 3.0.But i do not known how to consume the user control FROM the razor"_layout.chtml" page.I want to put such thing within the layout page: <uc:MyTag Prop1="" Prop2="" />So i need to declare this directive at top of the layout file : <%@ Register TagPrefix="uc" TagName="MyTag" Src="Controls/Mytag.ascx" %>
I am trying to create a web page, that use a user-control (the user control is win-form).I am getting the message : That assembly does not allow partially trusted callers.I put the dll on c:windowsassembly, but I don't know why I getting the above.Here is my code
I created timecard for a website and I would like to automatically clock out the user everytime when user logout or close the website. Is there a control for that? And if yes, where do i have to put he code at?? I think it should be in the code behind of master page... and on the Page_Load function
I facing a problem here. how can I make the create user wizard category all the new user become normal user role? I have created 2 role which is Manager and Normal User. Normal User can't view the Manager page. But after i create a new user account, i can view manager and normal user page. I want to make all the new member registration will be normal user role?