|
If you turn on the sorting functionality of the grid view, it will render the headers as links, but you will still need to handle the event that is fired, and write the code to sort your data.
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 )
|
|
|
|
|
sir can you please tell me in detail how to handle the event
|
|
|
|
|
I have an image in the form of byte array and i have to display it as Htmlimage.
I ve tried in google. I got some results ragarding converting the image into System.drawing.image
Can any body post some links or info. to convert a byte array into html image?
--Sreeram
|
|
|
|
|
mareers wrote: Can any body post some links or info. to convert a byte array into html image?
There's no such thing as a HTML image. You can display an image on a web page by using an <img> tag that points to the URL that represents the image resource.
You could either:
1. Save your image to a file and point an tag to the URL for that file.
2. Create an ASPX page that writes the binary data for the image to the output stream and point an tag to the URL for that page.
3. Write a custom HTTP handler to service image requests and reference it in a similar way to 2.
Perform a Google search for any of these and you should find plenty of relevent information.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi -
I'm using Classic ASP but hoping the solution will be similar if not the same.
What I'm trying to do:
I am working with a Flash ActionScript programmer.
In his application, he is sending a "ByteArray" (binary data that defines the JPG) of a JPG file to my ASP.
In my ASP I want to receive that querystring and write the JPG file to the server.
Possible? How?
Thanks!
Scott@oceanmedia.net
|
|
|
|
|
In my Explorer window I have
c:\...\WebSite3\
App_Data
getDetail.aspx
getDetail.aspx.cs
MasterPage.master
MasterPage.master.cs
and other image file
when i run my program i got error like following
Directory Listing -- /WebSite3/
--------------------------------------------------------------------------------
Thursday, December 20, 2007 10:43 AM <dir> App_Data
Tuesday, July 25, 2006 10:17 AM 9,705 airbus.jpg
Tuesday, July 25, 2006 10:17 AM 22,505 air_holland.jpg
Thursday, December 20, 2007 02:29 PM 262 Default3.aspx
Thursday, December 20, 2007 02:29 PM 406 Default3.aspx.cs
Thursday, December 20, 2007 04:43 PM 3,790 getDetail.aspx
Thursday, December 20, 2007 04:20 PM 663 getDetail.aspx.cs
Thursday, December 20, 2007 05:11 PM 153 Image.aspx
Thursday, December 20, 2007 03:04 PM 403 Image.aspx.cs
Thursday, December 20, 2007 05:12 PM 2,257 MasterPage.master
Thursday, December 20, 2007 02:26 PM 414 MasterPage.master.cs
Thursday, January 01, 2004 05:45 AM 83,794 Water lilies.jpg
Thursday, December 20, 2007 10:49 AM 1,585 Web.Config
Thursday, January 01, 2004 05:45 AM 105,542 Winter.jpg
How can I remove this error. Please tell me what this problem is?
--------------------------------------------------------------------------------
Version Information: ASP.NET Development Server 8.0.0.0
|
|
|
|
|
keyto wrote: How can I remove this error. Please tell me what this problem is?
What error? You haven't explained what the error is.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
OK, I know the problem. Now what?
only two letters away from being an asset
|
|
|
|
|
There is no error. Rename default3.aspx to default.aspx and then you'll have a chance of it running automatically when you browse to the folder.
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 )
|
|
|
|
|
|
I guess that means it's not allowed there. The error message implies that a fully qualified path may be accepted.
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 )
|
|
|
|
|
Deleting messages isn't very polite, you know...
|
|
|
|
|
Yes i know
This is my actual problem..........
When i'm using the Master Page in web.config file then it's throwing error like
Unrecognised tag prefix or device filter 'asp'
Can anybody tell me y it's throwing
|
|
|
|
|
The Knowledge wrote: Yes i know
Then why did you do it ?
The Knowledge wrote: When i'm using the Master Page in web.config file then it's throwing error like
Unrecognised tag prefix or device filter 'asp'
This is a different issue to what you first posted.
As I said to you yesterday, every path I see to a master page in web config examples online uses a full path, not just the page name. Did you try that ? What did you change to get this new error ? How can we help you if you don't show us the code that creates the error ?
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 )
|
|
|
|
|
The Knowledge wrote: Yes i know
Then don't delete the message. Someone else might benefit from it as well.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
hi all,
paroblem as follows,
i am using third party control for page navigation.the index of the datagrid current page index not matching with the third party control index.for example when i am deleting last record in second page i am able to bind with the first page. but if am deleting any record in first page it is throwing exception "Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount." the code as follows :
this.dgUserList.CurrentPageIndex = this.dgnNav.CurrentPage;
//Reset the page Navigation if deleting the only record on the last page.
if (dgUserList.Items.Count <= 1 && dgUserList.CurrentPageIndex == dgUserList.PageCount - 1)
{
if (this.dgnNav.CurrentPage <= dgUserList.PageCount && this.dgnNav.CurrentPage > 0)
{
dgUserList.CurrentPageIndex = this.dgnNav.CurrentPage - 1;
}
}
this is the page index of third party control
this.dgnNav.CurrentPage;
Thanks And Regards,
Guru
|
|
|
|
|
Have you tried asking the makers of the third party control?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I have a grid view in a web page, i am using paging for that, the problem is if the grid view contains 2 or 3 records, these rows occupy entire grid view space(i.e full height of the grid view), is there any way to control this, i want the row height to be static even there 2 rows or 200 rows.
Thanks in advance
|
|
|
|
|
If you dont set the height property in the GridView, then it will only be as tall as it has to be.
|
|
|
|
|
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
|
|
|
|