vb.net

saving and restoring xml differences

I am using asp.net and the .net framework 2.0. I may be able to upgrade the servers to 3.5 if the solution is compelling enough. Here is the problem. I have two pieces of xml. I'll refer to piece number 1 as the template and piece number 2 as the actual. Here's a basic example: template: <questions> <question1 msg="1234"> <answe...

working with PNGs in vb.net

I have PNG and need to know if it has an alpha (or if the alpha is completely white)? How can I accomplish this in vb.net code. ...

Why is Post code being triggered on jQuery load?

I have the following functions in my ProceduresControlller: Function Add(ByVal bpid As Integer) As ActionResult Return View(GetAvailableProcedures(bpid)) End Function <AcceptVerbs(HttpVerbs.Post)> _ Function Add(ByVal bpid As Integer, ByVal code As String, ByVal covered As Boolean) As ActionResult AddProcedure(bpid, codes, cove...

Custome format Timespan with String.Format

Hi, I want to format the Timespan to have format like this 49 hr 34 mn 20 sec I used the String format below : String.Format("{0:00}:{1:00}:{2:00}", theTimeSpan.TotalHours, theTimeSpan.Minutes, theTimeSpan.Seconds) It formats the Timespan to this format 49:34:20. How can I add hr mn sec to the String.Format above? or there's another...

Efficiently loading sitemap from database?

Hi, i have a custom SiteMapProvider which I populate from a database. I also have a custom SiteMapNode which has to be constructed with a custom Page argument. The implementation of SiteMapProvider.IsAccessibleToUser(context, node) is now: Public Overrides Function IsAccessibleToUser(context, node) As Boolean Return CType(node, Cu...

pls correct my code: Problem loading tabs dynamically

Hai i m trying to load the tabs dynamically.(Using AjaxToolKit). Firstly, when i hit button1 on pageload, it loads tab1() (works good) and when i hit button2, itloads up tab2() All these tabs are ascx pages. In tab1 i m loading WebUserControl.ascx. it works okay. Issues: 1) When you runthe code, first click on button2, it doesn't load...

Looking for an open-source or low cost dev license survey / form builder application in C# or VB.NET

I am looking either a low-cost (under 500$) developer license, or open-source survey / form generator tool. It has to be written in C# or VB.NET. These are the core features I need: Ability to generate surveys with a list of questions on the fly Multiple answer choices (freeform text, radiobutton, etc) Users can fill out survey online ...

Multiple forms in vb.net

Hello All. I am trying to develop a vb programe where i am using List to store data. I want to use all datas saved in that list from another class. In Class 1, i am trying to include a method that will return my list. And form class 2, i will call that method and get that list. But code isnt working. Can anyone plz help. ! ! ! Tha...

How to add custom property and events to a control say textbox or button.

I want to add a custom property to a button in window form. Currently i am using following code to create my logic. but i want to create an enum value for a button control. btnPartyDetails.Text = "View"; {} btnPartyDetails.Text = "Add"; {} btnPartyDetails.Text = "Delete"; {} btnPartyDetails.Text = "Edit"; {} I want to perform som...

Find first and last day for previous calendar month in VB.Net

Hi! I'm creating a report in MS SQL Server Reporting Services and need to set the default Start and End Date report parameters to be the first and last dates of previous calendar month and need help. The report is generated on the 2nd calendar day of the month and I need values for: Previous Calendar Month - first day - last ...

Problems with MDI in Windows XP

I'm working on a .NET 2.0 WinForms app that uses MDI. It works perfectly when I'm testing it under Windows 7, but when I install the exact same application in Windows XP the child windows are no longer MDI windows. I can drag them out of their parent window. Does anybody have an explanation for this odd behavior? Update: It works on W...

Why is "My" namespace unavailable?

Our Winform app consists of a Main.exe and a Launcher.exe. The purpose of the Launcher app is to check for updated versions of the Main.exe. If it finds no updates it launches Main.exe using System.Diagnostics.Process.Start If it finds an update, it copies the new Main.exe into position and launches Main.exe the same way (in this case ...

Detect inserted row dataadapter

I'm trying to detect a new row in the database with a dataadapter, so I can trigger some events. It would be easy if I could use a timer(but I can't) ...

Culling offscreen tiles in an Isometric engine

For a university term project, I'm working on a graphical roguelike (I'm aware of the contradiction in terms :P) that uses an isometric display. What I'm trying to figure out is, since drawing all the tiles is stupidly expensive and unnecessary, I'm wanting to figure out a relatively fast algorithm to determine which tiles should be dra...

Simple MVC Question for MVC beginner

hi, i have an Ajax ActionLink which normally just returns a PartialView (which is just a UserControl ascx file) however, my needs have changed and i want to return another PartialView (so a total of two PartialViews) that occupy different areas of my page... of course i can't call " return PartialView("UserControl.ascx") " twice in a ...

Role-management provider using web.config?

I'm building a tiny web application with a simple user autentication scheme. I register the users in web.config, like this: <authentication mode="Forms"> <forms loginUrl="~/login.aspx" defaultUrl="default.aspx" ...> <credentials passwordFormat="SHA1"> <user name="UserA" password="B60D121B438A380C343D5EC3C2037564B82FFEF3"/> ...

Create a ASP.NET Query string on my load without touching the URL?

How can I pass a paramator to another page without using Session variables or passing the Querysting in the URL? I want to create a variable on my Page Load Event............ Thanks in advanced? ...

Changing postback URL to hide Default.aspx

I am attempting to hide the document name from the user by using a folder with appending querystring in the following format: http://localhost:53779/s/?x=FF2F60195B21487FA19A8EE7767A206C When I post back the page, it directs it to the physical page: http://localhost:53779/s/default.aspx?x=FF2F60195B21487FA19A8EE7767A206C It it possib...

Retrieving client user name and computer name from within webservice

I have web service on server! This service is calling from the clients applications! Now how i can get user name and computer name of clients that using this service, for example if application from Clint1 calling this service i want to get computer name and user name of Clint1? Many thanks! ...

Short method to retrieve NeutralResourcesLanguageAttribute searched

Is there a better (shorter) method to retrieve the NeutralResourcesLanguageAttribute of an assembly than using reflection as implemented below? Public Function GetNeutralResourcesLanguage() As String Dim assembly = System.Reflection.Assembly.GetExecutingAssembly Dim attributes = assembly.GetCustomAttributes(GetType(System.Resour...