TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anjali Khan
NA
867
224.4k
how to get value when display data in grid using dropdown in
Dec 8 2017 2:01 AM
hi frnds
how to get value when display data in grid using dropdown list
i am insert the data in data base using dropdown list using procedure .and this record dising in data base
but problem is here when displaying the data in grid it is showing id not value how to do this i am sending my procedure which is displaying data
i am sending my grid picture .here type and department taking id want want text like department name
ALTER PROC [dbo].[User_Display]
(
--@User_Id int =null,
@Name varchar(50)=null,
@PageIndex INT = NULL,
@PageSize INT = NULL ,
@RecordCount INT OUTPUT
)
AS
BEGIN
BEGIN TRY
SET NOCOUNT ON;
-- if(@User_Id !=1)
BEGIN
SELECT Name,UserName,Email,Designation,User_Type,Department,Status
FROM tbl_Mst_User_Diary
-- WHERE User_Id=@User_Id order by Name desc
END
SET NOCOUNT OFF;
END TRY
BEGIN CATCH
exec sp_error_handler
IF @@TRANCOUNT>0
ROLLBACK
RETURN -101
END CATCH
RETURN 0
END
Attachment:
griddetails.zip
Reply
Answers (
3
)
ASP.net mvc or ASP.net core
Displaying Images From Database to Gridview with Parameter