It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have added a new field to the standard aspnet_Membership table.
Now that it's added, how do i get or set this field by UserId?
Delete, plese.(5-8-2013)
You should not change default membership table . Instead use profile fields. Following articles will help .
http://weblogs.asp.net/scottgu/archive/2005/10/18/427754.aspx
http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx
I don't recommend to use the profile features due it have a way too dirty to store the data. Only if you need just one or two more fields, it may have sense.
Anyway, you need to attempt to document yourself a little more before ask this kind of questions...
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a sql query that should return results for user text (Like free text search)which can be a single character or word or combination of words.
For example if I have column named "subject" and its value is Very long test, then I want a query that can give result if I put test or t or `e'in the query below
select Subject from [dbo].[Email] where Contains(Subject,'%usertext%')
I tried handling in code behind and then sending it to the query as parameter.
am editing this question because of so many down votes. Please if you dont understand the question simply comment so I can try to ask more clearly. That would be helping me.
You don't need the % character, since the function Contains already implied that.
So :
select Subject from [dbo].[Email] where Contains(Subject,'t')
The % are for LIKE function
select Subject from [dbo].[Email] where Subject LIKE '%t%'
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have created a Stored Procedure with the name getRecords 1 month ago,
I want to edit that Stored procedure getRecords ,
Please tell me how to modify the Stored procedure
You can use CREATE OR REPLACE PROCEDURE. See here, for example.
Use CREATE OR REPLACE instead of simply using CREATE
To display old procedure see the USER_SOURCE table.
go to the sp and right click - modify
then change the
**create getRecords -> alter getRecords**
what database system?
if mssql then the syntax for it is here:
http://msdn.microsoft.com/en-us/library/ms189762.aspx
So you would do something like
ALTER PROCEDURE schemaname.procedurename ...
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I create an one webpage in asp.net all the time i am facing the following pbm how to rectify it..
if(ds.Tables[0].Rows.Count > 0)
Maybe you need to check that ds.Tables[0] exists first
If you are constantly checking on your pages to see if that dataset has a table with rows, I would think you would want to make some helper class to check that your dataset is not null, and that whatever tables have actual rows. Also you might want to think about moving these to typed datasets.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
asp.net mvc module wise approach or different controller and repository for each table approach is better?
Could you elaborate on your question? I think I understand... I like creating a repository for each table in a LINQ-to-SQL or entities model, for instance. I think that helps group together related logic.
HTH.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
explain session type =sql server'
That allows session data to be stored in SQL Server. See this knowledge base article for a fuller description of the procedure.
It's used to determine where you store your session variables, in this case a SQL Server.
You can read more about it here.
EDIT: And even more here.
Here is a nice article about Exploring Session in ASP.Net. Have you ever used Google? We are more than welcome to help newbies but questions in this format is not encouraged ;-) Please explain more about your requirement.