i have a gridview whose scroll bars r selected "Both"......now this grid view in updated by a new datasouce in other thread.....but problem in when it is updated its vertical scroll bar diss appears and even not settled when i set it in other thread ...Here is the code
Public Sub LoadList()
dgvRFQs.DataSource = MyDal.GetAllQuotation...
We are planning to migrate to .net 3.5 and evaluating Linq To SQL and Entity framework. Considering what people are saying every where on internet that EF 1.0 is buggy, complex, has suboptimal designer support etc, if we pick Linq to SQL - do you think we will be able to migrate it to EF 4 when the time comes?
The question arises becaus...
Hi there,
I'm analyzing a project in asp.net with mvc and would like to use NHibernate as ORM.
All over the net I find books, tutorials, quick start guides to work with SQL and Linq-to-Sql but allmost never for Oracle.
What is the best setup?
In my project we have a rather small database in Oracle and I prefer to have model that is cr...
Hi.
Doing
ManagementObject obj = new ManagementObject(@"root\default:StdRegProv");
throws ArgumentOutOfRangeException
as well as
ManagementClass regClass = new ManagementClass(new ManagementPath("StdRegProv"));
inParams= regClass.GetMethodParameters("GetStringValue"); //throws ManagementException "Not found"
What the..????????????
...
I'm thinking of experimenting with using a tree-structure for indexing as I want to test whether it is faster than my current indexing implementation which is in essence a hash based lookup.
I've read up on various questions and articles about performance of B-Trees, AVL-Trees and Red-Black Trees and can't really see much difference bet...
Usually we do something like a for or while loop with a counter:
for (int i = 0; i < 10; i++)
{
list.Add(GetRandomItem());
}
but sometimes you mix up with boundaries. You could use a while loop instead, but if you make a mistake this loop is infinite...
In Perl for example I would use the more obvious
for(1..10){
list->add(g...
I know this has been addressed before but I have service that returns a string like so.
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[System.Web.Script.Services.ScriptService]
public class MyService : System.Web.Services.WebService
{
[WebMethod]
public string Hello()
...
Hi,
How can i get index of generic list from form page? For example;
aspx.cs
List<string> names = new List<string>();
names.Add("a");
names.Add("b");
names.Add("c");
repeaterNames.datasource = names;
repeaterNames.DataBind();
aspx
<form>
<repeater>
<itemtemplate>
**<%# Eval(?)%>**
</itemtemplate>
</repeater>
</form>
...
I am trying to parse a wikitext file received through Wikipedia's API and the problem is that some of its templates (i.e. snippets enclosed in {{ and }}) are not automatically expanded into wikitext, so I have to manually look for them in the article source and replace them eventually. The question is, can I use regex in .NET to get the ...
Getting a bit stuck on this. Basically I have a method that I want to return a predicate expression that I can use as a Where condition.
I think what I need to do is similar to this: http://msdn.microsoft.com/en-us/library/bb882637.aspx but I'm a bit stuck as to what I need to do.
Method:
private static Expression<Func<Conference, bo...
Hi there,
I have a setup & deployment project which includes a large C# project that i have created.
I also have some prerequisites that i bootstrapped to the exe, although the MSI file is, as usual, just the project itself.
I would like to create a complete unattended install, not just removing the User interface forms via the UI tab i...
Hi guys,
I am trying to add a java-based web service reference to my .NET project using a WSDL generated by it, but every time I have added it, I cannot find it from the code, let alone invoke its one webmethod.
I can add it alright, and it shows up in my project tree, but I cannot see the methods and I cannot find or access the webs...
Here's what I've done:
I created a resource.resx file using my IDE (SharpDevelop) and added an logo.ico to it. The resource.resx file looks something like this:
<data name="logo" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAEAIABoBAAAFgAAACg...
Specifically, SQL Express. I have an internal winform app that, if they have a laptop, needs to install SQL Express to enable certain functionality. Right now I am installing it for everyone as it doesn't 'hurt' the desktop users outside of the time it takes. I would like to have it install SQL after I detect if they are on a laptop.
...
I just noticed that the .NET Framework doesn't include Cuba in the CultureInfo class (format xx-XX). What is the best practice on this case?
...
Hi
in my web app users login to website normally and they have tagged in user table in database as online user in Session_End i want to log them out
In Session_End i have no access to HttpContext.Current.Session or Session only
they are both null how can i access to session variable at (Session_End) event.
...
Is there any built-in way to apply the "fixups" that JABSORB generates using json deserialization in .NET?
...
Hello
I have Motorola MC55 with DataWedge 3.2.4 installed. The issue I encounter is very slow scanning of barcodes, especially those prefixed with 'U' letter. I open the notepad and scan a barcode, text appears very slowly (even 2sec after barcode key trigger). How to tune/fix it to have more performant scanning capability?
Regards
Dom...
Hi,
How much overhead do timers cause in an application if they are running in the background continuously (regardless of the interval)?
I'm not worried about the calls that the timer will make when it ticks, but rather about the performance effects of using timers in applications where performance is of the utmost importance and am in...
Hi
Is it possible to create a route, who accepts X number of Categories/subCategories
mysite.com/CategoryName//ProductID/ProductName
mysite.com/CategoryName/Sub1CategoryName/ProductID/ProductName
mysite.com/CategoryName/Sub1CategoryName/Sub2Category/ProductID/ProductName
Of cource I could create a route for each possible combination, ...