.net - Why Is Cookie Expiry Disappearing
Apr 7, 2011
I create a cookie and it has the proper expiry set, but when I go to update the cookie and check it with the debugger the expiry is gone.
' Cookie Helper: Updates cookie with the selected source ids
Protected Sub UpdateCookieFor(ByVal cookieName As String, ByVal sourceIds As String)
' Update cookie if it exists
[code]....
View 1 Replies
ADVERTISEMENT
Sep 17, 2011
Can I get info from stored cookie on the local machine. I have a Webbrowser control in a winform, and I would like to output data from a cookie to a label or so.
View 4 Replies
Dec 15, 2011
how to set expiry date whenever my passport is expiry its automatically ALERT is there any code for expiration
View 7 Replies
Feb 11, 2012
[Code]...
how could i make my datetimepicker to compute for the expiry date within 5 years... example date grated is 1/2/2012 and expires on 1/2/2016
View 1 Replies
Jun 8, 2009
I am developing one web application using VB.net. This applicaton this site is actually meant to fetch the details of the active directory users. When i enter the user id in the text box and press enter it should give the complete properties of the user account. This includes : Account Creation date, modification date, password last set, user cannot change password, user account expiry,user must change password at next logon etc. I have done almost all the things. but still i am not able to read the following properties : Account Expiration date, User cannot change password,user must change password at next logon.
View 1 Replies
Jun 10, 2009
say a user buys a 6 month subscription to my online app. Using c# or vb.net, How would I work out what the expiry date should be to be inserted into the database.
View 2 Replies
May 1, 2010
I have a text box on a form. It is a masked text box that shows in the format XX/XX.It is used for the expiry date of a credit card.What I need to do is how to take a value like 08/11 which means August, 2011 and check that it is in the future.For example something like 08/09 would be last year and hence would be invalid.Is there any way to take this string and check?
View 3 Replies
Jan 4, 2010
How i can give session expiry time (about 5 min) in vb.net in pageload event
View 2 Replies
Dec 1, 2011
I'm developing a revised version of a system I have been using for years, but with all the advantages of .NET features that were not around when I first made this. It's proving a steep learning curve! So, when a user logs in through my Login.aspx page which simply compares username/password to Database record, the system creates a session variable containing the user's Username and various other things. There are two type of variable which will be common to all elements of this system
User Specific data, Username, Permissions, etc
Setting variables, drawn from a database of pre-set facilities which are setup within the system, some will determine which facilities work, how they work, and some will be dependent upon the User's permission. Obviously, I could set everything within the Session data, but that'd be inefficient wouldn't it? If I were to set these globally available variables in my App_Code, how would I go about setting this up so that, for example, those variables which require a database call, are set for the duration of the Logged-In session and do not require constant Database lookups? Further to that, those variables which are dependent on the session state, would need clearing on each LogOut. I am using VB.NET.
View 1 Replies
Oct 27, 2010
I have a project in which the comboboxes above the code window, below the tabs have disappeared. If I open and close the project, they do not appear. If I open another project, they do appear. As soon as a open the project where they do not appear, they disappear.
View 5 Replies
Sep 15, 2011
When my full-screen sized Form is reduced in size by clicking on the "restore down" [i.e.] not to the minimized size but to in-between max and min, the scroll bar disappears. Is there a way to keep it automatically from disappearing [i.e.] to keep the scroll bar in view and available for use without having to make an adjustment to bring it back into view?
View 12 Replies
Feb 14, 2010
I can't understand what I am doing wrong ... I have a form on which there is a label . This label is actually part of a control array of labels (it was created by the migration wizard trough the upgrading process) . Each time I run the program and call my form , a message appears saying :Control array element 12 doesn't existAnd this is what I don't understand .I can see it during design time , how come it disappears during run time ? I have even checked its Index property , it's 12
View 3 Replies
Feb 27, 2008
I have a vb.net 2005 windows form with a menu strip that keeps disappearing both in design mode and when the program runs. I noticed that on other forms there are more properties listed for the menu than this one has. Anybody familiar with this problem?
I am using a split container with docking set to full below the menu but several other programs are set that way without any problems.
View 8 Replies
Nov 29, 2010
I have a panel on my GUI with radio buttons. When I run the code to determine which is the checked radio button from that panel, the code runs fine, but the panel disappears from the GUI after that. Here is the code I have to determine the checked radio button:
Dim rbName = (From r As RadioButton In Panel1.Controls.OfType(Of RadioButton)() Where r.Checked Select r.Name)
System.Console.WriteLine(rbName.First)
I have tried using:
Panel1.Visible = True
and also
Panel1.Show()
Panel1.Refresh()
but it doesn't show the panel again. I tried the same thing for individual radio buttons such as RadioButton1.Visible = True and it doesn't work.
View 2 Replies
Apr 12, 2012
I have a bound datagridview and a dataset with tables.
I have two sets of comboboxes bound to the same field "Restaurant" in the tables (mirroring each other).
In the "NewEmployeeRestaurant" combobox I change the value and it reflects in the datagridview. I can shoot around clicking all over the datagridview on other employees, but when I return to the employee I changed, the value remains what I changed it to. All is good in the world.
However, when I go to the "EmployeeRestaurant" combobox with the same settings, I change the value and it is reflected in the datagridview. So far so good. But when I go to another employee then click back on that employee I changed, the datagridview still shows the new value but the combobox is empty! NOT COOL!
View 1 Replies
Jul 20, 2010
Me.Show()
Me.WindowState = FormWindowState.Normal
nfi.Visible = False
[code].....
View 3 Replies
Oct 18, 2010
I have a project where the dropdowns for the Form and controls (left side) and the events (right side) aren't available. I can re-boot, open and close the project or solution and still they do not show. They do show for other projects.how to make them come back?
View 3 Replies
Jul 29, 2011
When one of my students opened his project yesterday, the Form he designed for it was no longer available. He could run the program but he couldn't edit the form as it had disappeared. Later he couldn't run the program at all as the error said that the form name wasn't part of the WindowsApplication. What's going on?
View 4 Replies
Apr 25, 2012
Ok, getting a little frustrated. I'm a new VB programmer (just a few months). Let me show you the start of my code so you can see what I'm trying to do:
Public Class Form1
Dim crude1 As Double = 0
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)
[code]....
View 4 Replies
Mar 16, 2011
I am using VS2008 on Windows XP SP3. I have a form with two pairs of dependant comboboxes which are bound to a SQL database table. In each pair, the second combobox's choices are dependant upon the selection of the first combobox.
Both pairs of comboboxes behave as expected. However, when I use the binding navigator to look through other existing records, the text in the second pair of comboboxes disappears on records that already have selections.
The database table still holds the information, but it just doesn't display in the combobox. Again, this only happens on the second pair of comboboxes, not the first pair and both sets of comboboxes are set up exactly the same (albeit on different tables).
View 7 Replies
Feb 6, 2010
We have a question regarding VB.Net 2008. We are used control array in vb.net and third party timer controls. When handle received from external application to timer control event procedure, after this form becomes blank and controls disappear. What we have to do to persist the controls.
View 1 Replies
Jul 8, 2009
I am using Visual Studio 2008.
I have my project set to "Copy if New"
I created a form with variuos fields from a table.
I hit F5 to run the application and enter in test data and save.
I exit the project and then go back in and the new data is there.
I exit the visual studio 2008 completely and then go back in and the new data is there.
I did the above last night several time and the new data was always there.
This morning all of the new data I entered is gone... I have NOT changed the data base schema at all.
View 4 Replies
May 19, 2011
I am developing a VB.NET program. I currently have an ASP Textbox with a label showing inside it. But now the customer has to manually delete this label before entering their own text. How do I get this label to vanish as soon as they begin typing? My script is nearly working now for txtFind. But in this case, it shows a different textbox to display watermark image. How can I reset this watermark to only activate the txtFind textbox instead? And to remove the textbox on left-hand side?
Here is my new ASPX file code:
<script type="text/javascript" language="javascript" >
function GetChart(thepart, thepartdesc, thecolor, row) {
Form1.part_transfer.value = thepart;
Form1.part_desc_transfer.value = thepartdesc;
Form1.submit();
[Code] ......
View 3 Replies
Jan 26, 2011
I have a ListView that I am using to display specific data. In most of the columns, I have images that represent supported types. When I add these images and build the project, they go away.It worked for a few weeks until they suddenly disappeared.
View 8 Replies
Feb 2, 2012
With .Net 3.5 / VB 2008 / WinXP...I'm using a Listview control in Details view. Two columns with an image on the left and text on the right. FullRowSelect is set to true. All works fine except that in the selected item the image is not visible. It's replaced by a white background. I need the image to be visible within the selected ListViewItem's blue background. Do I need to switch to OwnerDraw or is there another way to keep the image visible?
View 4 Replies
Sep 19, 2011
Within my webpage I am loading usercontrols within a placeholder. Each of these user controls triggers a postback when an ajaxcontroltoolkit rating is changed. The problem I am having is that if I use [code]The Load_EvaluationList is what loads the user controls, if I place the IsPostBack check around those two, the controls disappear, what could be the problem
View 3 Replies
Jul 22, 2010
I'm usually a LAMP developer, but some .NET work has arrived. If I run the following code:
<% poundsign = "£" %>
<% Response.Write poundsign %>
<% Response.Write "£" %>
Nothing is displayed. However, outside of the <% %> tags (i.e., in the HTML) £ displays correctly. I have no trouble displaying the usual alphanumerics, it's just the £ sign that is proving problematic. The underlying file is in Windows 1252 encoding, and I need to serve it as such. If I save the file as UTF-8, I get mojibake instead of a £. What I can do to make this work, or any settings that might be preventing it from working (other than saving the file in a different format)?
Aside from the fact that my £s aren't appearing on the page, a major part of my problem is that I need to insert strings containing £ into a SQL server database, but if I form a SQL INSERT statement within the ASP, none of the £ signs end up appearing in the database. Inserting £ signs into the database from ASP isn't a problem when I save the .asp files as UTF-8 files, but I need everything to work in Windows 1252 encoding.
View 4 Replies
Nov 25, 2010
I'm having problems writing an If statement because it's asking for the value of a cookie, but it's possible that the cookie could be null which breaks the page.
Here's the code:If Request.Cookies("myCookie").Value = "1234" then'do stuff End If
I think i need an elegant way of say "If myCookie is not null and has a value of..."
[Code]...
Basically the cases are always going to be the same but it will select the case from one of 2 places depending on whether myCookie has a value. Since there may be quite a few cases is there anyway I can get away with only listing them once.?
View 5 Replies
Nov 17, 2011
I'm trying to do an scrape a web page but in order to Post the data I need a web session ID like
web_session=HQJ3G1GPAAHRZGFR
How can I get that ID?
My code so far is:
[Code]....
View 1 Replies
Sep 14, 2011
I have to store, in 2 cookie dictionary/keyed cookie, a user's preference for hiding certain sections of each form on the app. It would appear that IE7 has reached some limit for the number or size of the cookie in javascript. I mean that the cookies are only inaccessible on the client-side js, but can be read just fine in our asp.net/vb code-behind.
The functions that need to read the value of these cookies must be on client side because I can't run a postback everytime the function needs to update the cookie. How should I go about getting and setting the cookie without triggering postback? I thought about storing the value of the cookie onload in a textbox, but I don't know when I would read it back and update the cookie.
View 2 Replies