.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

How to avoid Multiple log in for same user

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :ASP.Net
 
how to avoid multiple log in for one user at a time?


View Complete Post


More Related Resource Links

Multiple Instances of User Control

  

I have a user control that I place on a page severl times.  When I make a selection on a ddl in one one control the SelectedIndexChanged event fires for all the control on the page for that ddl.  So I get duplication of an insert that I do.  Is there a way to make sure these events are isolated so this doesn't happen.

Thanks,


User control with multiple item content

  
I have a user control that I would like to contain multiple items as its content, similar to the way a <StackPanel> works. I tried using a <ContentPresent/> but it will only let me use a single item as the control's content. What's the best way to go about this? I realize I could just require the user to put a <StackPanel> or <Grid> or similar control as the content of the user control, but i would rather not do that if possible.   I'm not sure if it matters, but this control actually has several content presenters. Some of them will contain a single item and some will contain multiple items.

Multiple Instances Same User Control

  
I have an ASP.NET page inside of an ASP.NET Master page, and inside the page I have two instances of the same web user control. I have given them different IDs, but when I click a button on the first user control it causes the second user control to do the expected activity and the first one does nothing. Is there something I need to do to make sure that the controls don't get confused? P.S. The expected activity is that when the button is clicked one panel object is disabled and another is shown. When the button is clicked on custom control 1 the panel on custom control 2 is disabled and it's next panel is shown and custom control 1 does nothing. Thanks for the help. 

Multiple instance of User Control on Page - Button Click Event

  
Hi, I have this Web User Control, with 3 controls:<asp:TextBox ID="txtSearch" runat="server" /> <asp:RequiredFieldValidator ID="rfvSearch" runat="server" ControlToValidate="txtSearch" Display="None" /> <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click" /> In code behind: protected override void Render(HtmlTextWriter writer) { rfvSearch.ValidationGroup = this.ID + "_validation"; txtSearch.ValidationGroup = this.ID + "_validation"; btnSearch.ValidationGroup = this.ID + "_validation"; base.Render(writer); } protected void btnSearch_Click(object sender, EventArgs e) { Response.Redirect("ResultadoSearch.aspx?argumento=" + txtSearch.Text); } When I try to add two UserControl and I Click in btnSearch of second UserControl, txtSearch.txt returns value of first User control.How I can get the value of second txtSearch?

Need a good solution on how to allow a user to upload multiple files

  

Hi
Im currently working on a project where i have a form that users fill out in order to submit issues.
My ask is to give the user the ability to upload multiple files together with the form submission and also go back each time they have an update and upload more if they need.
The way i have it right now is that i only have one FileUpload Control and once the Save button is clicked the file is save in the database together with the form info.

 I already has a separate table for the files with reference to the ticket but im just not sure how can i allow the user to submit as many files as they want in an easy way.

Any ideas?


DataAnnotation on multiple user controls displaying on wrong control

  


I have a table that displays a user control on each row. The user controls are strongly typed to a viewmodel which contains DataAnnotation style validation. If one of the rows has invalid data entered (lets say the 3rd row) the data annotation validates display agains the first row/user control.

How do I get the data annotation to show against the relevant user control?

I'd post a pic to show what I mean except it will not display it!.:/



How to save a multiple user control to a few single record text?

  
I have a list with people pecker control that admits multiple users.
I like to have another list with one record for each user in the control that loaded before.
Is there any way in InfoPath or in a workflow to use something like FOR EACH to take one by one user in a control and write/update records after that?
Thank in advance
Ramiro

Is it possible to preserve viewstate when the user opens multiple browser tabs?

  

I want my users to be able to open multiple browser tabs and be able to switch back and forth between them.  If Viewstate is saved for each page, I should be able to do this right?


Thanks,


Sam




SPSWC:ProfilePropertyValue and multiple values user properties

  

Hi, I'm trying to customize the profile.aspx page in My Profile (SP 2010). All works fine except for the fact that I can't see the values of the user properties configured as multiple-value fields.

I'm using spswc:ProfilePropertyValue and what I get is a list of value separator (comma or semicolon, as configured in the user property) without values.

Do you know how to display multiple value user properties?

Thank you
Riccardo


How to avoid (Preventing) Multiple Logins in ASP.NET

  

i need a help

for  avoid (Preventing) Multiple Logins in ASP.NET


How to use Multiple masterpages depending on the user permission

  
Hi, I am having Two master pages in sharepoint 2010 RTM enterprise

one mastepage has to be load when site admin has logged in\

other masterpage has to be load when 'other than'  site admin is logged in

For doing this req,I created feature activated event i done through this object model.


But this is working only when feature activated(1 time only).Not based on the logged in user


If i deactivate and activate again it will start working(load mastepage) one time only.
As I know, feature  will perform the action .once the site is open then it will start.

As per my requirement Before page loads my code has to work.


I also created Httpmodule,written Init method,but it also not working....Is there any other procedure i need to follow for doing this.Please help me.

How to use Multiple masterpages depending on the user permission

  
Hi, I am having Two master pages in sharepoint 2010 RTM enterprise

one mastepage has to be load when site admin has logged in\

other masterpage has to be load when 'other than'  site admin is logged in

For doing this req,I created feature activated event i done through this object model.


But this is working only when feature activated(1 time only).Not based on the logged in user


If i deactivate and activate again it will start working(load mastepage) one time only.
As I know, feature  will perform the action .once the site is open then it will start.

As per my requirement Before page loads my code has to work.


I also created Httpmodule,written Init method,but it also not working....Is there any other procedure i need to follow for doing this.Please help me.

Using same user store for multiple apps

  

I have spent hours on the forum trying to find this answer.  I have a requirement on a project.  There is an internal (intranet employees only) site which has much more control over the data etc.  and i have an external site (to allow customers to enter usage data).  I am using forms auth and hitting a common sql server 2008 db with the standard aspnet schema.  I have an internal web server and an external web server both windows 2003.  The problem that i am having is that if you are logged into the external site and then open a new ie window and enter into the internal site, even as a different user it logs you out of the external and vice versa.  I don't have access to update the machine config. 

I started out as a single app in the db but now have seperated into 2 apps and i am able to log in as an external admin and see only the external users and vice versa.  Creating a seperate security only db for the external app is not an option because i have a  

I have the application name listed in the web.config for both internal and external which matches the app name in the aspnet_applications table.

external app

            <roleManager enabled="true">
            <providers>
                <clear />
                <add 

How to handle multiple user

  

Helllo i am working on web application the problem i m facing is that if a user access saleorder form i goto database and get Max SID from saleorder table and increment in it, and when user finish i sent this id Saleorder table and other info as well as same SID to other 2 tables but the problem is that if multiple users access at samee time how can i manage SID there wil be id conflict as SID is PK in SaleOrder and FK in other two tables plz plz plz help me regarding this problem


avoid postback in multiple drodown list using ajax

  

i have 4 dropdownlist..state,district,place,product..where we have to select the product depend on state ,district ,place and product and there is search button for search particular product where iam using gridview to dipslay particular product deatails . i do not want to do auto past back eventfor page  when i select dropdownlist...i tried using ajax but still i cant get through..i tried this code but,,,,please helpme...how to use ajax for 4 dropdownlist & 1 button so that i can dispaly product deatails.....

<asp:scriptmanager id="ScriptManager1" runat="server">
                    </asp:scriptmanager>
                    <asp:updatepanel id="UpdatePanel1" runat="server">
                    <contenttemplate>
                    <asp:label id="Label1" runat="server" stext="STATE:" style="display:inline " mce_style="display:inline ">STATE:</asp:label>
                    <asp:dropdownlist id="DDLSTATE" runat="server" height="18px" style="position :relative; top: 6px; left: 2px;" mce_style="/position :relative; top: 6px; left: 2px;" autopostback="True" datasourceid="SDSSTATE" datatextfield="PUSTA" datavaluefield="P

Getting values from Multiple user controls

  

Friends,

I have a asp.net page where i had placed two user controls.When the asp.net page loads naturally the first user control loads and then then the second user control loads.There is a value in the page load event of the first user control.I need to get this value in the second user controls page load event.

Can someone help me with this problem.

Thanks and Regards

Ashvin


Multiple user access for files

  

Dears ,

 

I am building a web-application that uses xml files to send them to Web-Services , and the application will be used by alot of users i have the files in my directory , and before continueing development I was thinking about when several users will use the same xml file at the same time knowing that , the users will have to ( read , write ) on these files , so if one user is writing on the file and another one will read from it we will have a bit confilict here . Please advice urgently .

 

 

I thought of copying the whole xml file TEXT and placing it as a string in the application but if i have to use like 10 xml files this will be a big performance issue i guess.

 

 

Thank you.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend