oops. try this:
Select Case e.Item.ItemType
Case ListItemType.Item or ListItemType.AlternatingItem
If e.Item.Cells(1).Text = "-1" Then
e.Item.BackColor = System.Drawing.Color.Red
End If
End Select
If you don't specify an expiration date for a cookie, the cookie is treated as an in-session cookie only. Do this to set the expiration date for one month.
Public Sub setCookie(title, name, value)
Dim cookie As new Web.HttpCookie(title)
cookie.Values.Add(name, value)...
Try something like this...
======================================
Sub dgOrders_ItemCreated(ByVal Sender As Object, ByVal e As DataGridItemEventArgs) Handles dgOrders.ItemCreated
Select Case e.Item.ItemType
Case ListItemType.Item or ListItemType.AlternatingItem
Dim iNum As Integer =...
"Access denied to 'D:\Inetpub\wwwTEST2\registration\' directory. Failed to start monitoring directory changes."
I have given full rights to the ASPNET user to the entire Inetpub directory.
When I run "Check Server Extensions" there are no errors.
I am running a total of...
Is it possible to create my own spider, to read in the contents of an HTML page on another site, then regurgitate the contents of that page within my own site??
In Ent. Mngr, I have an Oracle server as a Linked Server.
When I execute a query such as "SELECT Total_Hours FROM Ora..Employees.TimeSheet"...
ALL records in the recordset show as 0.00
If I change the query to "SELECT Total_Hours * 1 FROM Ora..Employees.TimeSheet"...
Yes the resultant client-side ID for the control is grdAppointments__ctl3_edtAppointmentDate and not the server-side, pre-compiled id that i gave it of edtAppointmentDate.
But I found another way of accomplishing this. Because the clientID attribute is not available until after all server-side...
I have a datagrid with several items. When I click a link to "edit" an item, I want the focus of the page to be on the first textbox for that item, however this is not the case. When I click "edit", the page re-focuses to the top.
Here's what I'm using to try to accomplish...
grrr.
still having issues with the expiry date.
it'll set once when the pager loads, but if i refresh, the date goes to 1/1/0001 12:00:00 AM
here are my functions:
Public Sub createUserCookie()
If Request.Cookies("userInfo") Is Nothing Then
Dim newDate As DateTime =...
no go on the iframe as this needs to be universally compatible withh all browsers.
oh man, don't talk to me about bad design. the entire website structure is crap. when i started working here 2 months ago, i tooko one look at the directory structure and said "hey, would anybody mind if i...
it's not so much "custom look".
here are the features (hospital website):
my articles - allows them to log the many articles they want to keep reference of
my appointments - add/edit/remove any appointment they have coming up
my prescriptions - keeps track of prescriptions and...
articles are static html pages, that were renamed .asp about a year ago. no db source.
both apps are part of the same "website" (i.e. domain & url)
jack,
your idea would work, EXCEPT:
2. they want to offer an "remember me" feature which allows the person to "auto-login" when they come back to the site. so that they can go to any of their custom pages without loggin in. therefore, there is not one gateway into the...
yeah, the session route is pretty much all but closed.
i'm now onto a cookie solution for this. having a fwe issues with the cookie expiry (see other post), but at least i can read the same cookie from different apps and from ASP pages. so right away, i'm miles closer than i was with sessions...
ah ha!!
figured out the problem. it wasn't in the code to read the cookie. the problem was the cookie was not being written in the first place, so it did not exist.
i forgot to add this line to the cookie population stuff.
Response.Cookies.Add(newCookie)
Now I have another problem. I can't...
I'm getting the following error:
[NullReferenceException: Object reference not set to an instance of an object.]
It's referencing line 70 (indicated with ** below) in my codebehind:
Dim newCookie As New HttpCookie("userInfo")
newCookie.Expires = "1/1/2002"...
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.