Click here to Skip to main content
15,890,825 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionsqlserver roles in .net form???????? Pin
Member 387988112-Apr-07 3:32
Member 387988112-Apr-07 3:32 
AnswerRe: sqlserver roles in .net form???????? Pin
Chetan Ranpariya12-Apr-07 21:11
Chetan Ranpariya12-Apr-07 21:11 
QuestionHello frameset problem?? Pin
Amr M. K.12-Apr-07 2:55
Amr M. K.12-Apr-07 2:55 
QuestionAccess file in the client machine Pin
sivainfo12-Apr-07 2:41
sivainfo12-Apr-07 2:41 
AnswerRe: Access file in the client machine Pin
kubben12-Apr-07 4:34
kubben12-Apr-07 4:34 
GeneralRe: Access file in the client machine Pin
sivainfo12-Apr-07 17:46
sivainfo12-Apr-07 17:46 
GeneralRe: Access file in the client machine Pin
kubben13-Apr-07 1:50
kubben13-Apr-07 1:50 
QuestionIt's urget please help me with this code Pin
Oga M12-Apr-07 2:12
Oga M12-Apr-07 2:12 
Please help me with this code
*************
Protected Sub ButtonSubMana_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonSubMana.Click
Dim ds1 As New Data.DataSet
Dim obj As Businesslayer.TimeSheet = New Businesslayer.TimeSheet
Dim NumberOfBoxes As Integer
Dim WhichBox As Integer
NumberOfBoxes = Integer.Parse(WhichBox)
Dim rows(NumberOfBoxes) As Integer
Dim Repeater1 As Repeater

For WhichBox = 0 To NumberOfBoxes
Dim txtDate As TextBox = CType(Repeater1.Items(WhichBox).FindControl("txtDate"), TextBox)
Dim cmbProjectName As DropDownList = CType(Repeater1.Items(WhichBox).FindControl("cmbProjectName"), DropDownList)
Dim cmbClientSite As DropDownList = CType(Repeater1.Items(WhichBox).FindControl("cmbClientSite"), DropDownList)
Dim cmbProjectManager As DropDownList = CType(Repeater1.Items(WhichBox).FindControl("cmbProjectManager"), DropDownList)
Dim cmbProjectMember As DropDownList = CType(Repeater1.Items(WhichBox).FindControl("cmbProjectMember"), DropDownList)
Dim cmbCategory As DropDownList = CType(Repeater1.Items(WhichBox).FindControl("cmbCategory"), DropDownList)
Dim cmbOccupation As DropDownList = CType(Repeater1.Items(WhichBox).FindControl("cmbOccupation"), DropDownList)
Dim txtHours As TextBox = CType(Repeater1.Items(WhichBox).FindControl("txtHours"), TextBox)
Dim CheckBox1 As CheckBox = CType(Repeater1.Items(WhichBox).FindControl("CheckBox1"), CheckBox)
Dim txtDescription As TextBox = CType(Repeater1.Items(WhichBox).FindControl("txtDescription"), TextBox)

obj.addTimesheet(txtIDNumber.Text, cmbProjectName.SelectedItem.Text, cmbClientSite.SelectedItem.Text, cmbProjectManager.SelectedItem.Text, cmbProjectMember.SelectedItem.Text, cmbOccupation.SelectedItem.Text, txtDate.Text, Double.Parse(txtHours.Text), txtDescription.Text, CheckBox1.Checked, cmbCategory.SelectedItem.Text)
Next

Dim Manager_Id(0) As Integer
Dim Timesheet(0) As String
Dim i As Integer

For i = Manager_Id To Timesheet
Manager_Id(i) = Manager_Id(i - 1) + Manager_Id(i - Timesheet)
Next

Me.DataSource = Manager_Id
Me.Repeater1.DataBind()

Dim from As MailAddress = New MailAddress("boipelo@ecominstitute.com", "Boipelo Mothusi")
Dim recieve As MailAddress = New MailAddress("sydney@ecominstitute.com", "Synney Masobuka")
Dim message As MailMessage = New MailMessage(from, recieve)
message.Subject = "Using the SmtpClient class."
message.Body = "Using this feature, you can send an e-mail message from an application very easily."
'Dim copy As MailAddress = New MailAddress("Notification_List@contoso.com")
'message.CC.Add(copy)
Dim client As SmtpClient = New SmtpClient("srjhbex01", 25)
client.Send(message)

'If message.To Then
' UserMsgBox("Successfully add")
'End If

End Sub
************
when I chick Button Manager1.information captured in the repeater,be save.It is saving I don't have problem with it.2.Msg to pop-up ,to alert the user that the information has been sent(doesn't work I really don't know what the problem).3.I now have a PROBLEM OF GROUPNG ARRAYS SO THAT,WHEN THE USER CLICK ON THAT BUTTON,IT MUST SEND ONE E-MAIL TO DIFFERENT Project Manager,(for e.g if I captured 2 TimeSheet ,when I click the button send only one mail to the manager not 2,to alert him that there are nwe timesheet need to be approved)

oga m
QuestionURLRewriting of a Pathname like (www.myspace.com/[username]) Pin
Succodimele12-Apr-07 2:10
Succodimele12-Apr-07 2:10 
AnswerRe: URLRewriting of a Pathname like (www.myspace.com/[username]) Pin
e2canoe12-Apr-07 4:50
e2canoe12-Apr-07 4:50 
GeneralRe: URLRewriting of a Pathname like (www.myspace.com/[username]) Pin
Succodimele15-Apr-07 20:54
Succodimele15-Apr-07 20:54 
Questioni want code for crating dynamic check boxes in panel. and i need to store the id's of checked when i click submit button. Pin
haneef112-Apr-07 1:24
haneef112-Apr-07 1:24 
QuestionI will created dynamic check boxes in panel but it losing the checked values when i reloads Pin
haneef112-Apr-07 1:19
haneef112-Apr-07 1:19 
AnswerRe: I will created dynamic check boxes in panel but it losing the checked values when i reloads Pin
Naveed Kamboh12-Apr-07 3:27
Naveed Kamboh12-Apr-07 3:27 
Questionurgent Pin
Shuaib wasif khan12-Apr-07 1:00
Shuaib wasif khan12-Apr-07 1:00 
AnswerRe: urgent Pin
gauthee12-Apr-07 1:08
gauthee12-Apr-07 1:08 
AnswerRe: urgent Pin
enjoycrack12-Apr-07 2:27
enjoycrack12-Apr-07 2:27 
Questionhow to play audio in 2003 Pin
Kirtibangalore12-Apr-07 0:53
Kirtibangalore12-Apr-07 0:53 
AnswerRe: how to play audio in 2003 Pin
Goalie3512-Apr-07 4:27
Goalie3512-Apr-07 4:27 
AnswerRe: how to play audio in 2003 Pin
e2canoe12-Apr-07 4:57
e2canoe12-Apr-07 4:57 
Questionhow to properly hide elements Pin
markymark8212-Apr-07 0:36
markymark8212-Apr-07 0:36 
AnswerRe: how to properly hide elements Pin
gauthee12-Apr-07 0:39
gauthee12-Apr-07 0:39 
GeneralRe: how to properly hide elements Pin
markymark8212-Apr-07 0:52
markymark8212-Apr-07 0:52 
GeneralRe: how to properly hide elements Pin
gauthee12-Apr-07 1:10
gauthee12-Apr-07 1:10 
AnswerRe: how to properly hide elements Pin
kubben12-Apr-07 5:43
kubben12-Apr-07 5:43 

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.