473,554 Members | 2,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with background color of table cell

I have a routine that is called on Page_Init. It retrieves folder records
from a database which I display as Link Buttons in a table cell. I set the
table cell's bgcolor to a default color (say black for example). I am
dynamically creating the LinkButton controls and adding them into the table
cell and I've also hooked up an event handler for each LinkButton's Click
event. This all works fine.

Now in the Link Button's Click event handler, I set the background of the
LinkButton's parent (which is the table cell I initially color Black) to
white. This too works fine. My problem occurs when I click another
LinkButton. The table cell it resides also turns white, but the previous one
doesn't restore back to black. Can someone help? I've posted the code below.
I figured that the click would cause a trip to the server, which would call
page_init which inturn would call DisplayFolders which would set the table
cell to black.

Imports System.Data
Imports System.Data.Sql Client
Imports System.Web.UI.W ebControls

Public Class StoredProcedure s : Inherits System.Web.UI.P age

#Region " Variable Declarations "

Private SelectedFolder As String = ""
Private designerPlaceho lderDeclaration As System.Object
Protected WithEvents Form1 As System.Web.UI.H tmlControls.Htm lForm
Protected WithEvents TextBox1 As System.Web.UI.W ebControls.Text Box
Protected WithEvents FolderList As
System.Web.UI.H tmlControls.Htm lTableCell
Protected WithEvents FolderContents As
System.Web.UI.H tmlControls.Htm lTableCell

Private ConnectionStrin g As String = "Data Source=localhos t;" & _
"Initial Catalog=Yahoo;" & _
"User Id=sa;" & _
"Password=lvteo peh;" & _
"Connect Timeout=15;" & _
"Network Library=dbmssoc n;"

#End Region

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> _
Private Sub InitializeCompo nent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
InitializeCompo nent()

End Sub

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
DisplayFolders( )
End Sub

#End Region

#Region " Methods / Properties "

Public Sub DisplayFolders( )

' Declarations.
Dim ds As DataSet
Dim cm As SqlCommand
Dim cn As SqlConnection
Dim da As SqlDataAdapter

Dim intFolderCount As Long

' Initialization.
ds = New DataSet
da = New SqlDataAdapter
cn = New SqlConnection(C onnectionString )
cm = New SqlCommand("Get Folders", cn)

' *************** *************** *************** *****
' Setup the command object (Type & Parameters)
' *************** *************** *************** *****
With cm
.CommandType = CommandType.Sto redProcedure
.Parameters.Add ("@UserID", SqlDbType.Int). Direction =
ParameterDirect ion.Input
.Parameters.Add ("@FolderCount" , SqlDbType.Int). Direction =
ParameterDirect ion.Output
.Parameters.Add ("@Return_Value ", SqlDbType.Int). Direction =
ParameterDirect ion.ReturnValue
.Parameters("@U serID").Value = 2
End With

' Set the command to execute to the stored procedure command object.
da.SelectComman d = cm

' Fill our dataset and place the results into a temporary table
namespace, "Results"
da.Fill(ds, "Results")

' *************** *************** *************** *****
' Create the table and display the folders.
' *************** *************** *************** *****
CreateFolderTab le(ds)

cn.Close()
ds.Dispose()
da.Dispose()
cn.Dispose()
cm.Dispose()

End Sub

Public Sub DisplayFolderCo ntents(ByVal FolderID As Integer)

' Declarations.
Dim ds As DataSet
Dim cm As SqlCommand
Dim cn As SqlConnection
Dim da As SqlDataAdapter

Dim intFolderCount As Long

' Initialization.
ds = New DataSet
da = New SqlDataAdapter
cn = New SqlConnection(C onnectionString )
cm = New SqlCommand("Get Notes", cn)

' *************** *************** *************** *****
' Setup the command object (Type & Parameters)
' *************** *************** *************** *****
With cm
.CommandType = CommandType.Sto redProcedure
.Parameters.Add ("@intUser", SqlDbType.Int). Direction =
ParameterDirect ion.Input
.Parameters.Add ("@intFolder ", SqlDbType.Int). Direction =
ParameterDirect ion.Input
.Parameters.Add ("@intNotesCoun t", SqlDbType.Int). Direction =
ParameterDirect ion.Output
.Parameters.Add ("@Return_Value ", SqlDbType.Int). Direction =
ParameterDirect ion.ReturnValue
.Parameters("@i ntUser").Value = 1
.Parameters("@i ntFolder").Valu e = 1
End With

