Search

You searched for the word(s): userid:701346

Matching Posts

  • Re: Two Connection strings

    Hi, I think you can do it in the code behind. Just do a try and catch block. I think you can define the time in the web.config file on how long to try to open a connection. I think something like this: <add name="DefaultConnectionString" connectionString="Data Source=(local);Initial Catalog=MyDatabase;Persist Security Info=True;User ID=admin;Password=pass123;Connect Timeout=500;" providerName="System.Data.SqlClient"/> Then in the code behind: try { SqlConnection
  • Re: Number of configuration files

    Yo wouldn't need web.config in the AppCode folder? why do need it there anyway???
    Posted to Configuration and Deployment (Forum) by Mehdi6002 on 7/21/2008
  • Re: Masterpage always showing Anonymous Template from LoginView

    Well, I just want to say I wouldn't do it this way. Make it simpler, put all your admin pages inside a folder in the the root. Create a folder call Admin put all admin pages there, and protect that folder that only admin can access to the files in that folder, that is way easier and faster. To secure that folder add a web.config to the admin folder and add the following lines of code to the web.config file: 1 2 < configuration > 3 < system.web > 4 < authorization > 5 < allow
  • Re: Modifying the asp.net default membership provider

    Hello, The ASP.NET membership and roles tables come with a profile and application table. You can use the profile table for your per website specific data. The application table basically define each site or application that you have. For example in the application table you have the website1, website2, website3. So as there is a relationship between the application and profile, then if you store something in the profile table you would know that it is for what website. Then also you can have one
    Posted to Security (Forum) by Mehdi6002 on 7/18/2008
  • Re: Number of configuration files

    Hello, I think you have 1 web.config in each folder. For example 1 in the main root and one in the Admin folder which can be used to restrict the access permision on that folder. for example: 1 2 < configuration > 3 < system.web > 4 < authorization > 5 < allow roles= "Administrator" /> 6 < deny users= "*" /> 7 </ authorization > 8 </ system.web > 9 </ configuration > Now if you want to have a folder in your website that has a web
    Posted to Configuration and Deployment (Forum) by Mehdi6002 on 7/18/2008
  • Re: How to get Guid value from database?

    Hello, The way I have it done is I have the uniqueidentifier as an output parameter in my store procedure, something like: create proc SampleProce ( @username varchar(200), @userID uniqueidentifier OUTPUT ) AS Begin select @userID = userID from users Where @username = username End -------------------------------- Then in my code I have it done this way: 1 Guid userId; 2 SqlParameter userIdParam = cmd.Parameters.Add( "@userId" , SqlDbType.UniqueIdentifier); 3 userIdParam.Direction = ParameterDirection
  • Re: how to get storedprocedure return value?

    Hello, I would recommend one of these 2 methods: Use Output parameter Use Select in store procedure I think the best way is the output parameter, change your store procedure to : Alter procedure GetUserById ( @UserID uniqueidentifier, @IsValid bit OUTPUT ) set @IsValid = 0 IF EXISTS(SELECT * FROM User WHERE UserId = @UserId) Begin set @IsValid = 1 End Then in the C# code: private bool ValidateUser (Guid id) { private bool isValidUser = false; SqlConnection conn = new SqlConnection(System.Web.Configuration
  • Re: Creating permanent link in C#

    Hello Tom, I think what you want is to create a folder for each user account. Now if you have 4, 5 clients yes you create them manually yourself, but if there are more then you do it programmatically. Have a look at System.IO and available classes that can help you to do that. If you have 1000 of clients I don't think it make sense to create 1000 physical folders for each rather you route them. You can have a look at MVC controls taht might help you and give you a btter picture: http://www.asp
    Posted to Web Forms (Forum) by Mehdi6002 on 7/4/2008
  • Re: It's a nightmare !

    Hello, I gave up myself and started to use Business Intelligence and Reporting Service (SSRS). But I gave that up too and now using Telerik Reporting. It is very good. (www.telerik.com) Try the demo 60 days and you would like it. The only thing is there is no table but other than that it is very powerful and you have the full control of everything.
    Posted to Crystal Reports (Forum) by Mehdi6002 on 7/1/2008
Page 1 of 10 (98 items) 1 2 3 4 5 Next > ... Last »