Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > ASP.NET 4.5.1 General Discussion
|
ASP.NET 4.5.1 General Discussion For ASP.NET 4.5.1 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5.1 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 27th, 2015, 05:36 PM
Registered User
 
Join Date: Aug 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default UserName Session variable Asp.net Grid View not working

Dear all ,

First, I am very glad to be a member of this forum from today and I hope to gain knowledge from other experts here .

My problem is ,whenever I set Username as session source in gridview with a where clause and Sql expression [UserName] = @UserName .Nothing is displayed .Data is inserted in my Sql 2012 management studio database without any problems after querying the table .

My aim is to allow users to view only their information in grid view without seeing others .I have tried setting Session variable Username in load page ,but still the problem persists .

I would be very grateful for any assistance rendered.Many thanks in advance.
 
Old September 11th, 2015, 04:53 AM
Registered User
 
Join Date: Jun 2015
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Refer the following :
http://www.codeproject.com/Questions...Select-command





Similar Threads
Thread Thread Starter Forum Replies Last Post
ch 16 - p.596 - Checking the Existence of an ASP.NET Membership Username with ASP.NET Tulsi BOOK: Beginning ASP.NET 4 : in C# and VB 14 March 20th, 2014 02:27 PM
Assign Session variable from view or controller Alaphat ASP.NET 2.0 Professional 2 April 11th, 2008 09:37 AM
Grid View in ASP.NET 2.0 Using C# dhurjati_sen C# 2005 0 August 30th, 2007 11:44 PM
How to share Session variable between ASP.NET ergaurav.nex General .NET 0 December 21st, 2006 02:35 AM
Session variable Loss - asp.net gala1 VS.NET 2002/2003 1 January 24th, 2005 02:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.