' Set the command to execute to the stored procedure command object.
da.SelectComman d = cm

' Fill our dataset and place the results into a temporary table
namespace, "Results"
da.Fill(ds, "Results")

' *************** *************** *************** *****
' Create the table and display the folder's notes.
' *************** *************** *************** *****
CreateFolderCon tentsTable(ds)

cn.Close()
ds.Dispose()
da.Dispose()
cn.Dispose()
cm.Dispose()

End Sub

Private Sub CreateFolderTab le(ByRef ds As DataSet)

Dim dr As DataRow
Dim dt As DataTable
Dim lnk As LinkButton
Dim tbl As New HtmlTable
Dim intFolderCount As Integer

' Get the number of folders returned.
intFolderCount = ds.Tables(0).Ro ws.Count()

' Setup the table object properties.
With tbl
.Width = "200"
.CellSpacing = "1"
.CellPadding = "1"
End With

' Create an "All" folder for each user.
CreateFolderRow (tbl, -1, "All")

' If there were rows, display the folders.
If intFolderCount > 0 Then

' Get a reference to the results table in the dataset.
dt = ds.Tables(0)

' Loop through each row in the dataset and display it to page.
For Each dr In dt.Rows

CreateFolderRow (tbl, CType(dr(0), Integer), CType(dr(1),
String))

Next

' Now, add this table to the table cell we've designated to hold
the folders table.
FolderList.Cont rols.Add(tbl)

End If

dr = Nothing
dt = Nothing
tbl = Nothing

End Sub

Private Sub CreateFolderCon tentsTable(ByRe f ds As DataSet)

Dim dr As DataRow
Dim dt As DataTable
Dim lnk As LinkButton
Dim tr1 As HtmlTableRow
Dim tc1 As HtmlTableCell
Dim tc2 As HtmlTableCell
Dim tbl As New HtmlTable
Dim intFolderCount As Integer

' Get the number of folders returned.
intFolderCount = ds.Tables(0).Ro ws.Count()

' If there were rows, display the folders.
If intFolderCount > 0 Then

' Get a reference to the results table in the dataset.
dt = ds.Tables(0)

With tbl
.Width = "200"
.CellSpacing = "1"
.CellPadding = "1"
End With

' Loop through each row in the dataset and display it to page.
For Each dr In dt.Rows

tr1 = New HtmlTableRow
tc1 = New HtmlTableCell
tc2 = New HtmlTableCell

' Created a padded cell to give the folder list a padded
feel.
With tc1
.Width = "20"
.Align = "right"
.Controls.Add(N ew LiteralControl( "&nbsp;"))
End With

' Create a new link button.
lnk = New LinkButton

' Add a property to hold the SQL ID of the folder.
lnk.Attributes. Add("fid", Trim(dr(0)))
lnk.ForeColor = Color.Black

' Add a Click event handler.
AddHandler lnk.Click, AddressOf FolderItem_Clic k

' Set the text to be the folder's name.
lnk.Text = Trim(dr(1))

' Display the link.
With tc2
.Width = "180"
.Align = "left"
.Controls.Add(l nk)
.Style.Add("fon t-family", "verdana")
.Style.Add("fon t-size", "10px")
End With

' Add the cell to the table row.
With tr1
.Cells.Add(tc1)
.Cells.Add(tc2)
End With

' Add the table row to the table.
tbl.Rows.Add(tr 1)

Next

' Now, add this table to the table cell we've designated to hold
the folders table.
FolderList.Cont rols.Add(tbl)

Else

tr1 = New HtmlTableRow
tc1 = New HtmlTableCell

' We want to display one row with "No Folders".
With tc1
.InnerHtml = "No Folders"
.Width = 200
End With

' Add the cell to the table row.
tr1.Cells.Add(t c1)

' Add the table row to the table.
tbl.Rows.Add(tr 1)

End If

tr1 = Nothing
tc1 = Nothing
tc2 = Nothing
tbl = Nothing

