Click here to Skip to main content
15,908,254 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Show processing message when button clicked Pin
M LN Rao3-Oct-06 23:14
M LN Rao3-Oct-06 23:14 
GeneralRe: Show processing message when button clicked Pin
Nitin19814-Oct-06 20:03
Nitin19814-Oct-06 20:03 
QuestionColor Precetnage in image Pin
whoispiyush3-Oct-06 20:30
whoispiyush3-Oct-06 20:30 
AnswerRe: Color Precetnage in image Pin
Sathesh Sakthivel3-Oct-06 22:35
Sathesh Sakthivel3-Oct-06 22:35 
AnswerRe: Color Precetnage in image Pin
just3ala23-Oct-06 22:43
just3ala23-Oct-06 22:43 
QuestionRetrive OLE object Pin
theintoehan3-Oct-06 20:28
theintoehan3-Oct-06 20:28 
QuestionError in Ajax Help Me Pin
alokdotnet3-Oct-06 18:08
alokdotnet3-Oct-06 18:08 
QuestionUrgent!!!!!!!!Activate checkbox in saveAs dialog box Pin
vikram1383-Oct-06 17:22
vikram1383-Oct-06 17:22 
Hi,

I am using the following code in codebehind file for creating a saveAs dialog box in webApplication in VB.net.

Dim filename As String = Session("DateTimeStampZip")
Dim fullPath As String = Server.MapPath(ConfigurationSettings.AppSettings("ServerDownload")) & "\" & filename
Dim dataStream As FileStream = New FileStream(fullPath,System.IO.FileMode.Open)
Dim fileLength As Integer = System.Convert.ToInt32(dataStream.Length)
dataStream.Close()
dataStream = Nothing
Response.Clear()
Response.ContentType = "application/octet-stream"
Response.AppendHeader("Content-Disposition", "attachment; filename=" & filename)
Response.AppendHeader("Content-length", fileLength.ToString())
Response.WriteFile(fullPath)
Response.End

My problem is that when I run the above code, I am getting a saveAs DialogBox with (checkbox:Always ask before opening this type of file.) shown in disabled mode..
With disabled I mean, in non-editable mode i.e; I am not able to check or uncheck the box.

When i click on open button in the box, same box pops up second time with the checkbox in enabled mode. Now i am able to open the file.

I want this saveAs dialogBox with the checkbox in enabled mode when I run the code first time and not after I click on open button in the dialog box.

Can anyone workout a solution to my problem..

PLease its urgent...

or any other way to create the dialog box using code in c# or vb.net...


Vikram Mera
QuestionWidth Pin
shapper3-Oct-06 15:31
shapper3-Oct-06 15:31 
AnswerRe: Width Pin
CWIZO3-Oct-06 22:31
CWIZO3-Oct-06 22:31 
AnswerRe: Width Pin
Guffa3-Oct-06 22:57
Guffa3-Oct-06 22:57 
Questionretrieve and uploading image in database Pin
saravanan053-Oct-06 12:36
saravanan053-Oct-06 12:36 
Questionretrieve image Pin
saravanan053-Oct-06 12:34
saravanan053-Oct-06 12:34 
AnswerRe: retrieve image Pin
just3ala23-Oct-06 23:00
just3ala23-Oct-06 23:00 
AnswerRe: retrieve image Pin
M LN Rao3-Oct-06 23:13
M LN Rao3-Oct-06 23:13 
QuestionWeb Deployment Project and Sub Web's Pin
Tad McClellan3-Oct-06 11:28
professionalTad McClellan3-Oct-06 11:28 
AnswerRe: Web Deployment Project and Sub Web's Pin
Tad McClellan3-Oct-06 12:00
professionalTad McClellan3-Oct-06 12:00 
AnswerRe: Web Deployment Project and Sub Web's Pin
Sathesh Sakthivel3-Oct-06 18:05
Sathesh Sakthivel3-Oct-06 18:05 
QuestionNaming on web publishing Pin
Rankor203-Oct-06 11:02
Rankor203-Oct-06 11:02 
AnswerRe: Naming on web publishing Pin
Tad McClellan3-Oct-06 11:26
professionalTad McClellan3-Oct-06 11:26 
QuestionFormat String for Decimal {0:D2} Pin
OldDog.Net3-Oct-06 9:25
OldDog.Net3-Oct-06 9:25 
AnswerRe: Format String for Decimal {0:D2} Pin
Jon Sagara3-Oct-06 9:50
Jon Sagara3-Oct-06 9:50 
GeneralRe: Format String for Decimal {0:D2} Pin
OldDog.Net4-Oct-06 2:52
OldDog.Net4-Oct-06 2:52 
AnswerRe: Format String for Decimal {0:D2} Pin
Guffa3-Oct-06 9:51
Guffa3-Oct-06 9:51 
GeneralRe: Format String for Decimal {0:D2} Pin
OldDog.Net4-Oct-06 2:56
OldDog.Net4-Oct-06 2:56 

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.