My current problem, as stated in the title, is that I am trying to create a series of buttons from a custom class within app_code and place them on a master page.
The whole reason for this is I do not want to have to copy and paste event handlers on the content pages.
However, upon the click of these buttons I need for a method on the...
I have a web application where I built a wizard, going from panel to panel. Besides using the Next, Previous buttons, one can use the Side Bar to select what panel to go to. The problem is that while the selected Panel's side bar button is Highlighted / Bolded, it is barely discernable to my client. Not only do they want the button ...
Is there a better way of testing if a string can be converted to an integer other than something like the following?
Public Function IsInt(ByVal value As Object) As Boolean
Try
Dim temp As Integer = CInt(value)
Return True
Catch ex As Exception
Return False
End Try
End Function
by "better" I mean l...
I am looking for sample linq code snippet which uses System.Linq.Dynamic against a datatable.
Dim entities = (From ent In dt.AsEnumerable().Where(String.Format("IsUSFederal == {0}", "true")) _
Select Description = ent("Description"), Acronym = ent("Acronym")).ToList
I am getting an error "there is no accessible Where can be called wit...
I've got a basic VB.net 2.0 application together in VisualStudio 2005.
Within a form, I've tied [enter] in several text boxes to a button. What I'd like to do is "press" the button from getField_KeyDown() to give the user a visual indication of what's happening.
With the code below, the button click work is done but the button's look ...
This seems like it should be something very easy to do, but every time I approach this issue, I end up w/ solutions that feel "less than elegant"
Here is my basic question: If I am looping through a dictionary that I have ordered in a particular way, within any given point in the loop how can I "peek" or get reference to a dictionary ...
Many of our users, internal and external, start our web application. Then at some later point, they open a new window from within the browser. They want to have 2 independent sessions of the application running. However, by doing it this way they are actually using the same session data.
Is there a way, in code, to determine if the...
Is there an easier way to prevent a duplicate insert after refresh? The way I do it now is to select everything with the all fields except ID as parameters; if a record exists i don't insert. Is there a way to possible detect refresh?
...
I'm building a new web app that has a requirement to generate an internal short URL to be used in the future for users to easily get back to a specific page which has a very long URL. My initial thoughts are to store a number in a database and output it in a HEXADECIMAL value to keep it shorter than an integer. TinyURL.com seems to use s...
I'm using Entity Framework, and I have a COMMENT entity. A COMMENT has a DATEMODIFIED property, which is a Nullable Date. I'm trying to build a query that will filter COMMENTs by date, so I create a startDate object, and do the following:
Dim q As ObjectQuery(Of COMMENT) = _
(From c In model.COMMENT Select c)
If startDate.HasValue...
I am using ASP.NET 3.5 and we are having a problem with our website www.s1.com
Also go to other links in the page if you dont see it on the home page.
When you open the site in IE 8 the top menu at first gets displayed like this.
And then the rest of the website loads. What can this be? Maybe a setting on the Server or in IIS?
Thank...
Hello I am creating a Windows application (WPF) that is going to be running in few stations accessing 1 database.
I already implemented a login form with a login system thru My.User.CurrentPrincipal.
Now, I want to implement a "Remember me on this computer" check box in the login form, where should I store the value?
Should it be a coo...
I have a series of dates formatted as:
26/03/1992
12/06/2010
13/01/1995
etc... it's in DD/MM/YYYY. I need to find the day like "Tuesday", "Monday" etc out of them.
I know I need to parse the date or something but I'm unsure how to go about this. thanks.
...
Hi,
I am trying to build a .NET executable at run-time using VBCodeProvider but when I try setting the icon to embed in CompilerParameters.CompilerOptions I see that it works with path without spaces, like C:\Temp\App.ico but if I have some spaces inside it does not work.
It gives me the error:
Error creating Win32 resources: Error re...
I have a generic List (of Foo) which contains n objects of Type Foo. One of the properties of Foo is PropertyA. PropertyA can be one of ValueA, ValueB or ValueC. Is there an easy way of splitting this into three seperate Lists, one for ValueA, one for ValueB and one for ValueC?
I can write some code which loops the original list and add...
I've an application that's uploading data to a server. Occasionally the server returns a 403 response from a call to HttpWebRequest.GetRequestStream(). The response contains more data than simply the response code, but I can't figure out how to access it. Is there a way to do this?
...
I have up until recently developed only in-house custom applications and I have never had a need to protect this software with any type of licensing/protection mechanisms. I’m now working on a new project for a software app that I plan on distributing to a relatively small number of clients (1000 or so) and I need to consider some type...
Hi, i have an VB.NET application with few functions i need to debug (like ie. Assert in C#). Is it possible and how i do that ?
Public Shared Function createNumberArrayList(ByVal startValue As Integer, _
ByVal endValue As Integer, _
Optional By...
I'm trying to import a tab delimited file into a table.
The issue is, SOMETIMES, the file will include an awkward record that has two "null values" and causes my program to throw a "unexpected end of file".
For example, each record will have 20 fields. But the last record will have only two fields (two null values), and hence, unexpec...
I have a radgrid bound to a SqlDataSource that includes a hidden, readonly column that stores a pk. I want to pass the value bound to that column to a stored procedure for Updates but the default behavior when the column is readonly is not to pass the parameter to the sqlDataSource. My question is whether there is a way to pass that va...