|
He's already been told the right way numerous times
string str = "drive/folder/path/filename.ext";
string filename = Path.GetFilename(str);
|
|
|
|
|
J4amieC wrote: string filename = Path.GetFilename(str);
Yes, that works too! Do you know, I never thought ot try that on a simple string - just assumed the argument needed to have been defined through a file object (or HttpPostedFile or something)... how embarrassing
|
|
|
|
|
Hi All
I am using Replace in Old ASP
and its not working
I am using
Replace cont,"my_documents/","master/my_documents/"
and It not replace the text
any body have solution
Amit Battan Ror
battan20@gmail.com
|
|
|
|
|
Probably because you haven't take case-sensitivity into account
clickety[^]
|
|
|
|
|
hi i am using file up loader to store path of the file in database and value show in datagrid in linkbutton text i want when i click on this link file should be open. if file is .rar or .zip than open save dilouge box .
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
Are you facing any issues in this? What's your requirement?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Can anybody please tell me how to change the page extension in asp.net
e.g. default.aspx to default.abc
|
|
|
|
|
Are you mentioning about url rewriting? If so, please check with this url:
URL Rewriter
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
It is done using URL Rewriting. Doing a search for "URL Rewriting ASP.NET" will give you plenty of articles.
|
|
|
|
|
You can do it using url rewriting or by registering the extension in IIS.
For url rewriting of extensions that are not handled by ASP.NET, you need to install an ISAPI dll like IIS Mod-Rewrite (unless you are running Server 2008).
To register the extension for ASP.NET you just add another extension for the web application in the IIS Manager, with the same settings as the aspx extension.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
How to read PDF file using C# Can any one help from solving my problem i am thankfull.
jagadish
|
|
|
|
|
jagadish reddy wrote: Hi Friends
Consider putting a meaningful title for your post.
jagadish reddy wrote: How to read PDF file using C#
I don't think that you can read PDF file. Why do you need to do this?
|
|
|
|
|
N a v a n e e t h wrote: I don't think that you can read PDF file
Wrong. just google it and see the thousands of results.
|
|
|
|
|
hi all
i need a usercontrol of autocomplete textbox.
the data of that autocomplete textbox comes from sql server table.
cud anyone give suggestions on it that how to do this.
Er. Jagwinder Singh
|
|
|
|
|
Use AJAX and show your results in a DIV. You have to get new results when user types in the textbox. Handle OnKeyPress event and send AJAX calls to the server.
|
|
|
|
|
|
hi
i have a drop down list box and in drop down value is stored from table. and near this a link button using this link button javascript open new page to add new record in database and i want after complete this process close the opened page dropdown list will be update.
plz help
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
Are you showing the new window using window.open ? If yes, you can access the parent window by window.opener
|
|
|
|
|
thanks for reply but problem is that i use this code but new value is not show in this page where i call my fill function to value show its coding which page was store vale and open page from javascript.
DataTable tbl1 = dt.filltbl("select * from tbl_issue_type where id=-1", "new1");
DataRow row1 = tbl1.NewRow();
row1["issue_type"] = txt_issue_type.Text;
tbl1.Rows.Add(row1);
dt.update(tbl1, "select * from tbl_issue_type");
Page.RegisterStartupScript("myrest", "<script>alert('New issue was added successfully');</script>");
Page.RegisterStartupScript("myqd", "<script>window.opener.location.reload(true);</script>");
Page.RegisterStartupScript("abc", "<script>window.close();</script>");
i use this code but drop down list is not refreshed?
I will do my best?
Integrated Solutions, Bikaner (Raj.), India
|
|
|
|
|
Dear all,'
I have an employee database.
I want to display employee name and emailid in a dropdomlist.(like Ram-ram_g@rediffmail.com)
and when i select one list item i want to store the empcode of perticular selected employee.
how to show and store the above.
please let me know if anybody have some idea.
I want to show all the details of an employee as per selcted value(nothing but empcode).
thnks in advance
kissy
|
|
|
|
|
Kissy16 wrote: I want to display employee name and emailid in a dropdomlist.(like Ram-ram_g@rediffmail.com)
You need to get data from table, iterate each item, combine name with email and add to the drop down box.
Kissy16 wrote: and when i select one list item i want to store the empcode of perticular selected employee.
While adding items to drop down, assign employee code as item's value. Handle SelectedIndexChanged event and get the current selected item's value, which will be your employee code for the selected item.
|
|
|
|
|
While storing the value and item in dropdownlist, store as follows:
DropDownList1.DataValueField = 2;
DropDownList1.DataTextField = "Test";
while retrieving, get it back as follows:
string ddltext = DropDownList1.SelectedItem.Text;
int ddlindx = DropDownList1.SelectedValue
Hope this helps.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
hi , i have gone through your article ..i have used your code ....
but i am getting error..
when i open in visual studio, i receive error "Error Rendering control". How i fix problem, pls help me!
|
|
|
|
|
cse.vidhya wrote: hi , i have gone through your article ..i have used your code ....
but i am getting error..
when i open in visual studio, i receive error "Error Rendering control". How i fix problem, pls help me!
My article?!! I don't think so...
You might want to post this message in the discussion below the article in question.
|
|
|
|
|
I have a base64 gif label from UPS that I would like to put in the memory stream and then resize and output to memory stream.
How can I resize the image before writing it to the output stream?
Any help would be appreciated.
byte[] buffer = Convert.FromBase64String(htmlBase64());
Page.Response.Clear();
Page.Response.AddHeader("Content-Disposition", "attachment;
filename=displayImage.jpg;");
Page.Response.AddHeader("Content-Length", buffer.Length.ToString());
Page.Response.ContentType = "application/octetstream";
Page.Response.BinaryWrite(buffer);
Thank You, Signed... Linda
xxx
modified on Friday, September 26, 2008 9:08 AM
|
|
|
|