Click here to Skip to main content
15,896,453 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Questionfck editor problem Pin
UD(IA)25-Sep-08 1:31
UD(IA)25-Sep-08 1:31 
AnswerRe: fck editor problem Pin
Ashfield25-Sep-08 1:47
Ashfield25-Sep-08 1:47 
Questionprevent post back when menu item header is clicked Pin
_tasleem25-Sep-08 1:26
_tasleem25-Sep-08 1:26 
AnswerRe: prevent post back when menu item header is clicked Pin
Venkat Eswaran25-Sep-08 3:53
Venkat Eswaran25-Sep-08 3:53 
QuestionModel Window-Parent Window updation Problem Pin
John.G25-Sep-08 1:09
John.G25-Sep-08 1:09 
QuestionHow to integrate payment options/ details in Asp.Net Pin
Guvera24-Sep-08 23:46
Guvera24-Sep-08 23:46 
AnswerRe: How to integrate payment options/ details in Asp.Net Pin
NeverHeardOfMe25-Sep-08 0:18
NeverHeardOfMe25-Sep-08 0:18 
QuestionI need to access textbox in FooterTemplat of Datagrid Pin
Mr. Wonderful24-Sep-08 23:34
Mr. Wonderful24-Sep-08 23:34 
QuestionButton click problem Pin
member2724-Sep-08 23:33
member2724-Sep-08 23:33 
AnswerRe: Button click problem Pin
eyeseetee25-Sep-08 0:22
eyeseetee25-Sep-08 0:22 
AnswerRe: Button click problem Pin
ashok@techxygen25-Sep-08 2:35
ashok@techxygen25-Sep-08 2:35 
GeneralRe: Button click problem Pin
member2725-Sep-08 3:21
member2725-Sep-08 3:21 

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.