Click here to Skip to main content
15,897,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: trying to add a class library to a solution in vs2008 but solution icon disappears Pin
Abhishek Sur20-Mar-10 14:02
professionalAbhishek Sur20-Mar-10 14:02 
QuestionPassing Values to ActiveX Controls during Runtime Pin
VikashGohil20-Mar-10 8:11
VikashGohil20-Mar-10 8:11 
QuestionHow to maintain Session in Multiple Servers? Pin
meeram39520-Mar-10 6:49
meeram39520-Mar-10 6:49 
AnswerRe: How to maintain Session in Multiple Servers? Pin
Abhijit Jana20-Mar-10 7:14
professionalAbhijit Jana20-Mar-10 7:14 
QuestionHow to create multilingual website using asp.net2.0 with c# Pin
developerit19-Mar-10 22:37
developerit19-Mar-10 22:37 
AnswerRe: How to create multilingual website using asp.net2.0 with c# Pin
PSK_19-Mar-10 23:29
PSK_19-Mar-10 23:29 
AnswerRe: How to create multilingual website using asp.net2.0 with c# Pin
Manas Bhardwaj20-Mar-10 11:21
professionalManas Bhardwaj20-Mar-10 11:21 
QuestionZeros doesnt get displayed in my vb.net application... Pin
<<Tash18>>19-Mar-10 21:28
<<Tash18>>19-Mar-10 21:28 
Hi guys..
In my web application which is on vb.net framework1.1 VS2003, Im actually populating an HTML table based on the records retrieved from the database.. Now above the Table I have a button on clicking it the table gets exported to Excel.. Heres the issue.. now in my table i display Userid which is for example: 001258, 001259 etc.. while displaying it on the table its fine but while exporting it to excel my userid on the excel sheet gets changed from 001258 to 1258 the issue is all the zeros present at the beginning gets vanished.. The code that i use for exporting the table to Excel is as follows:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnExp.Click
'I have stored My dataset 'DS' in  Session("app")
        DataSetToExcel.Convert(Session("app"), Response)

    End Sub

        Public Shared Sub Convert(ByVal ds As DataSet, ByVal response As HttpResponse)
            response.Clear()
            response.Charset = ""
            response.ContentType = "application/vnd.ms-excel"
            Dim stringWrite As New System.IO.StringWriter
            Dim htmlWrite As New System.Web.UI.HtmlTextWriter(stringWrite)
            Dim dg As New DataGrid
            dg.DataSource = ds.Tables(0)
            dg.DataBind()
            dg.RenderControl(htmlWrite)
            response.Write(stringWrite.ToString)
            response.End()
        End Sub


Do please Advice me reagarding this issue... Mean while im also googling it out..

Thanx in advance...
Tash
AnswerRe: Zeros doesnt get displayed in my vb.net application... Pin
Not Active19-Mar-10 21:40
mentorNot Active19-Mar-10 21:40 
QuestionMSChart printing Pin
Tufail Ahmad19-Mar-10 20:04
Tufail Ahmad19-Mar-10 20:04 
AnswerRe: MSChart printing Pin
Rutvik Dave23-Mar-10 8:50
professionalRutvik Dave23-Mar-10 8:50 
GeneralRe: MSChart printing Pin
Tufail Ahmad6-Apr-10 2:02
Tufail Ahmad6-Apr-10 2:02 
Questioni want to scan the document using twain_32.dll in asp.net with vb.net Pin
vbmadhavi19-Mar-10 19:25
vbmadhavi19-Mar-10 19:25 
Answerplzzzzzzzz help me it's urgent. Pin
Not Active19-Mar-10 19:51
mentorNot Active19-Mar-10 19:51 
AnswerRe: i want to scan the document using twain_32.dll in asp.net with vb.net Pin
The Man from U.N.C.L.E.20-Mar-10 4:59
The Man from U.N.C.L.E.20-Mar-10 4:59 
QuestionUse of Javascript in ajax enabled Asp.net content pages Pin
kris_viswa19-Mar-10 19:08
kris_viswa19-Mar-10 19:08 
AnswerRe: Use of Javascript in ajax enabled Asp.net content pages Pin
Not Active19-Mar-10 19:49
mentorNot Active19-Mar-10 19:49 
GeneralRe: Use of Javascript in ajax enabled Asp.net content pages Pin
kris_viswa19-Mar-10 20:02
kris_viswa19-Mar-10 20:02 
QuestionRecent problem with UpdateProgress Pin
ESTAN19-Mar-10 13:18
ESTAN19-Mar-10 13:18 
AnswerRe: Recent problem with UpdateProgress Pin
ESTAN19-Mar-10 14:55
ESTAN19-Mar-10 14:55 
QuestionHow to create moving thumbnails? Pin
northridge19-Mar-10 7:35
northridge19-Mar-10 7:35 
AnswerRe: How to create moving thumbnails? Pin
T M Gray19-Mar-10 8:35
T M Gray19-Mar-10 8:35 
GeneralRe: How to create moving thumbnails? Pin
northridge19-Mar-10 11:00
northridge19-Mar-10 11:00 
GeneralRe: How to create moving thumbnails? Pin
Austin Cherry19-Mar-10 12:36
Austin Cherry19-Mar-10 12:36 
GeneralRe: How to create moving thumbnails? Pin
northridge19-Mar-10 12:56
northridge19-Mar-10 12: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.