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

ASP.NET

 
AnswerRe: how to display nopicture image in a image control when there is no image in a database using asp.net with c# Pin
Brij10-May-10 2:37
mentorBrij10-May-10 2:37 
AnswerRe: how to display nopicture image in a image control when there is no image in a database using asp.net with c# Pin
Tej Aj10-May-10 2:58
Tej Aj10-May-10 2:58 
AnswerRe: how to display nopicture image in a image control when there is no image in a database using asp.net with c# Pin
Martin Jarvis10-May-10 12:49
Martin Jarvis10-May-10 12:49 
QuestionMake webpage sleep for a while Pin
seemadas10-May-10 1:04
seemadas10-May-10 1:04 
AnswerRe: Make webpage sleep for a while Pin
Abhijit Jana10-May-10 1:27
professionalAbhijit Jana10-May-10 1:27 
GeneralRe: Make webpage sleep for a while Pin
seemadas10-May-10 1:34
seemadas10-May-10 1:34 
AnswerRe: Make webpage sleep for a while Pin
Brij10-May-10 2:48
mentorBrij10-May-10 2:48 
QuestionInsert Skips When use in a Loop Pin
yogesh_kumar_agarwal10-May-10 0:20
yogesh_kumar_agarwal10-May-10 0:20 
When i used to upload the excel file, i inserts the records but it used to skip the insertion, like my file has 9000 records it insert 8890 or 8800 sometimes 8950, plz suggest what would be the possible reason.

Dim conexcel As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("upload/" & FileUpload1.FileName) & "; Extended Properties=Excel 8.0")
Dim cmd As New OleDbCommand("select * from [Sheet1$]", conexcel)


Try
    If ConnectionState.Open Then
        conexcel.Close()
    End If
    conexcel.Open()
    Dim dr As OleDbDataReader
    dr = cmd.ExecuteReader()

    Dim act, cnt, ds, cf, co, distt, dtype As String

    act = ddl_Activity.SelectedItem.Text.ToString()
    cnt = ddl_Center.SelectedItem.Text.ToString()
    ds = ddl_DataSource.SelectedItem.Text.ToString()
    distt = ddl_Distt.SelectedItem.Text.ToString()
    bcode = UCase(bcode) & "/" & distt & "/" & act & "/" & bno.ToString()
    dtype = ddl_DataType.SelectedItem.Text.ToString()

    Try
        Dim name, cnt1, cnt2 As String
        name = ""
        cnt1 = ""
        cnt2 = ""
        cf = ""
        co = ""

        Dim m, p As Int64
        m = 1
        While (dr.Read())
            name = Trim(dr(0).ToString())
            cnt1 = Trim(dr(1).ToString())
            cnt2 = Trim(dr(2).ToString())
            cf = Trim(dr(3).ToString())
            co = Trim(dr(4).ToString())

            Dim str As String
            If cnt1 <> "" Or name <> "" Then
                str = "insert into tbl_edu_dt(full_name,contact1,contact2,Activity,Center,DistName,DataSource,Collected_From,Collected_On,batch_code,batch_id,imp_date,imp_time,Data_Type) values ('" & name & "','" & cnt1 & "','" & cnt2 & "','" & act & "','" & cnt & "','" & distt & "','" & ds & "','" & cf & "' , '" & co & "','" & bcode & "','" & m & "','" & Format(Now(), "dd/MM/yyyy") & "','" & imp_time & "','" + dtype + "')"
                ObjClass.execute_query(str)

                m = m + 1
            End If
        End While

    Catch ex As Exception

    End Try
    conexcel.Close()
    File.Delete(Server.MapPath("~/Upload/" + FileUpload1.FileName))
Catch ex As Exception
    Response.Write(ex)
End Try

AnswerRe: Insert Skips When use in a Loop Pin
Michel Godfroid10-May-10 0:45
Michel Godfroid10-May-10 0:45 
GeneralRe: Insert Skips When use in a Loop Pin
yogesh_kumar_agarwal10-May-10 1:32
yogesh_kumar_agarwal10-May-10 1:32 
GeneralRe: Insert Skips When use in a Loop Pin
Michel Godfroid10-May-10 1:44
Michel Godfroid10-May-10 1:44 
AnswerRe: Insert Skips When use in a Loop Pin
Abhijit Jana10-May-10 0:59
professionalAbhijit Jana10-May-10 0:59 
GeneralRe: Insert Skips When use in a Loop Pin
yogesh_kumar_agarwal10-May-10 1:36
yogesh_kumar_agarwal10-May-10 1:36 
GeneralRe: Insert Skips When use in a Loop Pin
Abhijit Jana10-May-10 1:42
professionalAbhijit Jana10-May-10 1:42 
GeneralRe: Insert Skips When use in a Loop Pin
Michel Godfroid10-May-10 2:01
Michel Godfroid10-May-10 2:01 
AnswerRe: Insert Skips When use in a Loop Pin
Martin Jarvis10-May-10 12:34
Martin Jarvis10-May-10 12:34 
QuestionPermission Issue Pin
Hema Bairavan10-May-10 0:15
Hema Bairavan10-May-10 0:15 
AnswerRe: Permission Issue Pin
Michel Godfroid10-May-10 1:12
Michel Godfroid10-May-10 1:12 
GeneralRe: Permission Issue Pin
Hema Bairavan10-May-10 1:36
Hema Bairavan10-May-10 1:36 
AnswerRe: Permission Issue Pin
Abhijit Jana10-May-10 1:30
professionalAbhijit Jana10-May-10 1:30 
GeneralRe: Permission Issue Pin
Hema Bairavan10-May-10 1:40
Hema Bairavan10-May-10 1:40 
QuestionGet Orkut friends list Pin
sunit_8210-May-10 0:00
sunit_8210-May-10 0:00 
AnswerRe: Get Orkut friends list Pin
Abhijit Jana10-May-10 1:34
professionalAbhijit Jana10-May-10 1:34 
AnswerRe: Get Orkut friends list Pin
sunit_8210-May-10 5:39
sunit_8210-May-10 5:39 
AnswerRe: Get Orkut friends list Pin
moneymachine1-Oct-10 10:42
moneymachine1-Oct-10 10:42 

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.