Click here to Skip to main content
15,892,517 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: can somebody please tell me why this will not work? Pin
Yusuf2-Apr-09 6:15
Yusuf2-Apr-09 6:15 
GeneralRe: can somebody please tell me why this will not work? Pin
learningman2-Apr-09 10:30
learningman2-Apr-09 10:30 
Question[Message Deleted] Pin
liz32-Apr-09 5:38
liz32-Apr-09 5:38 
AnswerRe: Cookie concept question Pin
Yusuf2-Apr-09 5:50
Yusuf2-Apr-09 5:50 
QuestionResources Allocation in asp.net Pin
MallikarjunaGupta2-Apr-09 5:22
MallikarjunaGupta2-Apr-09 5:22 
AnswerRe: Resources Allocation in asp.net Pin
Yusuf2-Apr-09 5:35
Yusuf2-Apr-09 5:35 
Questionthe question about ActiveReport 2.0 with vb.net ... Pin
ice-hotty2-Apr-09 5:04
ice-hotty2-Apr-09 5:04 
GeneralRe: dropdownlist proble Pin
indian222-Apr-09 4:18
indian222-Apr-09 4:18 
I have tried but I don't whether I am right or wrong.
Following is my coding :
Page Load
If Not (Page.IsPostBack) Then
            Dim dataSource As DataView

            'Retrieve item from cache if anything is not there then we have to add to the cache


            dataSource = Cache("CheDataSet")

            If dataSource Is Nothing Then

                Dim Conn As SqlConnection
                Dim Cmd As SqlDataAdapter

                'Dim myConnection As New SqlConnection(ConfigurationSettings.AppSettings("con2"))
                Cmd = New SqlDataAdapter("select * from tblcutomer2", myConnection)

                Dim ds As New DataSet
                Cmd.Fill(ds, "clientadd")

                dataSource = New DataView(ds.Tables("clientadd"))
                Cache("CheDataSet") = dataSource

                CacheMsg.Text = "Dataset was Created directly from the Datebase. Here the Cache was not used but the Cache was Created,so check for the performence next time."
            Else

                cacheMsg.Text = "Dataset was Retrieved from cache which was created earlier."
            End If

            ddlcus.DataSource = dataSource
            ddlcus.DataTextField = "clientname"
            ddlcus.DataValueField = "intcustid"

            ddlcus.DataBind()
            ddlcus.Items.Insert(0, "-Select-")
        End If
-----------------------------------------------------------------------------------
Selected Index event:
---------------------
  Dim cmd As New SqlCommand("select intcustid,clientadd as address from tblcutomer2 where intcustid='" & ddlcus.SelectedItem.Value & "' ", myConnection)
        myConnection.Open()
        Dim myDataReader As SqlDataReader
        myDataReader = cmd.ExecuteReader()
        While (myDataReader.Read()) = True

            txtcusadd.Text = myDataReader("address")
        End While
        myDataReader.Close()
        myConnection.Close()



But it takes more time to display address of the selected customer.Can you plz suggest me to reduce the time
GeneralRe: dropdownlist proble Pin
Yusuf2-Apr-09 5:42
Yusuf2-Apr-09 5:42 
QuestionJavaScript Function does not work on the server? Pin
codddy2-Apr-09 4:10
codddy2-Apr-09 4:10 
AnswerRe: JavaScript Function does not work on the server? Pin
Yusuf2-Apr-09 5:51
Yusuf2-Apr-09 5:51 
QuestionAny alternate method to get ip address , browser version and type in C# not in js Pin
Alok Sharma ji2-Apr-09 3:18
Alok Sharma ji2-Apr-09 3:18 
AnswerGet IP address in VB Pin
David Mujica2-Apr-09 4:44
David Mujica2-Apr-09 4:44 
GeneralRe: Get IP address in VB Pin
Alok Sharma ji2-Apr-09 12:22
Alok Sharma ji2-Apr-09 12:22 
Question[Message Deleted] Pin
Alok Sharma ji2-Apr-09 3:14
Alok Sharma ji2-Apr-09 3:14 
AnswerRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
ToddHileHoffer2-Apr-09 3:17
ToddHileHoffer2-Apr-09 3:17 
GeneralRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
Alok Sharma ji2-Apr-09 3:26
Alok Sharma ji2-Apr-09 3:26 
GeneralRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
ToddHileHoffer2-Apr-09 3:49
ToddHileHoffer2-Apr-09 3:49 
GeneralRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
Alok Sharma ji2-Apr-09 3:56
Alok Sharma ji2-Apr-09 3:56 
GeneralRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
Yusuf2-Apr-09 6:18
Yusuf2-Apr-09 6:18 
GeneralRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
ToddHileHoffer2-Apr-09 7:39
ToddHileHoffer2-Apr-09 7:39 
GeneralRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
Alok Sharma ji2-Apr-09 12:13
Alok Sharma ji2-Apr-09 12:13 
QuestionError using ItextSharp dll Pin
tauras812-Apr-09 1:59
tauras812-Apr-09 1:59 
AnswerRe: Error using ItextSharp dll Pin
Dev S2-Apr-09 2:02
Dev S2-Apr-09 2:02 
GeneralRe: Error using ItextSharp dll Pin
tauras812-Apr-09 2:23
tauras812-Apr-09 2:23 

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.