|
I have a database from where I read Images as byte[] and then convert it to System.Drawing.Image. How can I display that image on my aspx-form?
_____________________________
...and justice for all
APe
|
|
|
|
|
|
MemoryStream imgStream = new MemoryStream(byte[] imgbinary, 0, imgbinary.length);
System.Drawing.Image img = System.Drawing.Image.FromStream(imgStream);
img.Save(Server.MapPath("~/destinationfolder/sample.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg);
Image1.ImageUrl = "~/destinationfolder/sample.jpg";
Now you can display image in image control without using handler or another asp.net page
Display system.drwing.image in ImageControl
|
|
|
|
|
Hello,
I have an ASPX page WITH Grid View with data in below format:
Title
------------------------------------
c# book
------------------------------------
ID AUTHOR ISBN
------------------------------------
1 Andrew 1233456
------------------------------------
Title
------------------------------------
Learn asp.net in 20 days
------------------------------------
ID AUTHOR ISBN
-------------------------------------
2 ROB 412123123
-------------------------------------
Now I want to export this data to excel in following format (Each data in one row)
Title ID AUTHOR ISBN
Learn asp.net 2 ROB 412123123
How can I achive this? Do I need to take a seprate Gridview which is hidden [but do not know how to achive this]?
Or is there a way i can directly export the datatable to Excel. I will not be using Miscosoft excel component to use it in any case.
Please suggest
Regards,
Pavas
-----------------------
[http://longjump.com/]
Dynamic business applications that manage and coordinate teams and information
-----------------------
|
|
|
|
|
This article[^] explains how to write to an Excel spreadsheet using the Jet OleDb Provider. The Excel application itself does not need to be installed on the server.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
thanks, i will have a look on it
Regards,
Pavas
|
|
|
|
|
hi anybody know about User interaction table. ie it ll accept text,image at runtime simply entering into table cell....
|
|
|
|
|
use gridview for the same
|
|
|
|
|
for i need this facility at runtime. ie dynamically
|
|
|
|
|
Hello,
I am using a GridView in combination with an ObjectDataSource.
What I am after is a method to call (eg, after the row has been edited), which will return the values bound to the DataObject (i.e. the object that was passed in, or the object that is defined by the ObjectDataSource.DataObjectTypeName property).
Currently, such a method is available when hooking into the RowDataBound action. The property GridViewRowEventArgs.Row.DataItem returns the values that have been bound as a DataObject.
I would like to be able to call such a method when I am responing to postbacks (ie, from a button).
I have looked at GridView.Rows[index].DataItem , but that always seems to be null.
Any hint in right direction is appreciated.
Cheers
|
|
|
|
|
Although I'm not entirely certain have a look at the ObjectDataSource's OnUpdated event. There should be arguments passed to that to allow you retrieve the data.
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson Because programming is an art, not a science. Marc Clifton
|
|
|
|
|
boy.pockets wrote: I have looked at GridView.Rows[index].DataItem, but that always seems to be null.
The DataItem in GridViewRows is not saved by viewstate except in some functions such as RowDataBound.
Permanently stay where my heart locates
|
|
|
|
|
Hi All,
Absurd problem really.
We have created a web application. In some pages the autocomplete feature of the textboxes occur, while in the ones having tabstrip control the feature does not show up. What can I do to get rid of the problem? Can anybody help me.
TX In Advance.
Manish.
|
|
|
|
|
trying to build up a web chart from below article but i cant see the chart
http://www.eggheadcafe.com/articles/20021223.asp
it just shows image not available icon. i ahve owc11 installed in my machine. do i need to register owc10 too?
|
|
|
|
|
Although I have not used office web components anytime but can suggest you to see the path of the image (whether it is correct or not) in the browser.
Apurva Kaushal
|
|
|
|
|
it is pointing to the correct path. src='c:\owc\images'
|
|
|
|
|
Hi,..
In my web application, i have one help file as pdf format.
when in firefox
i type like
http://localhost/myapp/help.pdf
then it opens in binary format.
If is there any setting in IIS or in firefox then let me know.
Kiran Banker
|
|
|
|
|
banker_kiran wrote:
If is there any setting in IIS or in firefox then let me know.
It is probably not an IIS thing, but something with the configuration in Firefox.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi Friends,
I want to know about master page in ASP.NET.Can any one send me the coding.
Thanks & Regards
Senthil Kumar
|
|
|
|
|
Have you tried to search the same in google. There you will get lots of example for the same. Here[^] is the example.
Apurva Kaushal
|
|
|
|
|
Hi,
I am developing an application which needs to work with the files. In one page, i have a grid view which lists all the files used for my application, i have used hyperlink column in grid view for these filenames.
If i click on the filename in the grid view, the file should be opened in the browser (i.e) it should not open the file in its original format (for example if it is a word document, it should not open in MS Word), it should open only in the browser.
Files can be of any type - word, excel, ppts, jpegs etc.
I have tried using Response.Redirect with full path, but that is not the result, which i am expecting.
Can some body help me in this regard.
Thanks in Advance
Anuradha
|
|
|
|
|
I don't think that it is possible. Because decision will be taken by the browser, and ASP.NET can't control it. Why do you need such an option ?
|
|
|
|
|
Atleast the basic formats like word, excel, power point, pdf docs should be supported, is there any mechanism to do this
|
|
|
|
|
Anuradha612 wrote: Atleast the basic formats like word, excel, power point, pdf docs should be supported, is there any mechanism to do this
AFAIK, NO. Operating system will be having file extension mappings, which maps file extension to applications which can read that. When a file is opened through browser, browser looks for this application mapping and loads it on the specified application. It is decided by the browser where to load the file, and how to show it. So you can't control it.
|
|
|
|
|
Hai
How can i call a javascript function from App_Code class.
i have a menu child dynamically created inside App_Code class.
i need to pass the navigate URL string to a javascript code.
i dont know where the javascript function is to write because in App_Code there is no aspx file. please help me.
Thanks
modified on Thursday, December 20, 2007 12:31:37 AM
|
|
|
|