|
A scarry one.
I got something similiar when i was printing pdf-s from asp.net, service i used did not have enough permissions, and got similiar when there ware thread problems. But, "system.formatexception" could mean that you send wrong data type. How do you call this service? Got any code to see what you exactly doing?
Try without multiple threads for start. But i would say you call some method with wrong data type parameters.
|
|
|
|
|
Ok Thanks I will try to check it
|
|
|
|
|
Hi,
i Have a problem with showing the image.After uploding new image also,it show the old image.when i refresh then it display the new image.what should i do to display image after uploding it.
plz help me
thank you
|
|
|
|
|
There is very simple solution for this.
Make something like this
Now, if you add query string to image with time, it will show picture ok, since this image name does not exist in cache of browser.
Edit:
Don't worry, query string on image will not break anything. Image will show, no matter if you put it like "image.jpg" or "image.jpg?something".
There are more ways to handle this, set expire header to image in past, this will also force browser to read image from server and not local cache.
|
|
|
|
|
You got my 5
P.S. Pershendetje
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
actualy i need code to solve my problem.it may be cache problem.But i m not able to solve that.
plz help me
|
|
|
|
|
thanks for reply
actualy i load the image in one folder then want to show that image in image box.i need the code in asp.net.After uploding also it shows same old image but i want that new image to be shown on imagebox.
plz provive th solution.
|
|
|
|
|
If you are using server control Image1 then bind ImageUrl property with your last image.
Otherwise show us your code and we will try to hand you.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
i upload the image then assign the imagebox with the lastimage link
like......
Image1.ImageUrl = "~/member_snap/abc.jpeg"
but
it shows old image.how to bind that image
|
|
|
|
|
Image1.ImageUrl = "~/member_snap/abc.jpeg?timestringorGUID"
|
|
|
|
|
same problem...
is there need to clear cookies or something else.
then plz provide me code to clear that.
|
|
|
|
|
There is no way that he would show you cached image if you would add query string to image. I do use asp.net everyday, but i don't use webforms, i write pure code with my own framework and template engine so i can not give you exact code you could make this in webforms.
Give your code after you applied what i wrote you to apply.
Now, why it shows same reason, if browser opens up image "members/member1.jpg" he will cache this image, and each time you request from same domain image from same path and file name, he will return you the one you cached. But if you cahnge image name, he will not return you cache, since you can not change image name, you can add up some query string to image, this way image name is the same, but is never read from cache if query stirng is always different. To browser "image.jpg" and "image.jpg?2343-234-234-23423-2342" is not the same thing, and this is when he starts to download fresh image from server instead of read it from cache.
Show your code you wrote after you applied what i wrote you to apply.
|
|
|
|
|
thanks for reply
Actualy i modify the image with same name....
my code is bellow
If Not FileUpload1.HasFile = False Then
Dim filepath As String = FileUpload1.PostedFile.FileName
Dim pat As String = "\\(?:.+)\\(.+)\.(.+)"
Dim r As Regex = New Regex(pat)
Dim extention As String = GetExtension(filepath)
If (extention = "jpg" Or extention = "gif" Or extention = "jpeg" Or extention = "bmp" Or extention = "png") Then
Dim m As Match = r.Match(filepath)
Dim file_ext As String = extention
Dim filename As String = "" & Session("abc") & ""
Dim file As String = filename & ".jpeg"
'save the file to the server
FileUpload1.PostedFile.SaveAs(Server.MapPath(".\member_snap\") & file)
Image1.ImageUrl = "~/member_snap/" + Session("abc") + ".jpeg?timestringorGUID"
Label23.Text = "Upload Successfully"
Else
Label23.Text = "Upload jepg,gif,jpg,bmp,png file"
End If
End If
|
|
|
|
|
This line:
Image1.ImageUrl = "~/member_snap/" + Session("abc") + ".jpeg?timestringorGUID"
This is wrong, "timestringorGUID" i wrote to explain you where oyu ahve to write Time string or GUID string, not to write this leterally, lol.
Replace the above line with this one:
Image1.ImageUrl = "~/member_snap/" + Session("abc") + ".jpeg?" & Guid.NewGuid.ToString()
|
|
|
|
|
Did you wrote Image1.ImageUrl = "~/member_snap/abc.jpeg?timestringorGUID"? as i wrote to you or did you put it
Image1.ImageUrl = "~/member_snap/abc.jpeg?" & Guid.NewGuid().ToString
which is what i did think you will figure out what i try to tell you.
|
|
|
|
|
thanks for give me soliution..
my problem solved...
shall i hav your email id plz, for contact in future
|
|
|
|
|
Hi All ,
I have one problem in java script web site has 3 calender so when focus comes to any one of the text box then calender come so i can select date but if i press control should go the next control so is there any option so that i can find which text box has focus so that based on condition i can set focus to next statement.
Thanks ,
Amit
|
|
|
|
|
|
I think there is OnFocus and onBlur event for every html input control for doing this.
|
|
|
|
|
Hi,
I am trying to disable some items in listbox through javascipt in ASP.net
These items are disabling in IE8 but not disabling in IE6. How can I do it?
<br />
var lstRight = document.getElementById("lstSelection"); <br />
var fixedFieldIds = document.getElementById("hdnFixedFieldId"); <br />
var fieldIdArray = fixedFieldIds.value.split('^');<br />
<br />
if(fieldIdArray)<br />
{<br />
for(var i =0;i<fieldIdArray.length;i++)<br />
{<br />
for(var j=0; j<lstRight.options.length; j++)<br />
{<br />
if(lstRight.options[j].value == fieldIdArray[i])<br />
{<br />
lstRight.options[j].disabled = true;<br />
break;<br />
}<br />
} <br />
}<br />
} <br />
|
|
|
|
|
This is no ASP.Net question. There is a seperate Web Development [^]forum for these type of questions.
In between, IE8 and IE6 have different rendering engine. You can use IE Developer [^]toolbar to take a dig into it.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I got all available network printers but the problem is when I select Microsoft XPS Document Writer as my printer and give print Then there is an error
|
|
|
|
|
Why did you ask two similar questions ? What is the error ? It probably relates to permissions to write a file on the server.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
and Error is
himanshu
|
|
|
|
|
I want to get all network printers using ASP.NET &c# and want to avid the image printer like Microsoft Office Document Image Writer or Microsoft XPS Document Writer
|
|
|
|