5
Answers

Problem with gridview to display data from database

Resmy Ravi

Resmy Ravi

12y
3.1k
1
Hi..

In my asp project,i have used gridview to display data from database.I need to retrieve the data.One cell conatins data like 'A & B'.i.e data contains '&' symbol.But when i retrieve the data.I get the result as 'A &B'.So i cannot retrive the data from databse.How to solve this...I have used the code string a=gridview1.selectedRaw.cell[1].text.
Answers (5)
2
Thiyagarajan E

Thiyagarajan E

NA 1.1k 6.8k 8y
I found the Solution:
Finf the Report web config in the below path :
C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportManager\web .config
Replace or add below line: to set admin credential for all users to access the report.

<authentication mode="Windows" /> // Authentication mode to be set to windows

<identity impersonate="true " userName="UserName" password="Password"/> // identity impersonate to be set to true and User name & Password of the SQL Server administrator should be added.