Click here to Skip to main content
16,004,887 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Login/Logout Problem Pin
specialdreamsin1-Apr-09 21:54
specialdreamsin1-Apr-09 21:54 
AnswerRe: Login/Logout Problem [modified] Pin
kumar_k5081-Apr-09 23:18
kumar_k5081-Apr-09 23:18 
AnswerRe: Login/Logout Problem Pin
Alok Sharma ji2-Apr-09 12:56
Alok Sharma ji2-Apr-09 12:56 
QuestionUnterminated string constant Pin
rakeshs3121-Apr-09 18:28
rakeshs3121-Apr-09 18:28 
AnswerRe: Unterminated string constant Pin
Piyush Vardhan Singh1-Apr-09 20:03
Piyush Vardhan Singh1-Apr-09 20:03 
QuestionVS 2008 Unit Testing Null Exception Error Pin
dboy2211-Apr-09 15:59
dboy2211-Apr-09 15:59 
AnswerRe: VS 2008 Unit Testing Null Exception Error Pin
N a v a n e e t h1-Apr-09 17:15
N a v a n e e t h1-Apr-09 17:15 
QuestionExporting Grdiview using itextsharp Pin
Mfzc1-Apr-09 14:02
Mfzc1-Apr-09 14:02 
Hi All,

I am using itexthsharp to export my gridview to PDF and one of my column is an image and I am stuck on to add it to the code. Here is the code I am testing:
Protected Sub btnExport_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim columnCount As Integer = GridView1.Columns.Count
Dim rowCount As Integer = GridView1.Rows.Count
Dim tableRows As Integer = rowCount + 3
Dim grdTable As New iTextSharp.text.Table(columnCount, tableRows)
grdTable.BorderWidth = 1
grdTable.BorderColor = New Color(0, 0, 255)
grdTable.Cellpadding = 5
grdTable.Cellspacing = 5
Dim c1 As New Cell("Exporting paging enabled GridView to PDF example")
c1.Header = True
c1.Colspan = 2
grdTable.AddCell(c1)
Dim c2 As New Cell("By amiT jaiN , amit_jain_online@yahoo.com")
c2.Header = True
c2.Colspan = 4
grdTable.AddCell(c2)
grdTable.AddCell("Name")
grdTable.AddCell("Description")
grdTable.AddCell("Price")
grdTable.AddCell("Thumbnail")
For rowCounter As Integer = 0 To rowCount - 1
For columnCounter As Integer = 0 To columnCount - 1
Dim strValue As String = GridView1.Rows(rowCounter).Cells(columnCounter).Text
grdTable.AddCell(strValue)
Next
Next
Dim Doc As New Document()
PdfWriter.GetInstance(Doc, Response.OutputStream)
Doc.Open()
Doc.Add(grdTable)
Doc.Close()
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment; filename=AmitJain.pdf")
Response.[End]()
End Sub

As you can see I need to include the "Thumbnail" column as an image.

Thank you
QuestionHow to configure web app to allow strong type parameters in web service??? Pin
Member 39190491-Apr-09 13:47
Member 39190491-Apr-09 13:47 
QuestionHow I can convert my '<%# Eval.......%>' code in Page.aspx to Page.aspx.vb ? Pin
Saba021-Apr-09 12:31
Saba021-Apr-09 12:31 
AnswerRe: How I can convert my '<%# Eval.......%>' code in Page.aspx to Page.aspx.vb ? Pin
N a v a n e e t h1-Apr-09 17:19
N a v a n e e t h1-Apr-09 17:19 
Questionhow do I suppress specific warning messages Pin
MakingALiving1-Apr-09 9:13
MakingALiving1-Apr-09 9:13 
AnswerRe: how do I suppress specific warning messages Pin
mr_muskurahat1-Apr-09 21:59
mr_muskurahat1-Apr-09 21:59 
GeneralRe: how do I suppress specific warning messages Pin
MakingALiving2-Apr-09 2:22
MakingALiving2-Apr-09 2:22 
GeneralRe: how do I suppress specific warning messages Pin
mr_muskurahat2-Apr-09 7:36
mr_muskurahat2-Apr-09 7:36 
GeneralRe: how do I suppress specific warning messages Pin
MakingALiving2-Apr-09 9:30
MakingALiving2-Apr-09 9:30 
QuestionProblem displaying aspx file Pin
StuffyEst1-Apr-09 8:54
StuffyEst1-Apr-09 8:54 
AnswerRe: Problem displaying aspx file Pin
MakingALiving1-Apr-09 9:44
MakingALiving1-Apr-09 9:44 
GeneralRe: Problem displaying aspx file Pin
StuffyEst1-Apr-09 11:03
StuffyEst1-Apr-09 11:03 
GeneralRe: Problem displaying aspx file Pin
MakingALiving2-Apr-09 2:34
MakingALiving2-Apr-09 2:34 
GeneralRe: Problem displaying aspx file Pin
StuffyEst2-Apr-09 11:17
StuffyEst2-Apr-09 11:17 
Questionmaking available all features of an worddocument Pin
praveenjakkuva1-Apr-09 6:33
praveenjakkuva1-Apr-09 6:33 
AnswerRe: making available all features of an worddocument Pin
Colin Angus Mackay1-Apr-09 6:49
Colin Angus Mackay1-Apr-09 6:49 
AnswerRe: making available all features of an worddocument Pin
Christian Graus1-Apr-09 10:05
protectorChristian Graus1-Apr-09 10:05 
QuestionControlChars in a RequiredFieldValidator Pin
Ragonastick1-Apr-09 5:40
Ragonastick1-Apr-09 5:40 

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.