Click here to Skip to main content
15,905,686 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How can i store entire path of a file which has uploaded through asp.net upload control Pin
Guffa24-Oct-07 9:15
Guffa24-Oct-07 9:15 
QuestionCopy/Paste Functionality with GridView in ASP.net Pin
Learning ASP.NET24-Oct-07 1:02
Learning ASP.NET24-Oct-07 1:02 
AnswerRe: Copy/Paste Functionality with GridView in ASP.net Pin
SHatchard24-Oct-07 1:05
SHatchard24-Oct-07 1:05 
GeneralRe: Copy/Paste Functionality with GridView in ASP.net Pin
Learning ASP.NET24-Oct-07 1:08
Learning ASP.NET24-Oct-07 1:08 
QuestionImplementing Copy/Paste functionality from Excel shhet to GridView in asp.net Pin
Learning ASP.NET24-Oct-07 0:48
Learning ASP.NET24-Oct-07 0:48 
QuestionDDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 0:24
Sarfaraj Ahmed24-Oct-07 0:24 
AnswerRe: DDL and selected item identity Pin
John-ph24-Oct-07 0:37
John-ph24-Oct-07 0:37 
GeneralRe: DDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 0:54
Sarfaraj Ahmed24-Oct-07 0:54 
This is my code,
I put your code but cant bind the data, could please have a look and please tell me what should i do


Protected Sub ddlCategory_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlCategory.Init<br />
        Dim conn As SqlConnection = New SqlConnection(Web.Configuration.WebConfigurationManager.ConnectionStrings("OxfordLibrary").ConnectionString)<br />
        Dim queryString As String = "SELECT CATEGORYNAME AS 'CATEGORY NAME' FROM BOOKSCATEGORY ORDER BY CATEGORYNAME ASC"<br />
        Try<br />
            conn.Open()<br />
            Dim comm As SqlCommand = New SqlCommand(queryString, conn)<br />
            Dim adapter As SqlDataAdapter = New SqlDataAdapter(comm)<br />
            Dim ds As DataSet = New DataSet()<br />
            ds.Clear()<br />
            adapter.Fill(ds)<br />
<br />
            ddlCategory.DataSource = ds<br />
            ddlCategory.DataTextField = "CATEGORY NAME"<br />
            ddlCategory.DataBind()<br />
<br />
            ddlCategory.Items.Insert(0, New ListItem("Select One..", "Value"))<br />
<br />
<br />
            conn.Close()<br />
        Catch ex As Exception<br />
<br />
            conn.Close()<br />
        End Try<br />
    End Sub


Sarfarj Ahmed

GeneralRe: DDL and selected item identity Pin
John-ph24-Oct-07 1:01
John-ph24-Oct-07 1:01 
GeneralRe: DDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 1:24
Sarfaraj Ahmed24-Oct-07 1:24 
GeneralRe: DDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 1:17
Sarfaraj Ahmed24-Oct-07 1:17 
GeneralRe: DDL and selected item identity Pin
John-ph24-Oct-07 1:25
John-ph24-Oct-07 1:25 
GeneralRe: DDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 1:37
Sarfaraj Ahmed24-Oct-07 1:37 
GeneralRe: DDL and selected item identity Pin
John-ph24-Oct-07 1:41
John-ph24-Oct-07 1:41 
GeneralRe: DDL and selected item identity Pin
Sarfaraj Ahmed24-Oct-07 1:49
Sarfaraj Ahmed24-Oct-07 1:49 
Questionscrollbar on top of the page..., Pin
Member 387988124-Oct-07 0:22
Member 387988124-Oct-07 0:22 
JokeRe: scrollbar on top of the page..., Pin
Fred_Smith24-Oct-07 0:53
Fred_Smith24-Oct-07 0:53 
Questioniam not getting minimize button in label in debugging Pin
jagadeeshkumar198424-Oct-07 0:22
jagadeeshkumar198424-Oct-07 0:22 
Questiongetting change forecolor depend on if statement Pin
VinothRao24-Oct-07 0:04
VinothRao24-Oct-07 0:04 
AnswerRe: getting change forecolor depend on if statement Pin
Christian Graus24-Oct-07 0:21
protectorChristian Graus24-Oct-07 0:21 
QuestionSpeed Pin
mihksoft23-Oct-07 23:51
mihksoft23-Oct-07 23:51 
AnswerRe: Speed Pin
Christian Graus23-Oct-07 23:52
protectorChristian Graus23-Oct-07 23:52 
AnswerRe: Speed Pin
Guffa24-Oct-07 2:34
Guffa24-Oct-07 2:34 
QuestionUpload a file to database Pin
mukesh.mr0323-Oct-07 23:48
mukesh.mr0323-Oct-07 23:48 
AnswerRe: Upload a file to database Pin
Christian Graus23-Oct-07 23:51
protectorChristian Graus23-Oct-07 23:51 

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.