' Clean up our table iteration objects.
dr = Nothing
dt = Nothing

End Sub

Private Function CreateLinkButto n(ByVal ID As Integer, ByVal Text As
String) As Control

Dim lnk As LinkButton

' Create a new link button.
lnk = New LinkButton

' Add a property to hold the SQL ID of the folder.
lnk.Attributes. Add("fid", ID)

' Set the text for the item black.
lnk.ForeColor = Color.Black

' Set the text to be the folder's name.
lnk.Text = Text

Return lnk

End Function

Private Sub CreateFolderRow (ByRef tbl As HtmlTable, ByVal ID As Integer,
ByVal Text As String)

Dim tr1 As HtmlTableRow
Dim tc1 As HtmlTableCell
Dim tc2 As HtmlTableCell
Dim lnk As LinkButton

tr1 = New HtmlTableRow
tc1 = New HtmlTableCell
tc2 = New HtmlTableCell

' Created a padded cell to give the folder list a padded feel.
With tc1
.Width = "20"
.Align = "right"
.BgColor = "#d5d0cc"
.Controls.Add(N ew LiteralControl( "&nbsp;"))
If ID.ToString = SelectedFolder Then .BgColor = "#FFFFFF"
End With

' Display the link.
With tc2

.Width = "180"
.Align = "left"
.BgColor = "#d5d0cc"
.Style.Add("fon t-size", "10px")
.Style.Add("fon t-family", "verdana")

' Create a link button for this folder.
lnk = CreateLinkButto n(ID, Text)

' Hook up the plumbing so we can handle click events.
AddHandler lnk.Click, AddressOf FolderItem_Clic k

' Add the link button to the table's controls collection.
.Controls.Add(l nk)

' Change the background of the item if this is the selected
folder.
If ID.ToString = SelectedFolder Then .BgColor = "#FFFFFF"

End With

' Add the cell to the table row.
With tr1
.Cells.Add(tc1)
.Cells.Add(tc2)
End With

' Add the table row to the table.
tbl.Rows.Add(tr 1)

tr1 = Nothing
tc1 = Nothing
tc2 = Nothing

End Sub

#End Region
#Region " Events "

Private Sub FolderItem_Clic k(ByVal sender As Object, ByVal e As
System.EventArg s)

Dim strID As String = ""
Dim lb As LinkButton = CType(sender, LinkButton)

' Get the FID attribute of the folder link button.
strID = lb.Attributes.I tem("FID").ToSt ring()

Dim tc As HtmlTableCell
tc = lb.Parent
If Not (tc Is Nothing) Then tc.BgColor = "#ffffff"
' Set the selected folder.
SelectedFolder = strID

' If the ID is numeric, display the folder's contents.
If IsNumeric(strID ) Then DisplayFolderCo ntents(CType(st rID,
Integer))

End Sub

#End Region

End Class
Nov 18 '05 #1
1 3533
I hate it when I figure things out after writing a lengthy post!
Setting the table's EnableViewState property to false rectified the problem.
Thanks

------------------------------------------------------------------------

"Thanks" <th****@thanks. com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I have a routine that is called on Page_Init. It retrieves folder records
from a database which I display as Link Buttons in a table cell. I set the
table cell's bgcolor to a default color (say black for example). I am
dynamically creating the LinkButton controls and adding them into the table cell and I've also hooked up an event handler for each LinkButton's Click
event. This all works fine.

Now in the Link Button's Click event handler, I set the background of the
LinkButton's parent (which is the table cell I initially color Black) to
white. This too works fine. My problem occurs when I click another
LinkButton. The table cell it resides also turns white, but the previous one doesn't restore back to black. Can someone help? I've posted the code below. I figured that the click would cause a trip to the server, which would call page_init which inturn would call DisplayFolders which would set the table
cell to black.

Imports System.Data
Imports System.Data.Sql Client
Imports System.Web.UI.W ebControls

Public Class StoredProcedure s : Inherits System.Web.UI.P age

#Region " Variable Declarations "

