Jump to content
Xtreme .Net Talk

ultraman

Avatar/Signature
  • Posts

    138
  • Joined

  • Last visited

1 Follower

About ultraman

  • Birthday 12/04/1969

Personal Information

  • Occupation
    programmer
  • Visual Studio .NET Version
    .NET Enterprise
  • .NET Preferred Language
    C#

ultraman's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. For those who might be interested, it was just a question of first getting the cookie from the Request object. After you get this, you modify the value and add this new cookie to the Response object. Dim cookie As HttpCookie = Request.Cookies("MyPOS") cookie("CliID") = strInfo(0) cookie("CliName") = strInfo(1) cookie("Address") = strInfo(2) cookie.Expires = DateTime.Now.AddDays(365) Response.Cookies.Add(cookie)
  2. Hi all ! According to this MSDN article, to modify an existing subkey in a cookie, you just do this : Response.Cookies("userInfo")("lastVisit") = DateTime.Now.ToString Response.Cookies("userInfo").Expires = DateTime.Now.AddDays(1) The problem is.... it destroys all other subkeys. Actualy, it seems like it deletes the cookie and recreate a new one. So, is there an easy way to modify a subkey in a cookie or do I have to copy all values from the Request cookie inside the Response cookie before changing the Expires date ?
  3. That's exactly what I ended up with. Thanks Robby. I always seem to try to use new .NET controls over simple good ol' HTML standard :-)
  4. Thanks eramgarden, I know this would work. But still, it won't prevent the user from using the "X"....
  5. It probably works because the PK column in your Access DB is defined as AutoIncrement already. So the DB already manage this. If so, you don't need this piece of code.
  6. I thnk it depends on what you want to do with your DataSet. Do you want it just for reading purpose or do you want to add rows to it ? If you need to add rows, setting the AutoIncrement allow you to forget about the management of the UserId field. Otherwise, you would have to generate it and to validate that it doesn't already exist in the DB before updating. If you need it just for reading purpose, I would suggest that you use OleDBDataReader instead. It's faster.
  7. Hi all ! Is there a way to catch the unload event when someone close the IE window with the "X" ? I tried JS in Body onunload but it's not working. I just want to ask a confirmation message before he close the window. If the answer is yes, just close the window, otherwise cancel the close event. Is it possible ?
  8. For those interested.. I used a suggestion from another site and add a tag in the UpdateText property. UpdateText="<p style='font-weight: bold; color : Red'>Save</P>" That does the trick !
  9. Hi ! Is it possible to modify only the "Save" button look in an EditCommandColumn (color, font weight, etc...) ? Because when you use ItemStyle, it modifies all the buttons in that column. If no, is there another solution ?
  10. Hi all ! Iwould like to display some infos in a ListBox kinda control. But since it's impossible to to remove the border from this control, I will need to use something else. Any idea what ? Remember this is unbound. I evaluate conditions and add items depending on the results. Thanx !
  11. Just a little update : it happens just if I open, close and Dispose an OleDBConnection object (for Access DB). If I remove the connection, everything is fine, but as soon as I try to connect, I loose my session variables.... I switched to SQL Server and everything is back to normal.
  12. I all ! I have a small app with only 2 forms. One (frmSelect) is for the criteria selection and the other one (ASP_Dep_Emp_Report) will present the results (some kind of a report). I use Session variables to store the selected criterias from the frmSelect. No problems when I first reach the report form, I can read the variables values. Then I click my LinkButton to redirect to the first page, I'm back in the Page_Load event and BOOM, the variables has disapeared.... No idea why ??? My Session ID is still the same so it's not the problem. I also use a DataGrid that I fill with the ItemCreated event. If you need to se the code, I could post the project and the little mdb that goes with it.
  13. Hi all ! In an open app, I have to execute some functions at a certain time of day (ex : at 9:30). What is the best way to do it ? With a timer set to every minute and comparing DateTime.Now to 9:30 ?
  14. Hi ! I'm trying to compile my resources files into satellite assemblies and link them to my main app. But there's no way I can get it to work. Tried a lot of things, nothing works. I've done it before, but I missed a point in the process and now I can't make it work. Here's what I do : I have all my resources in txt files Then I use resgen to generate them like this : resgen ErrMessages.fr-CA.txt ErrMessages.fr-CA.resources then the assembly linker : al /out:Horus.Resources.DLL /C:fr-CA /embedresource:ErrMessages.fr-CA.resources
  15. Thanx VBAHole22 ! It works fine. But I also discovered that if I use ReadOnly="True" in the BoundColumn tag, I can retreive the value from the Text property of the Cell object (e.item.Cells[0].Text) in the Update event. But as soon as I remove the ReadOnly property, it returns "". So since I don't want to edit this column (the whole point of making it invisible), I just used this method.
×
×
  • Create New...