|
Can you past the exact error message?
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi Jaiprakash,
Actually there is no error message though, it works fine, the files are being uploaded accordingly, my concern is whether this would happen the same way when I uploaded my web pages to the server.
J Liang
|
|
|
|
|
Yes Liang, It will happen in that case !!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
your code seems correct.
May be you need map saving path using Server.MapPath(SaveLocation)
|
|
|
|
|
Hi Naveed,
I came across the Server.MapPath too, so from what you say, the code should work when I upload it the server to be access by the public?
J Liang
|
|
|
|
|
Well i told you this as i am using this statement and its working with me.
You need check according to your scenario.
|
|
|
|
|
Hi Naveed,
Thanks, I shall explore myself whether it works in my scenario
J Liang
|
|
|
|
|
for finding matched pattern in strings i am using the function Regex.Matches().
the issue is that if i am passing a "pattern" string which have bracket"( )" then it will not return any matches..
for eg:
string strInput = "PaperIndex (India) Private Limited";
string strPattern = "PaperIndex (India) Private";
and if i am passing this value to function it will not return any match.
foreach (Match Mth in Regex.Matches(strInput , strPattern, RegexOptions.IgnoreCase))
{
arrBuyleadName.Add(Mth.Value);
}
if we pass strPattern = "PaperIndex";
it is returning the match value as paperindex
if any body know how to avoid this issue, help me
thanking you,
Jes.
|
|
|
|
|
For me the immediate work around is to replace the ( with something else and try to make a patter with that !!! And then use the Regex.Matches()!!!
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
You need to use the escape character '\'. For example: "PaperIndex \(India\) Private".
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
How to integrate digital cameras with .net?
The input from a camera should be sent to a .net application
Please specify the tool which does this.
Thanks.
din
|
|
|
|
|
Typically it depends on the methods exposed by the camera software !! If there are methods exposed then you can very well use the drivers and access the images from camera if not then find out from provider itself
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
would like to know any tool that supports integration of web applications with digitalcameras,webcam e.t.c
|
|
|
|
|
My feeling is the provider needs to be asked, as it is some times proprietary information !!!
-- modified at 9:58 Saturday 14th April, 2007
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
do a gogoogle search for Windows image Acquisition. There is a library by Microsoft that u can use to acquire images from Digital camera, scanner e.t.c
t.aransiola
|
|
|
|
|
Hia to all,
Here i have a problem that,I am using 3 txtboxes and,in these 3, 1 textbox is readonly(getting value from ddlist),and 1 textbox is editable.And now my requirement is,
i have to get the values from txt1 and txt2 into txt3.That i have to get only on when txt3_gotfocus.Means when i click for editing in the txt3 ,it shd give the values of txt1 and tx2.(assume both numeric and charcters in txt1 and txt2.)
Can anyone give me some idea
I know javascript when both txt's are editable.but how to write one is editable and one is readonly.
Thanks in advance.
kissy
|
|
|
|
|
Hi,
AFAIK, there is no OnFocus event in the ASP.NET textbox. If txt2 is the editable one, and you want to have txt3 updated when txt2 is changed, you could do:
Protected Sub txt2_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txt2.TextChanged
If Txt1 <> "" And Txt2 <> "" Then
Txt3.Text = txt1.Text & txt2.Text
Else
'Error handling code
End If
End Sub
|
|
|
|
|
hai lucjon,
THanks for ur response.But it is giving any value in txt3.
if i try edit,it shd give the txt1 & txt2 values in txt3.
Give me some othet idea.
plz i have tried as u told,but not working.
kissy
|
|
|
|
|
Hello,
I am developing Web Application in that I am storing HTTPPostedFile in Datatable.But after that I am not able to fetch that File in HTTPPostedFile object.
I had written code as,
HttpPostedFile obj_Posted;
sobj_Posted =((HttpPostedFile)dt.Rows[0]["HttpPostedFile"]).FileName;
But here error comes as invalid type cast
swapnil Bhavsar
|
|
|
|
|
Hi,
What is the datatype of the column of the table into which you are storing the file?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
|
Hi,
I have a web application(ASP.net, C#) in which the user is be able to download a .cab file to the PC by clicking on a button after making a file selection. I tried many methods for accomplishing the download task.
The code i tried is given below.
Response.ContentType = "APPLICATION/OCTET-STREAM";
System.String disHeader = "Download; Filename=\"" + myfilename+ "\"";
Response.AppendHeader("Content-Disposition", disHeader);
System.IO.FileInfo fileToDownload = new System.IO.FileInfo(myfilepath);
Response.Flush();
Response.WriteFile(fileToDownload.FullName);
or
FileStream MyFileStream = new FileStream(myfilepath, FileMode.Open);
long FileSize;
FileSize = MyFileStream.Length;
byte[] Buffer = new byte[(int)FileSize];
MyFileStream.Read(Buffer, 0, (int)MyFileStream.Length);
MyFileStream.Close();
Response.ContentType = "application/octet-stream";
Response.AddHeader("content-disposition", "attachment; filename=" + myfilename);
Response.BinaryWrite(Buffer);
When i tried these two methods, i could download the files to the PC. The user has to copy the cab file to the Pocket PC device for installing it. The file downloaded through the web application may have some problem so that it cannot be installed on the Pocket PC.
When i tried to install the original file from the repository, it worked fine. It means that there occurs some problem with the cab file while it is being downloaded.
The original file is having the size 420 KB. But the file downloaded is having size 432 KB.
Could anybody guide me to solve the problem?
Thanks in advance.
Nicejith
|
|
|
|
|
|
hi lucjon,
i tried that code.
still i'm getting the same problem..
there occurs some size variation when i'm trying to download file using all these methods..
|
|
|
|
|
Is ASP.NET Ajax v1.0 is free of cost for commercial use? Plz reply with proof that supports your answer. I need this urgent.......... plz help
|
|
|
|