Private SelectedFolder As String = ""
Private designerPlaceho lderDeclaration As System.Object
Protected WithEvents Form1 As System.Web.UI.H tmlControls.Htm lForm
Protected WithEvents TextBox1 As System.Web.UI.W ebControls.Text Box
Protected WithEvents FolderList As
System.Web.UI.H tmlControls.Htm lTableCell
Protected WithEvents FolderContents As
System.Web.UI.H tmlControls.Htm lTableCell

Private ConnectionStrin g As String = "Data Source=localhos t;" & _
"Initial Catalog=Yahoo;" & _
"User Id=sa;" & _
"Password=lvteo peh;" & _
"Connect Timeout=15;" & _
"Network Library=dbmssoc n;"

#End Region

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> _
Private Sub InitializeCompo nent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
InitializeCompo nent()

End Sub

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
DisplayFolders( )
End Sub

#End Region

#Region " Methods / Properties "

Public Sub DisplayFolders( )

' Declarations.
Dim ds As DataSet
Dim cm As SqlCommand
Dim cn As SqlConnection
Dim da As SqlDataAdapter

Dim intFolderCount As Long

' Initialization.
ds = New DataSet
da = New SqlDataAdapter
cn = New SqlConnection(C onnectionString )
cm = New SqlCommand("Get Folders", cn)

' *************** *************** *************** *****
' Setup the command object (Type & Parameters)
' *************** *************** *************** *****
With cm
.CommandType = CommandType.Sto redProcedure
.Parameters.Add ("@UserID", SqlDbType.Int). Direction =
ParameterDirect ion.Input
.Parameters.Add ("@FolderCount" , SqlDbType.Int). Direction =
ParameterDirect ion.Output
.Parameters.Add ("@Return_Value ", SqlDbType.Int). Direction =
ParameterDirect ion.ReturnValue
.Parameters("@U serID").Value = 2
End With

' Set the command to execute to the stored procedure command object. da.SelectComman d = cm

' Fill our dataset and place the results into a temporary table
namespace, "Results"
da.Fill(ds, "Results")

' *************** *************** *************** *****
' Create the table and display the folders.
' *************** *************** *************** *****
CreateFolderTab le(ds)

cn.Close()
ds.Dispose()
da.Dispose()
cn.Dispose()
cm.Dispose()

End Sub

Public Sub DisplayFolderCo ntents(ByVal FolderID As Integer)

' Declarations.
Dim ds As DataSet
Dim cm As SqlCommand
Dim cn As SqlConnection
Dim da As SqlDataAdapter

Dim intFolderCount As Long

' Initialization.
ds = New DataSet
da = New SqlDataAdapter
cn = New SqlConnection(C onnectionString )
cm = New SqlCommand("Get Notes", cn)

' *************** *************** *************** *****
' Setup the command object (Type & Parameters)
' *************** *************** *************** *****
With cm
.CommandType = CommandType.Sto redProcedure
.Parameters.Add ("@intUser", SqlDbType.Int). Direction =
ParameterDirect ion.Input
.Parameters.Add ("@intFolder ", SqlDbType.Int). Direction =
ParameterDirect ion.Input
.Parameters.Add ("@intNotesCoun t", SqlDbType.Int). Direction =
ParameterDirect ion.Output
.Parameters.Add ("@Return_Value ", SqlDbType.Int). Direction =
ParameterDirect ion.ReturnValue
.Parameters("@i ntUser").Value = 1
.Parameters("@i ntFolder").Valu e = 1
End With

' Set the command to execute to the stored procedure command object. da.SelectComman d = cm

' Fill our dataset and place the results into a temporary table
namespace, "Results"
da.Fill(ds, "Results")

' *************** *************** *************** *****
' Create the table and display the folder's notes.
' *************** *************** *************** *****
CreateFolderCon tentsTable(ds)

cn.Close()
ds.Dispose()
da.Dispose()
cn.Dispose()
cm.Dispose()

End Sub

Private Sub CreateFolderTab le(ByRef ds As DataSet)

Dim dr As DataRow
Dim dt As DataTable
Dim lnk As LinkButton
Dim tbl As New HtmlTable
Dim intFolderCount As Integer

' Get the number of folders returned.
intFolderCount = ds.Tables(0).Ro ws.Count()

' Setup the table object properties.
With tbl
.Width = "200"
.CellSpacing = "1"
.CellPadding = "1"
End With

