|
Send FileStream, instead of Response.OutputStream to b.Save(...) method.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
How can I do that , would you please explane more ? How can I save Graphics object with all changes in an image ?
thx a lot for your help,
www.behzadi.net
|
|
|
|
|
You cannot save a graphics object at all. You can save the Bitmap, which is what you're trying to do here anyhow. Your code looks like you're trying to send the file over the web, otherwise, why would you set the content type ? You need to create a file stream if you want to save it this way. Or, just give it a filename instead.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
guys i am facing an issue, popups seems to be working fine on my local machine, but when we deploy our application on live, all of our popup's size(e.g. height and width) become's in correct,why it does these popups behave like this,can any one guide me in this regard, and wht's the solution for this problem , thankx in advance,
regards
|
|
|
|
|
How do you specify the width and height, and in what way is it incorrect?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
i specify height and width in javascript, and it doesn't show correct in a way all the content is not visible to the user user have to stretch the popup to see the content cmopeletely, i usually set the resing option in javascript to yes, kindly reply ASAP,
regards,
|
|
|
|
|
It would be much easer to read what you write if you would write the text in separate sentences.
King Shez wrote: i specify height and width in javascript
Yes, obviously, as that is the only way to do it, but exactly how do you do it? Do you specify the size when you open the popup, or after the popup has been opened? The second method is not allowed with some browsers/settings.
King Shez wrote: it doesn't show correct in a way all the content is not visible to the user
Well, if you specified a size that is too small, that would give the same result. Does the window get the size that you did specify or not?
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
hello friends
I am freshers for .net, i am developing asp.net(with vb.net)project,I want detail about how to create "MENU".
srinivasan.s
|
|
|
|
|
ps.srinivasan wrote: how to create "MENU".
A custom menu control ? or using existing control ?
|
|
|
|
|
custom menu control frnd
advance thnx
srini
|
|
|
|
|
|
frnd i download that source code that is not working(showing that code is newer version) i am working in asp.net 2003
|
|
|
|
|
It is created in VS2005. You can open the files individually and learn how it is created. Read the article to get an idea how to create such a control.
|
|
|
|
|
Unknown Ajanabi wrote: Have the Menu Items (Text and Link) in a XML File. Use Hyperlink in Repeater Control to Build the Menu. (Hint:- Bind the XML File contents (Text and Link) to the Hyperlink Control's Text and NavigateURL Property).
here...[^]
Regards - J O H N -
|
|
|
|
|
|
Respected Gurus
I have to run a batch file in a web application(ASP.net).I am using the following code on click of a web control button.
Try
System.Diagnostics.Process.Start(Server.MapPath("Imports\DumpPrmaster.bat"))
Catch ex As Exception
lblError.Text = ex.Message
End Try
Problem is that i can run this batch file while being on the server.But not from the client machine.
How can i run this batch file stored in the Imports folder of my project from the client.
dtsrun /SserverIP /Uajay /PPassword /NDTS_Name
is the code inside my batch file.
Thanks
Ajay
|
|
|
|
|
MissionSuccess wrote: But not from the client machine.
Are you trying to run this file on client machine ?
|
|
|
|
|
Exactly
I want to run the batch file stored on the server being on a client.
|
|
|
|
|
MissionSuccess wrote: I want to run the batch file stored on the server being on a client.
It won't be possible since it's a security violation. You can't execute any scripts on client browser. If your client allows to install activex, you can create on that runs this batch file.
|
|
|
|
|
Give execute permission to aspnet login for web application
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
you can create an Activex control that run's the batch file, embed it in the aspx page, while loading the page; prompt a message and convince the user to install it on the machine.
Regards - J O H N -
|
|
|
|
|
hi,
i have developed one web application,in dis application i have generated
reports using excel,in my system it is working every thing fine
bt whn i open dis application from another system,there also works fine
bt excel sheet doesnt open,
i mean in another system excel sheet is not opening
can i one know's how can i do dis,
plz reply if u know
thnks in advence
afreen
|
|
|
|
|
Perhaps the link to the excel sheet is pointing to a local system directory. Verify it.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
ya it is pointing to local system dirctory,
bt my requirement is like dis only,it has to
open in my system and also in client side
also
|
|
|
|
|
Then you should point the excel sheet link to the server folder...
<asp:HyperLink NavigateUrl="~/somefolder/mysheet.xls" .... >
so that it opens on every system. remember "~" denotes you web application name.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|