If it is going to the else/else, then both selectedlocat and selectedfield are not equal to “”. Have you checked if they are null?
More Related Contents:
- run .sql file over a collection of databases on an instance
- C# Events and Thread Safety
- Replacing .NET WebBrowser control with a better browser, like Chrome? [closed]
- JWT authentication for ASP.NET Web API
- C# – Faster Alternatives to SetPixel and GetPixel for Bitmaps for Windows Forms App
- How to embed a text file in a .NET assembly?
- View/edit ID3 data for MP3 files
- Establish a link between two lists in linq to entities where clause
- How to generate .NET 4.0 classes from xsd?
- Partial type inference
- Create an application setup in visual studio 2013
- working with incredibly large numbers in .NET
- Calculated column in EF Code First
- Is the Linq Count() faster or slower than List.Count or Array.Length?
- JsonConvert.DeserializeObject (string) returns null value for $id property
- Random date in C#
- How to to return an image with Web API Get method
- C# error: Use of unassigned local variable
- How to List Directory Contents with FTP in C#?
- Getting value of selected item in list box as string
- Roman numerals to integers
- Passing parameter to stored procedure in C#
- SendKey.Send() Not working
- Unity load medias from folder and display on RawImage
- String.Empty versus “” [duplicate]
- NHibernate.MappingException: No persister for: XYZ
- How to bind Dataset to DataGridView in windows application
- Hide a C# program from the task manager?
- Visual Studio : executing clean up code when debugging stops
- Display string as html in asp.net mvc view