Hi All,
I've been using Asp.net1.1 for a few years now but when I create an app in 2.0, I don't see a C:\inetpub\wwwroot directory anymore.
In the past i created a single web.config file and placed on the root of my local machine (c:\inetpub\wwwroot), which allows a global database...
Interesting artical.
Just one question.
In the 9th code block that begins with:
----
For Each Item In MyCollection
----
on page http://aspnet.4guysfromrolla.com/articles/041603-1.2.aspx
the ITEM variable needs to be defined. What declaration should I use?
Hi All,
I have two listboxes on my page with autopostback =true where I do some processing.
When the page comes back the scroll position in each always defaults back to the top position. The selected data is retained but the user has to scroll all the way back down again.
Is there a way to...
It's kind of starnge what the itembound routine does. am forced to split a text box into 2 textboxes when a certain condition is met.
That code exists in the itembound routine.
Is there a way to call the OnItemDataBound routine without performing a databind?
My OnItemDataBound routine is called LoadItemData(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
There is some logic in there that needs to be done but I don't want the data values to be loaded from...
I have a datagrid with two columns, Label and textbox. When the data is being read and the fieldname is, lets say, "Testfield", i need to represent that as a checkbox instead of a textbox.
Hi All,
For one filed in my databound grid, I need to convert it from a textbox to a checkbox. But I cannot figure out the exact coding. I tried this but it doesn't work. It bombs out on the DIM statement below:
Sub LoadItemData(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
If...
Hi All,
I'm using a data repeater with an HTML table for a desired design look. But the tables seem to indent to the right each time the repeater creates a new table. I'm not sure why? Any help would be appreciated. Thanks.
<asp:repeater id="Repeater1" runat="server">...
yes. I tried may different ways but alas, when I press a button to update the checked data, all the checkboxes are identified as checked. The button does a postbox clearing out the checkbox values.
Guess I'm going to use a database field to keep track of their values and abandon the...
Hi checkai,
FYI: I was able to get the this to work. I had some code in the page_load which pervented the checkbox call routine from working.
Anyway, in the grid I set a DataKeyField. So in the "Check_Clicked" sub, how do I retrive that value.
This doesn't work:
Dim myDataGridItem...
Hi All,
I have a data grid with a few columns. The first column is a checkbox template and the last column holds numeric values.
When the user clicks the checkbox, I need to add up all the rows with the checkboxes checked and place that sum in textbox on the screen.
On the checkbox I have...
Hi All,
In my datagrid I want to use a template column as a hyperlink.
But I need to convert a database column value from a date to a single digit representing the day number. So I want to use the WEEKDAY date function as the data is being bound but I keep getting a compulation error where...
Hi ca8msm,
If i want to use properties for both reading and writing, how do i set them up:
weekrange="1234"
X=weekrange
Public Property WEEKRANGE(ByVal VLU) As String
Set(ByVal VLU As String)
End Set
End Property
I know session vars can be handy but keeping globals in an easly reable area is appealing. Session vars can be set anywhere and don't require declearation. So if someone looks at my code, they'll have to read all the files to see my session vars.
I've started using properties. They seem to...
Hi All,
I've been searching all through this forum to find out the best way to make/use Global variables accessible within my app based on a user session. Many people say use Session variables but there must be a better way.
I've tried created a class called GlobalClass but the values are...
Hi BoulderBum,
I was doing this:
Public Class CUAuctionLocalClass
Public ADMINID As String
Public EMPLID As String
...
Sub GetID
ADMINID = "TEST"
...
End Sub
End Class
--------------------------
Then from a code behind on a page:
Public Class Payments
Inherits...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.