Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:767983
More Search Options
RSS Available
Matching Posts
Re: Adding StoredProcedure to a membership object?
Hi, Thanks for your reply, but ever mind - I have solved that. What I was looking for is to add a method to the Objectdatasource which used the Membership class. In membership I don't have a custom method which I can use. I solved it by creating a class CustomMembershipProvider which inherits the sqlmembershipprovider, there I just added the methods which I wanted - claaing my custom SP's for filtering. Thank you anyway:) Have a nice day.
Posted to
Data Presentation Controls
(Forum)
by
Tengo
on 9/25/2008
Adding StoredProcedure to a membership object?
Hi, I have a gridview. I use membership. By default all users are shown. Now I want to be able to filter the gridview by city. I have an ObjectDataSource for the gridiview. For the City filter - I have created a StoredProcedure - by my own of course. Can I somehow add it to the membership object so that it appears in the list of methods in the ObjectDataSource? Otherwise I will ahve to create a new datasource for the gridview in same page - doesn't make any sense right? Can I add somehow a custom
Posted to
Data Presentation Controls
(Forum)
by
Tengo
on 9/22/2008
Re: Simple sql statement problem.. Can't get it
Ok, I got it:) ALTER PROCEDURE dbo.GetUsersByCityID @CityID int AS SELECT u.UserName, m.Email, m.PasswordQuestion, m.Comment, m.IsApproved, m.CreateDate, m.LastLoginDate, u.LastActivityDate, m.LastPasswordChangedDate, u.UserId, m.IsLockedOut, m.LastLockoutDate FROM dbo.aspnet_Membership m, dbo.aspnet_Users u, dbo.City c Where o.UserName=u.UserName and o.CityID=@CityID and u.UserId=m.UserId ORDER BY u.UserName Yeeeessss:)
Posted to
Data Presentation Controls
(Forum)
by
Tengo
on 9/22/2008
Simple sql statement problem.. Can't get it
Hi I use membership in my app. I have the aspnet_Users table and another custom table containing the fields: UserName, CityName. Now I have to show all users from a certain city (which is typed in textbox..). How can I get all users detalis - from the aspnet_Users table, considering that I don't have any city field there but only in my custom table? In asp.net way, I can create a kind of arraylist and store everything there - all the datarows, but I need to solve it in the StoredProcedure level
Posted to
Data Presentation Controls
(Forum)
by
Tengo
on 9/22/2008
Re: Accessing profile properties - please help.
I have read these articles but didn't really understand what to do in my situation. For example I have to show some data in gridview. If the logged user is Inspector from region no 3 - then it will show only its records - so everytime when loging and showing different grids in the web's pages - I have to read the property (of region). Will that make my app too slow? (Because of the serialization and deserialization or whatever it is)? Or should I just create a seperate table of UserId and
Posted to
Security
(Forum)
by
Tengo
on 9/21/2008
Accessing profile properties - please help.
Hi, In my app I have a few roles. I use the asp.net membership and profile provider. The admin adds users, and he may choose their role. One of the roles is Inspector. An Inspecotr may be the inspector of a certain region. So as I choose the Inspector role (checkbox..) I must choose the ID of the Region - of which he wuill be an inspector. Now I have to save his RegionID somehow. Here I come to a confusion: If I save the RegionID into a profile Property called RegionID (I define it in the web.config
Posted to
Security
(Forum)
by
Tengo
on 9/21/2008
Re: How to get the Text Boxes in the Grid View
Hi, here are the reasons: The protected void GV_RowDataBound( object sender, GridViewRowEventArgs e) method isn't assigned to your gridview I assume, and the same with protected void GV_PageIndexChanging( object sender, GridViewPageEventArgs e). Go to the properties of your GridView, click on the orange lighting icon above so that it will show you the list of events of the GridView. Double click on the RowDataBound and on the PageIndexChanging events and it will open you those events in the code
Posted to
Getting Started
(Forum)
by
Tengo
on 9/12/2008
Re: How to get the Text Boxes in the Grid View
Yeah man!!!!!!!! Got it dude! Damn, that was a little complicated. Pay attention carefully to the code. Before using it, I must let you know that it is working for a GridView which has 2 fields in each row: lblID (not editable) and txtName (editable). But you can extend it for your use as well by adding just the fields text setting... Ok, here's the code: public partial class _Default : System.Web.UI. Page { protected void Page_Load( object sender, EventArgs e) { if (!Page.IsPostBack) { ArrayList
Posted to
Getting Started
(Forum)
by
Tengo
on 9/12/2008
Re: How to get the Text Boxes in the Grid View
What is that piece of code you wrote above? Is that working? (What you tried to do there?)
Posted to
Getting Started
(Forum)
by
Tengo
on 9/11/2008
Re: How to get the Text Boxes in the Grid View
Oh yeah that's a nice problem!! I think I know how to handle it - let me think a few minutes and I will give you a possible solution I think, but that will in about 1.5 hour because I must go now for a driving lesson, sorry. I will write as soon as I return from there.
Posted to
Getting Started
(Forum)
by
Tengo
on 9/11/2008
Page 1 of 22 (214 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Channel 9:
Ping 42: Is Microsoft cool? Photo DNA, Win7 tool, 10k MIX contest
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 1
Channel 9:
Francesco Logozzo - Static Checking with Code Contracts for .NET
Channel 9:
Channel 9 Live at PDC09: Doug McCuistion, NASA
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 3: Configuration
Channel 9:
Reading Debate with Bill Buxton
Channel 10:
Reading Debate with Bill Buxton
WindowsClient:
Build WPF Data Controls for Outlook Addins Easily with VS2010
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online