i need to add this namespce to app c# file.
using System.Data;
so any way to add automaticlly to new created page in c#.net.
so i don't required to add this name space to new pages.
Is there any .NET implementation of any planarity testing algorithm like Boyer-Myrvold's or anyone else? I looked through the web but I didn't manage to find
I am using 3.5 framework of VB.NET 2008.
I have some textboxes in my form. I want the tab like behavior when my user presses ENTER on one of my textboxes. I used the following Code:
Private Sub txtDiscount_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtDiscount.KeyPress
If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Return) Then
SendKeys.Send("{TAB}")
e.Handled = True
End If
End Sub
But It doen't work for me.
Please give me a solution.
I am an experienced C/C++/C# programmer who has just gotten into VB.NET. I generally use CType (and CInt, CBool, CStr) for casts because it is less characters and was the first way of casting which I was exposed to, but I am aware of DirectCast and TryCast as well.
Simply, are there any differences (effect of cast, performance, etc.) between DirectCast and CType? I understand the idea of TryCast.
Hello,
I want to make a very simple event bus which will allow any client to subscribe to a particular type of event and when any publisher pushes an event on the bus using EventBus.PushEvent() method only the clients that subscribed to that particular event type will get the event.
I am using c#.net 2.0
Any help/pointer would be greatly appreciated.
Thanks
Pradeep
In the excellent Secret Geek’s Building a Micro-ISV series, Leon Bambrick admits that he prefers to host his sites in the US because of the prices and proximity to his target market.
For Australian companies and start-ups, what’s the best ASP.NET web hosting in the country? Should a company consider hosting its website overseas even if the potential market is in here?
I need to pass an url from asp.net load_page to flowplayer javascript function here:
http://flowplayer.org/plugins/streaming/rtmp.html
How to do that ?
I need to capture the 'Update' click event with jQuery in an asp.net GridView and have no way of knowing where to start. I'm still rather new to jQuery. My GridView is attached to a SQLDataSource and, naturally, has all the bells and whistles that that combination affords. Any help would be greatly appreciated.
Hi there,
I have a kind of asp.net forms authentication with the code like that:
FormsAuthentication.SetAuthCookie(account.Id.ToString(), true);
HttpContext.Current.User = new GenericPrincipal(new GenericIdentity(account.Id.ToString()), null);
What kind of additional efforts shall I take to make authentication cookie (that is user id) more securable? (https, encoding for example)
Thank you in advance!
How to write Performance Test for .Net application? Does nUnit or any other Testing framework provides framework for this?
Edit: I have to measure performance of WCF Service.
hello:
i have just created a new empty website from visualstudio 2010, added an new webform and droped a login control into the page.when i click the tag "administer website" then try to open security-Use the security Setup Wizard to configure security step by step, the IE8 shows the error: "Object Expected".
(tried to make a asp.net site with generated code, without any modification, but the error still occered)script type="text/javascript"
Hi Experts,
I am using asp.net 3.5 with C#.
I want to create a countdown timer and my requirement is like this:
Countdown end date: June 16 2010
So, till June 16 comes my timer will show the remeaning time.
Please let me know how to achieve it, I google it but i didn't get the excat solution to my problem.
Thanks in advance.
I'm new to Continuous Integration. I want an advice with which tool should I start deal with. I see this is the biggest tools right now: CruiseControl.NET or TeamCity.
I'm using already this tools: Visual Studio 2010, Mercurial, NAnt, NUnit.
Hi,
I want to detect if a window form is open and if it is then I would like to bring it in front rather than opening it again.
I know I need a form collection for this but I want to know if there is a built in form collection that holds all the forms in VB.NET or I need to implement my own.
Thank you.
Has there been any change in page life cycle event in asp.net 3.5(I mean some addition or any modification in the exisitng one)?
Sorry to ask in this way as because recently in an interview I have been asked by an interviewer. I dare to ask him the answer for this even after the interview!
If the asnwer is yes, kindly give some detailing about that; even a tutorial link will also do if no explicit explanation.
Thanks
How can I get Organization Unit (OU) from ActiveDirectory when using ASP.Net Membership? I can't find any possible mappings for web.config and there is nothing like that in User.Identity.
Is it possible to host 2 asp.net projects off one ip address? I don't have a domain name just an ip number. I'm running IIS7.
The first project runs and displays fine over the web by simply typing in the ip address into the browser but I'm having trouble accessing the second.
Currently both projects have virtual directories in IIS7.
Help is greatly appreciated.
Thx
Which name is more consistent with .NET naming standards for properties and methods?
1.
public string XRef { get; set; }
2.
public string Xref { get; set; }
We are running an ASP.NET app on a web server with 4GB+ of memory in IIS 6. After reading many articles, it states that we need to set the "maximum memory used" for the Application Pool to 800mb to eliminate the "out of memory exceptions" that are happening for us. However, what should the "maximum virtual memory" in the Application Pool be set to? I can't find information as to what that should be set to.
Is there a way to embed multiple dependent assemblies into a single one for projects written on the following platform types: Windows Store Apps, Windows Phone 8, Portable Class Library?
I know that for regular .Net projects there is ILMerge, but on the aforementioned project types it doesn't work. Embedding assemblies as resources and then manually resolving the references using AppDomain.CurrentDomain.AssemblyResolve is not possible either, since AppDomain is not available in these types of project.
hi, Im trying to return the value contained in a datagridview cell upon clicking on the cell. can anyone please show me how to do this using vb.net?thanks
In order to return a value from a VB.NET function one can assign a value to the "Functions Name" or use "return value."
I sometimes see these inter-mixed in the same function. Personally, I prefer the return.
My question is, what is the internal difference, if any, between the two?