Click here to Skip to main content
15,890,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: gridview hyperlinkfield Pin
J a a n s18-Feb-08 5:24
professionalJ a a n s18-Feb-08 5:24 
Questionhow can we add rows to a grid view and maintain data in it Pin
samerh18-Feb-08 3:01
samerh18-Feb-08 3:01 
AnswerRe: how can we add rows to a grid view and maintain data in it Pin
ToddHileHoffer18-Feb-08 8:53
ToddHileHoffer18-Feb-08 8:53 
Generalpass variable from gridview to next page Pin
eyeseetee18-Feb-08 2:34
eyeseetee18-Feb-08 2:34 
GeneralRe: pass variable from gridview to next page Pin
Imran Khan Pathan18-Feb-08 2:38
Imran Khan Pathan18-Feb-08 2:38 
GeneralRe: pass variable from gridview to next page Pin
eyeseetee18-Feb-08 3:12
eyeseetee18-Feb-08 3:12 
GeneralRe: pass variable from gridview to next page Pin
eyeseetee18-Feb-08 3:35
eyeseetee18-Feb-08 3:35 
QuestionZip file Download problem.. Pin
rain raj18-Feb-08 2:33
rain raj18-Feb-08 2:33 
Hello Genious..

I have some word files on server.. that i need to download all of them together..
So i have only one option that first i create a zip file from all these files and then then download this zip file..

So my functionality achived.

But when i extract these zip file and opens word any of word files within downloaded zip file, Opened Word file shows only byte data means some thing like lots of Sqaures which may be same as bytes of files..
and obeviously word file should display actual content in readable character..

Any Suggestons will appreciated...



If needed the please refer to my code..



For i As Integer = 0 To strFileToDownload.Count - 1

Dim strFileName As String = Path.GetFileName(strFileToDownload(i))
Dim MyFileStream As FileStream = File.OpenRead(strFileToDownload(i))
Dim buff() As Byte = New Byte((MyFileStream.Length)) {}
'Dim zipEntry As New ZipEntry(strFileToDownload(i))
Dim zipEntry As New ZipEntry(strFileName)
zipOS.PutNextEntry(zipEntry)
zipOS.Write(buff, 0, buff.Length)
zipOS.InitializeLifetimeService()
MyFileStream.Close()
Next
' Compress and close the zip file
zipOS.Finish()
zipOS.Close()


Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/zip"
Response.AddHeader("Content-Disposition", "attachment; filename=" + "CMM " + strProjectSize + " size Project Documents" + System.IO.Path.GetFileName(strNow))
Response.WriteFile(strNow)
Response.Flush()
Response.Clear()
QuestionSorting changed it's order when click edit button and go to next page through paging ! Pin
sahoo.satya198418-Feb-08 2:29
sahoo.satya198418-Feb-08 2:29 
GeneralRe: Sorting changed it's order when click edit button and go to next page through paging ! Pin
Imran Khan Pathan18-Feb-08 2:35
Imran Khan Pathan18-Feb-08 2:35 
Questionhow to do Edit,Update and Insert in DetailsView ? Pin
mahmoud wafy18-Feb-08 2:16
mahmoud wafy18-Feb-08 2:16 
AnswerRe: how to do Edit,Update and Insert in DetailsView ? Pin
J a a n s18-Feb-08 5:02
professionalJ a a n s18-Feb-08 5:02 
Generalcache problem Pin
hsch2918-Feb-08 2:16
hsch2918-Feb-08 2:16 
GeneralChange visibility of control after download Pin
Krugger40418-Feb-08 2:07
Krugger40418-Feb-08 2:07 
GeneralRe: Change visibility of control after download Pin
Mircea Puiu18-Feb-08 5:19
Mircea Puiu18-Feb-08 5:19 
GeneralGridview variable Pin
eyeseetee18-Feb-08 1:29
eyeseetee18-Feb-08 1:29 
Generaltreeview Pin
niki_nilu18-Feb-08 1:14
niki_nilu18-Feb-08 1:14 
Questionmessage box in asp.net Pin
Sonia Gupta18-Feb-08 0:57
Sonia Gupta18-Feb-08 0:57 
GeneralRe: message box in asp.net Pin
Imran Khan Pathan18-Feb-08 1:03
Imran Khan Pathan18-Feb-08 1:03 
GeneralRe: message box in asp.net Pin
Bluebamboo18-Feb-08 1:06
Bluebamboo18-Feb-08 1:06 
GeneralConvert html to image Pin
Imran Khan Pathan18-Feb-08 0:51
Imran Khan Pathan18-Feb-08 0:51 
GeneralRe: Convert html to image Pin
soni uma18-Feb-08 0:58
soni uma18-Feb-08 0:58 
Generalradiobuttonlist and asp.net2.0 Pin
ritu432118-Feb-08 0:46
ritu432118-Feb-08 0:46 
GeneralRe: radiobuttonlist and asp.net2.0 Pin
Imran Khan Pathan18-Feb-08 0:53
Imran Khan Pathan18-Feb-08 0:53 
GeneralRe: radiobuttonlist and asp.net2.0 Pin
ritu432118-Feb-08 1:04
ritu432118-Feb-08 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.