|
the problem is that i used the following code to download a file from server to the client machine....
Dim strFileName As String = "createuser.tif" ' it is the file in server
Dim fs As System.IO.FileStream = Nothing
fs = System.IO.File.Open(Server.MapPath(strFileName), System.IO.FileMode.Open)
Dim btFile(fs.Length) As Byte
fs.Read(btFile, 0, fs.Length)
fs.Close()
With Response
.AddHeader("Content-disposition", "attachment;filename=" & strFileName)
.ContentType = "application/octet-stream"
.BinaryWrite(btFile)
.End()
End With
it has worked fine promting a message where to save the tif file ...but when i downloaded download Accelerator Plus and running the asp.net application instead of getting the tif file iam getting default.aspx page of the application how this problem is solved
|
|
|
|
|
Don't repost[^]
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
|
Hai,
Please help me ,i want it urgently.so kindly help me...........
|
|
|
|
|
SreejithAchutan wrote: Please help me ,i want it urgently.so kindly help me...........
If you want it urgently, pay for the solution - there are many here who will help if you pay. This is a voluntary forum. We will help if and when we can.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
What I could understand is
U have one grid which shows all online users and u r refreshing this list after a predefined time..
Now what is ur exact problem please elaborate...
|
|
|
|
|
function launchRemote(idx)
{
idx.disabled=true;
var myRemote= window.open("dumpTest.aspx",idx.id,"height=350,width=110,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,z-lock=0","myWindow");
}
I want to call this javascript in the rowcommand event of grid.bcoz of putting the timer ,the timer will refresh the grid .so the disabled row in grid will be enabled after refreshing.How we avoid this problem of refreshing the row after each postback .
|
|
|
|
|
Please reply for the query
|
|
|
|
|
Hi,
I am having a real issue with dynamically adding content to the ModalPopupExtender ajax control in asp.net. I am using c# 2.0 and latest ajax version.
I have the following definition in the .aspx file:
<br />
<ajaxToolkit:ModalPopupExtender ID="mpeConvertToApp" runat="server" CancelControlID="btnDlgCancel"<br />
PopupControlID="pnlPopup" TargetControlID="btnDummy" BackgroundCssClass="modal" DropShadow="true" PopupDragHandleControlID="pnlPopup" <br />
DynamicControlID="lblInfo" DynamicContextKey="test" DynamicServicePath="~/WebServices/Comparison2Service.asmx" DynamicServiceMethod="GetContextKey"/><br />
and my web service call is defined in /WebServices/Comparison2Service.asmx as:
<br />
[WebService(Namespace = "http://tempuri.org/")]<br />
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]<br />
[ScriptService]<br />
public class Comparison2Service : System.Web.Services.WebService<br />
{<br />
[System.Web.Services.WebMethod]<br />
[System.Web.Script.Services.ScriptMethod]<br />
public string GetContextKey(string contextKey)<br />
{<br />
string returnedFromWebMethod = "test1234";<br />
return returnedFromWebMethod;<br />
}<br />
}<br />
This gives me the error "web service call failed: 500".
Now I have tried the following:
- Remove the DynamicServiceMethod and DynamicServicePath properties and the dialog displays as I would expect (without dynamic information). So no problems there.
- Changing the GetContextKey(string contextKey) to GetContextKey() works, but the return value populates the label lblInfo with the text "[object]" as opposed to "test1234".
It seems like the webservice definition is wrong somehow (like the string parameter is building a wrong signature to what is expected).
The webservice works fine by itself if I test it manually (through the IIS generated web page).
Any help or ideas would be much appreciated as its stressing me out I have searched everywhere and this post is my last resort.
Cheers,
Andy
|
|
|
|
|
Does anyone know anywhere I might be able to better find the answer to this?
|
|
|
|
|
u know something about the event bubbling ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: u know something about the event bubbling ?
Yes I know. Still google[^] is broken in your place ?
|
|
|
|
|
|
yes.
your questions become more asinine by the day.
|
|
|
|
|
J4amieC wrote: your questions become more asinine by the day.
LOL, she is going backward day by day
|
|
|
|
|
Anagram of her name
A Gusto Pain
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
hello ... tell me how can i check my voting point in this site..
thanks 2 all..
|
|
|
|
|
Points for post or Article ?
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
i want 2 know both ..but most is post..
thanks 2 all..
|
|
|
|
|
Hi,
You can see that just at right bottom corner of your post. Just below to Modify/Delete links.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
I have a web form with an asp.net FileUpload control. This is the same as a html tag.
Every time I try to upload an .mdf file (sql server database file) the page is reset by iis and there is no upload. iis seems to be blocking .mdf files, since many other file types are uploading.
I don't even know a good forum to ask this in. What do you think would be the workaround for this? I can't think of an easy way to rename the extension before uploading it, or if that would even work. The user browses to the .mdf file and selects it, there is no chance to rename the extension.
|
|
|
|
|
Hai to all,
In my web aplication,
I have set the session time out in web.config and also in IIS(in my application).
The problem is,once i start the data entry of my application and in between if i leave the system for 15-20 minutes then from the current point i can not enter the data bcz session is expiring.
How to solve this problem??maximum time 60minutes i have given still same problem is coming.
If i want to display a message that "session haas been expired" with which condition on each form i have to show??
Give me some idea
kissy
|
|
|
|
|
Hi,
just set session expire in web.config. Not anywhere else in application or not anywhere else. Just check it.
Now in Goabal.asax there is Session_End event. In that you can redirect to session end message page.
Hope it will solve your problem.
Thanks,
Sun Rays
Rate this post if you like answer.
My Articles
|
|
|
|
|
Thanks for ur reply, i will remove as u suggested in the IIS .
I will give you the status after some time.
So in the global.asax i am redirecting to the message page.
thanks once again
kissy
|
|
|
|
|
Kissy16 wrote: I have set the session time out in web.config and also in IIS(in my application).
This is a commonly discussed issue. I suggest you to set the session timeout either in web.config or in the other place. May be that is causing the problem.
|
|
|
|