Hi, thanks for your time.
I have 2 almost identical asp.net (vb) applications. 1 Development and 1 Production.
They use forms authentication that is configured to run in SQL server. Both apps use the same aspnetdb database but have different application names.
The problem I have is:
I have an Identical login for each app (same username, same password), but If I change profile information for that user...
User Profile
Collapse
-
Forms Authentication, 2 Applications sharing 1 Login ?
-
sqlDataSource... do I need it ?
Hi, and thanks in advance for your time.
I recently made the move this year to asp.net (vb) from classic asp.
To help get me started, I bought a book based on version 1.1 as I didn't know any better.
When talking to databases I am generaly using Stored Procedures with sqlCommands and DataReaders or maybe the odd DataAdapter etc....
My question is:
Is what I'm doing an outdated approach.... -
Thanks Frinny, when I first read your reply I thought you must have not read my post properly and missed the fact the my gridV was nested.
I tried manually writing the Sub as you sugested and got the following error:
BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
So I removed the Handles clause and manually set OnRowEditing=". .. (as... -
Event handling for Nested GridView
I'm using ASP VB.net and have a GridView inside a DataList EditItemTemplat e. I want to be able to select/edit items in the nested gridview.
The GridView is correctly showing child records, but when I click the Edit button I get:
The GridView 'gvStagePayment s' fired event RowEditing which wasn't handled
I have know idia how to create this handler??
Is this possible... I have found some examples... -
At the moment the Master page has 2 columns. 1 UpdatePanel/UserControl in each. I did try puting both UC's in 1 UdtPnl and repositioning 1 of the UC's using css position:fixed. What I learnt there was that CSS will only position the content of a placeholer within that place holder. If you try to position beyond that placholder (ie: over the right column from the left hand column) it just gets croped and wont display. Probably obvious to you experienced...Leave a comment:
-
OK, I'll try to explain...
I have a master page with 2 ContentPlaceHol ders. 1 of these ContentPlaceHol ders has a gridview. When you click an item in the gridview. Using javascript, this puts a value in a texbox in the master page and clickes a button which triggers the update panels (1 in each contentplacehol der).
I would like either:
the user controls in the update panels to access the value in the textbox on the master...Leave a comment:
-
Thanks Frin, but what about the UpdatePanel?...
I've tried everything (in my very limited arsenol), but just cant get info in or out of that usercontrol INSIDE the update panel ??Leave a comment:
-
Some kind of response here would be good. Everytime I work around this problem it raises it's ugly head again.... it must be doable??
Pleeeaaase, someone throw me a bone??Leave a comment:
-
I've spent all weekend and much of last week googling this one... I think Interface Layer is a bit of a broad subject for my specific question ??
I have worked around this now by doing away with the user control and just coding it in the update panel, but I would still like to know the answer if anyone can help ??
Thanks
TimLeave a comment:
-
Master / ContentTemplate / UpdatePanel / UserControl
asp VB.NET
How can I pass a value to my user controls in the example below From the Master Page?... it's driving me nuts!
The scenario:
Code:<MasterPage> <UpdateTrigger/> <ContentPlaceHolder 1> < asynch UpdatePanel> <UserControl 1/> </ asynch UpdatePanel> </ContentPlaceHolder> <ContentPlaceHolder 2>
-
Save Profile Property Info for a specific user.
Hi. I want administrators in my intranet application to be able to create new users and save Profile information (such as FirstName, LastName etc.) without having to login as that user.
I can save profile properties for the currently logged in user like so:
Profile.SetProp ertyValue("Firs tName", firstName.Text)
But how can an administrator do this for an account they are not logged in as?
Is this even posible... -
OK, I have made progress on this subject.
To retrieve sprecific user information (logged in or not):
Code:Profile.GetProfile("Tim").FirstName
Code:Membership.GetUser("Tim").Email
Leave a comment:
-
when a user saves a comment to an enquiry record in the database, I want to save a reference(prima ry key?) to that user along with it so that i know who did it. Obviously i wouldn't want to save the user name, telephone number and email address each time a user makes a comment.
So when i display a report that lists changes made to the database I need to be able to get the user name and email etc based on the user reference I saved....Leave a comment:
-
Thanks Frinny. I found a really good set of articles hear, which has given some great examples of what can be done with regard to security. I also just took a look at the video link you provided. Very good, thanks. But...
... at the moment I'm more interested in being able to retrieve user information such as user name (not login name) and email address for example, but not necessarily for the currenty logged in user. I want to show...Leave a comment:
-
User Roll & Security
Hi, and thanks for your time.
Using vb.net
I'm new to .net, recently moved from classic asp!
I'm creating an intranet web application that needs to keep a log of user activity.
What I would have done in classic ASP is to store the user ID from my user table in any new records. Then I could drill down from that as needed. But now with .net and its incorporated security features, I dont see how this approach is... -
OK, it is becoming apparent that relating ado datatable is not going to work for me here.
It has just occured to me (duh) that rather than putting the filnames I find into an ado table I can just use them in a string to build an SQL statement to retreive my alias's right?
But, as I said, i was doing the related ado table thing as a learning excercise, so could someone please give me a good (simple) example of where...Leave a comment:
-
You are right in saying this can't be done at the query level.
The file/folder info is being done using the DirectoryInfo & FileInfo methods and filling an ado datatable with what it finds.
I took this approach so that it will only ever list files that actually exist AND because I thought it would be a good learning execise.
If nothing else I may have learned that this is not a good approach :)....Leave a comment:
-
Thanks Frinny, but as far as I can tell, a data view manager is for hadling Sorting and Filtering for multiple DataTables but they still dont help with combining tables as a join in a database query would. :(
Just to clarify what I'm trying to achieve here.
SIMPLIFIED:
I have an ADO DataTable that contains a list of Image Files found in a specific folder.
I have another ADO DataTable that contains a list of Alias's...Leave a comment:
-
Hi Frinny, thanks for your reply, but i think you may have slightly misunderstood me.
Both of the DataTables I have are ADO.NET tables in the ASP.net application itself as one of the tables is derived from the filesystem. So if I am to create a query to bring this data together, it needs to be done in the application and not a database using ado.net.
My intension here is really to get my head around what I can and cant do...Leave a comment:
-
Query a dataset for binding (ADO.NET)
Hi all and thanks for looking.
I need to make the move from ASP to ASP.NET, and as my sister has aked me to knock up a website for her, I thought this could be a nice starter project to help me learn.
The site displays thumnails of images she will upload. Each file needs some information stored in a database about it. In classic asp I would have created a list of images and realated info within a database and driven the...
No activity results to display
Show More
Leave a comment: