1
Answer

getting error in relative path while converting gridview dat

Im trying to convert gridview data to pdf..
in database i have used, relative path for storing images.
while converting, it shows,
error:
Could not find a part of the path 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\images\1.jpg'.
kindly help me...
suppose if i have used absolute path for storing images means, its wrking fine...

Answers (1)

0
Photo of Nanhe Siddique
NA 3.4k 110k 9y
0
Photo of Shuvojit Halder
NA 1k 10.4k 9y
Your sql query will be like that
 
 
select COLUMN_NAME,ORDINAL_POSITION from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='Subject'
 
 
 
then you bind the result in your dropdown.