15,917,454 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10546331 (Top 18 by date)
Member 10546331
26-Jul-21 6:04am
View
not able to write it in linq join condition giving error of not found
Member 10546331
30-Jun-14 5:22am
View
solved the prob ....thanks for giving solution to the first prob
Member 10546331
30-Jun-14 5:09am
View
document.getElementById(target).disabled = true;
Getting error in this line
Microsoft JScript runtime error: 'document.getElementById(...)' is null or not an object
Member 10546331
12-Feb-14 7:33am
View
there is a master page and on that master page i want to make admin tab invisible if any user logged in as a user....
Member 10546331
12-Feb-14 0:01am
View
the problem is even after entering valid user those are in activedirectory it is showing invalid username and in list count is equal to 0 which should be equal to 1.
Member 10546331
11-Feb-14 2:24am
View
thanks...it worked....
Member 10546331
11-Feb-14 1:21am
View
protected void BindManageUserRoleGrid()
{
List<manageuserrole> listForManageUserRole = new List<manageuserrole>();
IManageUserRole imanageuserrole = new ManageUserRoleImplementation();
if (ViewState["ManageUserRolelist"] != null)
{
listForManageUserRole = (List<manageuserrole>)ViewState["ManageUserRolelist"];
}
else
{
listForManageUserRole = imanageuserrole.GetAllManageUserRole();
ViewState["ManageUserRolelist"] = listForManageUserRole;
}
GridView1.DataSource = listForManageUserRole;
GridView1.DataBind();
}
Member 10546331
11-Feb-14 1:21am
View
protected void BindManageUserRoleGrid()
{
List<manageuserrole> listForManageUserRole = new List<manageuserrole>();
IManageUserRole imanageuserrole = new ManageUserRoleImplementation();
if (ViewState["ManageUserRolelist"] != null)
{
listForManageUserRole = (List<manageuserrole>)ViewState["ManageUserRolelist"];
}
else
{
listForManageUserRole = imanageuserrole.GetAllManageUserRole();
ViewState["ManageUserRolelist"] = listForManageUserRole;
}
GridView1.DataSource = listForManageUserRole;
GridView1.DataBind();
}
Member 10546331
11-Feb-14 0:26am
View
ALTER PROCEDURE [dbo].[usp_GetUserRole]
@UserName varchar(100),@msg varchar(100) output
AS
declare @countusername int
BEGIN
begin tran
select @countusername = COUNT (*) from tm_User where UserName = @UserName
if(@countusername = 0)
begin
select @msg = 'User does not exist'
end
else
select UserRole from tm_User where UserName = @UserName
COMMIT TRAN
full sql code
Member 10546331
10-Feb-14 10:35am
View
still it is not returning any role...
Member 10546331
10-Feb-14 8:36am
View
thanks it worked...bt i want userrole to be returned ...my stored proc is
ALTER PROCEDURE [dbo].[usp_GetUserRole]
@UserName varchar(100),@msg varchar(100) output
AS
declare @countusername int
BEGIN
begin tran
select @countusername = COUNT (*) from tm_User where UserName = @UserName
if(@countusername = 0)
begin
select @msg = 'User does not exist'
end
else
select UserRole from tm_User where UserName = @UserName
COMMIT TRAN
END this is my stored procedure
Member 10546331
10-Feb-14 8:09am
View
ALTER PROCEDURE [dbo].[usp_GetUserRole]
@UserName varchar(100),@msg varchar(100) output
AS
declare @countusername int
BEGIN
begin tran
select @countusername = COUNT (*) from tm_User where UserName = @UserName
if(@countusername = 0)
begin
select @msg = 'User does not exist'
end
else
select UserRole from tm_User where UserName = @UserName
COMMIT TRAN
END this is my stored procedure
Member 10546331
10-Feb-14 7:59am
View
Object reference not set to an instance of an object.
Member 10546331
10-Feb-14 7:55am
View
string outPutValues = prm[1].Value.ToString();
Member 10546331
10-Feb-14 7:54am
View
yes string outPutValues = prm[1].Value.ToString(); this line
Member 10546331
10-Feb-14 7:53am
View
string outPutValues = prm[1].Value.ToString();
Member 10546331
10-Feb-14 7:53am
View
string outPutValues = prm[1].Value.ToString();
this line is giving the error
Member 10546331
10-Feb-14 7:52am
View
string outPutValues = prm[1].Value.ToString();
this line is giving the error
Show More