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

ASP.NET

 
AnswerRe: XSLT - for-each-group Pin
Not Active28-Jul-11 1:06
mentorNot Active28-Jul-11 1:06 
Questionexport multiple crystal reports to a single destination PDF Pin
vvibha27-Jul-11 20:19
vvibha27-Jul-11 20:19 
AnswerRe: export multiple crystal reports to a single destination PDF Pin
Orcun Iyigun27-Jul-11 21:12
Orcun Iyigun27-Jul-11 21:12 
GeneralRe: export multiple crystal reports to a single destination PDF Pin
vvibha27-Jul-11 23:55
vvibha27-Jul-11 23:55 
QuestionTextbox value dissappear when using FilteredTextboxExtender Pin
Orcun Iyigun27-Jul-11 12:45
Orcun Iyigun27-Jul-11 12:45 
AnswerRe: Textbox value dissappear when using FilteredTextboxExtender Pin
Shahriar Iqbal Chowdhury/Galib27-Jul-11 22:35
professionalShahriar Iqbal Chowdhury/Galib27-Jul-11 22:35 
GeneralRe: Textbox value dissappear when using FilteredTextboxExtender Pin
Orcun Iyigun28-Jul-11 10:25
Orcun Iyigun28-Jul-11 10:25 
QuestionFile Uploader No Longer Working Pin
Dominick Marciano27-Jul-11 7:53
professionalDominick Marciano27-Jul-11 7:53 
On a previous site I designed I had the ability for the company to upload documents that were stored directly in SQL database. Now I'm working on a different site in which the client needs to be able to upload images directly to a database. So I decided to reuse my code and it didn't work. My markup for the ASPX page for the upload control is:

<tr>
      <td>
            <asp:AsyncFileUpload ID="ImageUploader" runat="server" 
                                    UploaderStyle="Modern" ThrobberID="myThrobber"
                                    UploadingBackColor="Yellow" 
                                    CompleteBackColor="Green" ErrorBackColor="Red" />
      </td>
      <td>
            <asp:Image ID="myThrobber" runat="server" ImageUrl="~/Images/uploading.gif"
                          Visible="true" />
      </td>
</tr>


In the code behind I have a method that actually stores in the ImageUploader file contents to the database called StoreFile. I stepped through the code and found that the problem is in the very beginning where I try to read the bytes of the ImageUploader.FileContent:

Dim bufferLen As Integer = 8040
Dim br As BinaryReader = New BinaryReader(ImageUploader.FileContent)
Dim chunk As Byte() = br.ReadBytes(bufferLen)


Through the debugger I see that chunk has no data in it after the read operation. I figured that there was a problem with the ImageUploader.FileContent having no data. However the length of the file content is 48,336 for the image I'm doing the testing with. So if the file content has data, why is the read operation not placing it into the byte array? I even thought that it might have something to do with the post back of the update button so I even included parameters to pass the ImageUploader.FileContent stream by reference from the button's click event to StoreFile method, albeit with no luck.

Any help would be greatly appreciated since no matter how I try and modify this code, the read operation does not read the file contents data. Thanks in advance.
QuestionHow to use minRequiredPasswordLength and minRequiredNonalphanumericCharacters? Pin
kbalias27-Jul-11 0:17
kbalias27-Jul-11 0:17 
Questioni want to select mssql2005 or mssql2008 where 2005, 2008 was instlled. Pin
buffering8326-Jul-11 17:23
buffering8326-Jul-11 17:23 
AnswerRe: i want to select mssql2005 or mssql2008 where 2005, 2008 was instlled. Pin
m@dhu26-Jul-11 18:45
m@dhu26-Jul-11 18:45 
AnswerRe: i want to select mssql2005 or mssql2008 where 2005, 2008 was instlled. Pin
Shameel26-Jul-11 21:13
professionalShameel26-Jul-11 21:13 
GeneralHow to get value from invisible column in gridview Pin
sujitdeshpande_1926-Jul-11 2:48
sujitdeshpande_1926-Jul-11 2:48 
GeneralRe: How to get value from invisible column in gridview Pin
Orcun Iyigun26-Jul-11 6:22
Orcun Iyigun26-Jul-11 6:22 
GeneralRe: How to get value from invisible column in gridview Pin
GenJerDan28-Jul-11 6:17
GenJerDan28-Jul-11 6:17 
QuestionProject Code in Asp.net Pin
Akshaya Kumar Patel25-Jul-11 21:44
Akshaya Kumar Patel25-Jul-11 21:44 
AnswerRe: Project Code in Asp.net Pin
Blue_Boy25-Jul-11 23:06
Blue_Boy25-Jul-11 23:06 
AnswerRe: Project Code in Asp.net Pin
R. Giskard Reventlov26-Jul-11 0:11
R. Giskard Reventlov26-Jul-11 0:11 
AnswerRe: Project Code in Asp.net Pin
Not Active26-Jul-11 14:03
mentorNot Active26-Jul-11 14:03 
QuestionHow to identify a particular Web site is not active Pin
Gali197825-Jul-11 7:53
Gali197825-Jul-11 7:53 
AnswerRe: How to identify a particular Web site is not active Pin
R. Giskard Reventlov25-Jul-11 8:03
R. Giskard Reventlov25-Jul-11 8:03 
QuestionHow can Interchange the Language of Web? Pin
Naseem Alam Ansari25-Jul-11 4:12
Naseem Alam Ansari25-Jul-11 4:12 
AnswerRe: How can Interchange the Language of Web? Pin
Blue_Boy25-Jul-11 4:25
Blue_Boy25-Jul-11 4:25 
AnswerRe: How can Interchange the Language of Web? Pin
Dalek Dave27-Jul-11 23:04
professionalDalek Dave27-Jul-11 23:04 
QuestionMessage to user when email not unique? Pin
kbalias25-Jul-11 1:38
kbalias25-Jul-11 1:38 

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.