' Create an "All" folder for each user.
CreateFolderRow (tbl, -1, "All")

' If there were rows, display the folders.
If intFolderCount > 0 Then

' Get a reference to the results table in the dataset.
dt = ds.Tables(0)

' Loop through each row in the dataset and display it to page.
For Each dr In dt.Rows

CreateFolderRow (tbl, CType(dr(0), Integer), CType(dr(1),
String))

Next

' Now, add this table to the table cell we've designated to hold the folders table.
FolderList.Cont rols.Add(tbl)

End If

dr = Nothing
dt = Nothing
tbl = Nothing

End Sub

Private Sub CreateFolderCon tentsTable(ByRe f ds As DataSet)

Dim dr As DataRow
Dim dt As DataTable
Dim lnk As LinkButton
Dim tr1 As HtmlTableRow
Dim tc1 As HtmlTableCell
Dim tc2 As HtmlTableCell
Dim tbl As New HtmlTable
Dim intFolderCount As Integer

' Get the number of folders returned.
intFolderCount = ds.Tables(0).Ro ws.Count()

' If there were rows, display the folders.
If intFolderCount > 0 Then

' Get a reference to the results table in the dataset.
dt = ds.Tables(0)

With tbl
.Width = "200"
.CellSpacing = "1"
.CellPadding = "1"
End With

' Loop through each row in the dataset and display it to page.
For Each dr In dt.Rows

tr1 = New HtmlTableRow
tc1 = New HtmlTableCell
tc2 = New HtmlTableCell

' Created a padded cell to give the folder list a padded
feel.
With tc1
.Width = "20"
.Align = "right"
.Controls.Add(N ew LiteralControl( "&nbsp;"))
End With

' Create a new link button.
lnk = New LinkButton

' Add a property to hold the SQL ID of the folder.
lnk.Attributes. Add("fid", Trim(dr(0)))
lnk.ForeColor = Color.Black

' Add a Click event handler.
AddHandler lnk.Click, AddressOf FolderItem_Clic k

' Set the text to be the folder's name.
lnk.Text = Trim(dr(1))

' Display the link.
With tc2
.Width = "180"
.Align = "left"
.Controls.Add(l nk)
.Style.Add("fon t-family", "verdana")
.Style.Add("fon t-size", "10px")
End With

' Add the cell to the table row.
With tr1
.Cells.Add(tc1)
.Cells.Add(tc2)
End With

' Add the table row to the table.
tbl.Rows.Add(tr 1)

Next

' Now, add this table to the table cell we've designated to hold the folders table.
FolderList.Cont rols.Add(tbl)

Else

tr1 = New HtmlTableRow
tc1 = New HtmlTableCell

' We want to display one row with "No Folders".
With tc1
.InnerHtml = "No Folders"
.Width = 200
End With

' Add the cell to the table row.
tr1.Cells.Add(t c1)

' Add the table row to the table.
tbl.Rows.Add(tr 1)

End If

tr1 = Nothing
tc1 = Nothing
tc2 = Nothing
tbl = Nothing

' Clean up our table iteration objects.
dr = Nothing
dt = Nothing

End Sub

Private Function CreateLinkButto n(ByVal ID As Integer, ByVal Text As
String) As Control

Dim lnk As LinkButton

' Create a new link button.
lnk = New LinkButton

' Add a property to hold the SQL ID of the folder.
lnk.Attributes. Add("fid", ID)

' Set the text for the item black.
lnk.ForeColor = Color.Black

' Set the text to be the folder's name.
lnk.Text = Text

Return lnk

End Function

Private Sub CreateFolderRow (ByRef tbl As HtmlTable, ByVal ID As Integer, ByVal Text As String)

Dim tr1 As HtmlTableRow
Dim tc1 As HtmlTableCell
Dim tc2 As HtmlTableCell
Dim lnk As LinkButton

tr1 = New HtmlTableRow
tc1 = New HtmlTableCell
tc2 = New HtmlTableCell

' Created a padded cell to give the folder list a padded feel.
With tc1
.Width = "20"
.Align = "right"
.BgColor = "#d5d0cc"
.Controls.Add(N ew LiteralControl( "&nbsp;"))
If ID.ToString = SelectedFolder Then .BgColor = "#FFFFFF"
End With

