Click here to Skip to main content
16,009,255 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Script manager in masterpage Pin
Abhijit Jana25-Sep-08 17:04
professionalAbhijit Jana25-Sep-08 17:04 
Questionstoring data in cache [modified] Pin
geekfromindia25-Sep-08 13:14
geekfromindia25-Sep-08 13:14 
AnswerRe: storing data in cache Pin
Abhijit Jana25-Sep-08 17:07
professionalAbhijit Jana25-Sep-08 17:07 
QuestionSet 100% height for divs [modified] Pin
AlexeiXX325-Sep-08 13:02
AlexeiXX325-Sep-08 13:02 
AnswerRe: Set 100% height for divs Pin
Steve Echols25-Sep-08 17:59
Steve Echols25-Sep-08 17:59 
QuestionAutocomplete textbox issue Pin
enthusiastic47725-Sep-08 10:43
enthusiastic47725-Sep-08 10:43 
AnswerRe: Autocomplete textbox issue Pin
Prasanna Kumar Pete25-Sep-08 17:46
Prasanna Kumar Pete25-Sep-08 17:46 
GeneralRe: Autocomplete textbox issue Pin
enthusiastic47726-Sep-08 4:55
enthusiastic47726-Sep-08 4:55 
GeneralDataGrid EditItemTemplate Problem Pin
Brady Kelly25-Sep-08 7:21
Brady Kelly25-Sep-08 7:21 
GeneralRe: DataGrid EditItemTemplate Problem Pin
NeverHeardOfMe25-Sep-08 10:12
NeverHeardOfMe25-Sep-08 10:12 
GeneralRe: DataGrid EditItemTemplate Problem Pin
Brady Kelly25-Sep-08 10:31
Brady Kelly25-Sep-08 10:31 
GeneralRe: DataGrid EditItemTemplate Problem Pin
NeverHeardOfMe25-Sep-08 11:01
NeverHeardOfMe25-Sep-08 11:01 
QuestionEnable Profile in web app Pin
acroitoriu25-Sep-08 4:55
acroitoriu25-Sep-08 4:55 
AnswerRe: Enable Profile in web app Pin
acroitoriu2-Oct-08 21:11
acroitoriu2-Oct-08 21:11 
QuestionListView - summing a column Pin
#realJSOP25-Sep-08 4:01
professional#realJSOP25-Sep-08 4:01 
AnswerRe: ListView - summing a column Pin
J4amieC25-Sep-08 5:34
J4amieC25-Sep-08 5:34 
GeneralRe: ListView - summing a column Pin
#realJSOP28-Sep-08 2:34
professional#realJSOP28-Sep-08 2:34 
GeneralRe: ListView - summing a column Pin
hutty22-Mar-09 11:38
hutty22-Mar-09 11:38 
Questionshowing data on a WebUserControl in DataGrid edit mode Pin
johland25-Sep-08 3:44
johland25-Sep-08 3:44 
Questionretrieve the file name from path Pin
varsh1225-Sep-08 2:23
varsh1225-Sep-08 2:23 
In a table, I have stored a following path
"d:\image\img\abc.jpg"
My requirement is I only want to print "abc.jpg"

I use datalist, and in datalist i take LinkButton from toolbax.
I use following queryin asp.net. but this code does not work.

protected void Page_Load(object sender, EventArgs e)    
{
 string s = "select * from image"; 
SqlDataAdapter da = new SqlDataAdapter(s, con);       
DataSet ds = new DataSet();
da.Fill(ds, "a");
string ph = null;  
string ab = null;
 ph = ds.Tables[0].Rows[0]["img"].ToString();       
 ab = Path.GetFileName(ph);       

 dlTiff.DataSource = ds.Tables["a"];
 dlTiff.DataBind(); 
}

please solve it
thanks in advance
AnswerREPOST IGNORE Pin
J4amieC25-Sep-08 3:25
J4amieC25-Sep-08 3:25 
GeneralRe: REPOST IGNORE Pin
varsh1225-Sep-08 18:21
varsh1225-Sep-08 18:21 
GeneralRe: REPOST IGNORE Pin
J4amieC25-Sep-08 22:30
J4amieC25-Sep-08 22:30 
GeneralRe: REPOST IGNORE Pin
varsh1225-Sep-08 23:57
varsh1225-Sep-08 23:57 
Questionnext button doesn't work after 2 page in crystal report Pin
amitajain00825-Sep-08 2:20
amitajain00825-Sep-08 2:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.