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

ASP.NET

 
QuestionOpen a server side document using a client's program Pin
markymark8222-Feb-07 22:35
markymark8222-Feb-07 22:35 
AnswerRe: Open a server side document using a client's program Pin
Paddy Boyd22-Feb-07 22:37
Paddy Boyd22-Feb-07 22:37 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 22:44
markymark8222-Feb-07 22:44 
GeneralRe: Open a server side document using a client's program Pin
markymark8222-Feb-07 23:51
markymark8222-Feb-07 23:51 
Questionneed help for print the webpage content Pin
sPaudel22-Feb-07 22:29
sPaudel22-Feb-07 22:29 
AnswerRe: need help for print the webpage content Pin
Paddy Boyd22-Feb-07 22:39
Paddy Boyd22-Feb-07 22:39 
AnswerRe: need help for print the webpage content Pin
Suresh Pirsquare23-Feb-07 5:38
Suresh Pirsquare23-Feb-07 5:38 
QuestionDropdown List Pin
Member 374156222-Feb-07 22:28
Member 374156222-Feb-07 22:28 
I have a webform whereby i use a dropdown list to select fields like title,province etc. but the problem is that when i select a value from the dropdown and click save button,the field in the database becomes blank.
my code is as follows:
BUSINESS LAYER
Public Function GetTitle() As Data.DataSet

Dim strSQL As String
Dim obj As Datalayer.Database = New Datalayer.Database

'strSQL = "Select * from UserProfile with (nolock) where UserName='" & strUserName & "' and Status = 'A'"
strSQL = "Select TitleID, Title from Title1 with (nolock) "

GetTitle = obj.GetDataSet(strSQL)
obj.Close()
Exit Function
End Function

PRESENTATION LAYER

Private Sub LoadTitle()
Dim ds As New Data.DataSet
Dim objdata As Businesslayer.Contractors = New Businesslayer.Contractors
ds = objdata.GetTitle
cbotitle.DataSource = ds
cbotitle.DataBind()
cbotitle.Items.Add(New ListItem("Select...", ""))
cbotitle.Items.Item(cbotitle.Items.Count - 1).Selected = True
End Sub

BUTTON SAVE


Dim obj As Businesslayer.Contractors = New Businesslayer.Contractors
Dim ds As Data.DataSet
ds = obj.Getcontractor(txtfirstname.Text)

obj.AddContractor(txtID.Text, cbotitle.SelectedItem.Value, cbogender.SelectedItem.Value, txtfirstname.Text, txtlastname.Text, _
txtIDNumber.Text, txttel.Text, txtcell.Text, txtfax.Text, txtemail.Text, _
cbodepartment.SelectedItem.Value, txtlocation.Text, txtcity.Text, txtpostal.Text, txtoccupation.Text, cbomtype.SelectedItem.Value, _
cboprovince.SelectedItem.Value, txtpassport.Text)

UserMsgBox("Successfully add")


Karabo Mekgwe
AnswerRe: Dropdown List Pin
Michael Sync22-Feb-07 23:00
Michael Sync22-Feb-07 23:00 
Questionneed help for print the webpage programetically Pin
sPaudel22-Feb-07 22:27
sPaudel22-Feb-07 22:27 
AnswerRe: need help for print the webpage programetically Pin
Hesham Amin22-Feb-07 22:31
Hesham Amin22-Feb-07 22:31 
Questionproblem regarding query string Pin
Member 309559322-Feb-07 22:21
Member 309559322-Feb-07 22:21 
AnswerRe: problem regarding query string Pin
Michael Sync22-Feb-07 22:48
Michael Sync22-Feb-07 22:48 
Questiondatalist in usercontrol and itemcommand not firing?? Pin
Tridip Bhattacharjee22-Feb-07 22:01
professionalTridip Bhattacharjee22-Feb-07 22:01 
AnswerRe: datalist in usercontrol and itemcommand not firing?? Pin
Michael Sync22-Feb-07 22:22
Michael Sync22-Feb-07 22:22 
Questionhttp://localhost not working. Pin
siddisagar22-Feb-07 20:28
siddisagar22-Feb-07 20:28 
AnswerRe: http://localhost not working. Pin
Harini N K22-Feb-07 21:14
Harini N K22-Feb-07 21:14 
AnswerRe: http://localhost not working. Pin
icestatue23-Feb-07 1:55
icestatue23-Feb-07 1:55 
QuestionGridview + asp.net 2.0 + c# Pin
ritu432122-Feb-07 20:20
ritu432122-Feb-07 20:20 
AnswerRe: Gridview + asp.net 2.0 + c# Pin
Tuwing.Sabado22-Feb-07 21:45
Tuwing.Sabado22-Feb-07 21:45 
GeneralRe: Gridview + asp.net 2.0 + c# Pin
badgrs22-Feb-07 23:02
badgrs22-Feb-07 23:02 
QuestionFont size increases on Postback,, Pin
Bobb198222-Feb-07 19:58
Bobb198222-Feb-07 19:58 
AnswerRe: Font size increases on Postback,, Pin
Sandeep Akhare22-Feb-07 21:29
Sandeep Akhare22-Feb-07 21:29 
AnswerRe: Font size increases on Postback,, Pin
Harini N K22-Feb-07 21:32
Harini N K22-Feb-07 21:32 
AnswerRe: Font size increases on Postback,, Pin
Tuwing.Sabado22-Feb-07 22:11
Tuwing.Sabado22-Feb-07 22:11 

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.