' Display the link.
With tc2

.Width = "180"
.Align = "left"
.BgColor = "#d5d0cc"
.Style.Add("fon t-size", "10px")
.Style.Add("fon t-family", "verdana")

' Create a link button for this folder.
lnk = CreateLinkButto n(ID, Text)

' Hook up the plumbing so we can handle click events.
AddHandler lnk.Click, AddressOf FolderItem_Clic k

' Add the link button to the table's controls collection.
.Controls.Add(l nk)

' Change the background of the item if this is the selected
folder.
If ID.ToString = SelectedFolder Then .BgColor = "#FFFFFF"

End With

' Add the cell to the table row.
With tr1
.Cells.Add(tc1)
.Cells.Add(tc2)
End With

' Add the table row to the table.
tbl.Rows.Add(tr 1)

tr1 = Nothing
tc1 = Nothing
tc2 = Nothing

End Sub

#End Region
#Region " Events "

Private Sub FolderItem_Clic k(ByVal sender As Object, ByVal e As
System.EventArg s)

Dim strID As String = ""
Dim lb As LinkButton = CType(sender, LinkButton)

' Get the FID attribute of the folder link button.
strID = lb.Attributes.I tem("FID").ToSt ring()

Dim tc As HtmlTableCell
tc = lb.Parent
If Not (tc Is Nothing) Then tc.BgColor = "#ffffff"
' Set the selected folder.
SelectedFolder = strID

' If the ID is numeric, display the folder's contents.
If IsNumeric(strID ) Then DisplayFolderCo ntents(CType(st rID,
Integer))

End Sub

#End Region

End Class

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6750
by: dhunter | last post by:
I'm kind of new to CSS and hope someone knows how to fix a problem I've been fighting with for days. I'm trying to create a mouseover navbar with CSS which inserts a colored background JPG that fills a transparent cell using "a:hover" and inserts a different colored JPG after you click on the link and are on the linked page ("a:active" I...
5
30049
by: Thierry Schembri | last post by:
Hi ! I'm facing problems with a background image in a table (with IE & Opera), it works with FF : the <tr> has a background image, but the background repeats in each <td> ex : tr background -> "this is the background"
3
4742
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
5
11079
by: proximus | last post by:
Hi, I am trying to change the background of table TD's. The problem is that I have no access to the HTML code. SO I am trying to alter this using Javascript/DOM in an external .js file. I have tried lot's of things and spent hours on this, I thought I might give it a try here. One of the TD's uses HTML to set the background, the other...
4
2762
by: Hiwj | last post by:
I am having a problem with a cell in a table in ASP.NET which used to work OK in classic ASP. I have one cell in a row where the width should be 22 pixels and the other cell should take up the remainder of the width available. In ASP.NET the 2nd cell (when set to 100%) is 500 pixels wide (hence overlapping the image in row 1), wheras in...
1
3406
by: jamesm6162 | last post by:
Hi I have the following XSL-FO document that I'm testing with the FOP processor. The table I put in, however, is completely stuck to the left side of the body-region, regardless of which margins or paddings I insert. How do I indent the whole table? This is extremely frustrating. Thanks <fo:flow flow-name="xsl-region-body">...
2
3001
by: swethak | last post by:
hi , i write the code in .htm file. It is in cgi-bin/searches/one.htm.In that i write a form submitting and validations.But validations are not worked in that .htm file. I used the same code in my local system that validations work.plz tell that whats the problem in that. Here is my code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
11
4992
by: jessy | last post by:
Hi, I have a problem with my DateTimePicker javascript code which i downloaded , the problem is when i pick the date and the date appears in my Text Field and i click Submit the date which i picked is not sent to the DB and instead the default value of the text field which is 00-00-0000 is Sent so what i need is to make the value i picked...
3
6662
dmjpro
by: dmjpro | last post by:
I think iText commonly used to create or manipulate PDF document in Java. So finally i decided to throw a question over here. For two days i am struggling. I encountered two types of table .. 1>Table: table can be easily created with row span or col span but still has a problem with vertical alignment of cell content. 2>PdfPTable: table can...
0
7780
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8010
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6119
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5136
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3539
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3530
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1994
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1111
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
812
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.