|
If you only have one column then it makes things a lot more simple. YOu just need to look for the Chr(13). You should be able to remove a lot of the code I posted.
Ben
|
|
|
|
|
Will u please help with that???
|
|
|
|
|
Ah no, I have already given you my code. I think you need to work with what you have and try to get it working. If you have a specific problem I would be more then happy to help.
Ben
|
|
|
|
|
Thanks a lot its working fine now. Thanks again...
|
|
|
|
|
i hv stored some image into folder images like this
HttpFileCollection File=HttpContext.Current.Request.Files;
HttpPostedFile File1=File[0];
string fn_imgProduct=System.IO.Path.GetFileName(imgProduct.Value);
string locationImage=Server.MapPath("../Images/")+fn_imgProduct;
File1.SaveAs(locationImage);
now i want to delete this from image folder.
please help me how i can delete it
alok tripathi
|
|
|
|
|
File.Delete ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
System.IO.File.Delete(putfilepathhere);
Hope that helps.
Ben
|
|
|
|
|
Hi
I have created image controls dynamically. when i click that image control someother page should be displayed as a popup window how to do this??
my code is :
ImageButton imga;
Panel pana;
LiteralControl LL1;
private void Page_Load(object sender, System.EventArgs e)
{
string idvalue;
idvalue= Request.QueryString["id"];
int cnt;
cnt=Convert.ToInt32(Request.QueryString["count"]);
Session["impath"]="audio_release/"+ idvalue +"";
int cnt1;
if (cnt % 3==0)
{
cnt1=cnt/3;
}
else
{
cnt1=((cnt/3)+1);
}
for (int i=1;i<=cnt1;i++)
{
imga = new ImageButton();
pana=new Panel();
imga.ID = "img" +i.ToString();
imga.Width=200;
imga.Height=150;
imga.ImageUrl="audio_release/" + idvalue + "/"+ i +".jpg";
pana.ID="pl1"+i.ToString();
LL1= new LiteralControl(" ");
pana.Controls.Add(LL1);
pana.Controls.Add(imga);
mainpan.Controls.Add(pana);
imga.Click +=new ImageClickEventHandler(Imagea_Click);
}
}
protected void Imagea_Click ( object sender, ImageClickEventArgs e )
{
ImageButton imga = ( ImageButton )sender;
string s=imga.ImageUrl;
popup('s');
Response.Redirect("audioimage.aspx");
}
here i want to display audioimage.aspx as popup window.
plz let me know if u know the ans
Thanks in advance.
Haritha
|
|
|
|
|
in Imagea_Click event you call javascript function .
in that function you can define window.open method i.e.
open (URL, windowName[, windowFeatures])
protected void Imagea_Click ( object sender, ImageClickEventArgs e )
{
ImageButton imga = ( ImageButton )sender;
imga.ImageUrl="javascript:load()"
//popup('s');
Response.Redirect("audioimage.aspx");
}
in html page you can write:
function load()
{
window.open("audioimage.aspx","mywindow","menubar=1,resizable=1,width=350,height=250");
}
Thanks
Raghvendra Kumar Roy
|
|
|
|
|
Hi
what is complete URL TRACKER. whats is its purpose
any idea how can we implement the complete URL- TRACKER.
Regards,
Srinandan
|
|
|
|
|
how to implement remember me next time feature in asp.net 1.1. plz provide help
|
|
|
|
|
If user wasnts to be remembered, write a cookie to their machine when they log in with their userID, (or whatever..) - and test for this cookie in page_load and if it exists log the user in automatically (or just fill in thier username, whichever you want to do.)
Research reading and writing cookies in ASP.NET
Fred
|
|
|
|
|
:(where i put the "Macintosh is at 9.8m/sec² ",plz give me detail plz
|
|
|
|
|
One post is enough.In BTW why are you creating the new thread.
Regards,
Satips.
|
|
|
|
|
What are you asking ? The quote means the only way to speed up a Mac is to throw it out the window.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
The text you are referring to is a signature used by ExpertComing. When you setup a profile on CodeProject.com you can create a signature that gets appended to every message you post in the forums. So if his signature had been "Thanks Have a Nice Day" it would have said that at the end of the message - it has nothing to do with his actual response. So when you see "The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo" that is just his signature. You can ignore that part of his response.
|
|
|
|
|
Wow, that is funny. I never thought I could find someone that (fill in the blank). I got a hell of a laugh out of that.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi Friends,
I have developed a web application on my computer and it runs successfully on my localsystem.
Now I want to run it on other computer in my office which is coonectced via LAN to my computer.
To achieve this I have done some modifications to that computer's hosts file which is located at
C:\WINDOWS\system32\drivers\etc.
I have append following.
216.25.0.33 http://216.25.0.33/MyApplication
Here 216.25.0.33 is the IPAddress of my computer.
But this thing doesnt work means I am not able to visit my application from there.
Can you please tell me where exactly i am making mistake or the approach I have takes is wrong?
Thanks a lot in advance.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
your hostfile is like a dns-server. That means it can store names so you don't have to remember IP-addresses.
An example:
216.25.0.33 myserver
This will not work:
216.25.0.33 http://216.25.0.33/MyApplication
(the hostfile is not a web-forwarder)
If i write "myserver" in the addressbar it would be the same as i write the IP-address. So the address for your application would then be "http://myserver/MyApplication/"
|
|
|
|
|
Hi,
Thank you very much for your reply.
I got the point. But can u tell me what should i write in place of "myserver" in
216.25.0.33 myserver?
should it be my computer name or something else?
Thank you again.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
How does it run on your PC, using IIS or the web server built in to VS2005 ? If the former, people should be able to see it by typing your PC's name or IP address into their browser. If the latter, it needs to be hosted somewhere.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Thank you very much for your reply.
My application runs using IIS and I have tried by writting
http://216.25.0.33/MyApplication in other computers addressbar but it didnt work.
Is there any settings to do?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
HELLO CHETAN YAR,
U have done a mistake...
to run your website properly do the following things
- create one virtual diretory on IIS.
- Copy your all project files to that virtual directory
- now on other computer write following address to the
addressbar of the IEBrowser
- http://IP Name of Computer where Virtual dir store/Virtual dir name/Page name
eg. http://192.158.1.54/DemoVirtualDir/Default.aspx
Hope it helps....
best regards,
koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
where i put the "Macintosh is at 9.8m/sec² ",plz give me detail plz
|
|
|
|
|
Hi,
In your signature.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|