Mahesha's Q&A profile
Visual Studio asp.net
How to added the multiple textbox dynamically in asp.net Hi Yes. In HTMLInputHidden is present in HTML. If i use that code i have get only one textbox. Instead of HiddenField, i have used HTMLInputHidden. This is the coding i have used. Dim textbox As New TextBox() Dim i As Integer Dim hi as new HTMLInputHidden() hi.value=0 hi.Value = Convert.ToString((System.Convert.ToInt32(hi.Value) + 1)) For i = 0 To System.Convert.ToInt32(hi.Value) - 1 textbox = New TextBox() textbox.ID = i.ToString() PlaceHolder1.Controls.Add(textbox) Next Please check ...Show All
Visual C# DateTime Difference on WinForm and WebForm!
I write a simply code to see the difference: this .label1.Text = DateTime .Now.ToString(); this .label1.Text += " " + System.Globalization. CultureInfo .CurrentCulture.ToString(); The output of WinForm is “ 28/11/2006 11:03:21 en-GB ”, while WebForm is “ 11/28/2006 11:02:55 AM en-US ”. Even I restart my computer, the difference is still on. Can you explain this difference You installed a US-english version of Windows which makes en-us the default locale. In your logon user session you changed the locale to en-GB, so that effects your WinForm app. The WebForm runs in another account (win2003 will use NETWORK SERVICE by default, Win2000 ASPNET). Check your Regional Settings ...Show All
SQL Server New SQL Express
I am working with Microsoft Office Access 2003 on MSWXP Professional SP2. In attempting to open one of the sample database projects that come with Access 2003, NorthwindCS.adp, I get the following message: "Microsoft Access could not find either Microsoft SQL Server 2000 Desktop Engine or Microsoft SQL Server installed on your computer. Click OK to display the Data Link Properties dialog box and log on to a remote server. If you want to install SQL Server 2000 Desktop Engine on this computer first, click Cancel, install it from the MSDE2000 folder on the Office CD-ROM, and then reopen this Access project". Instead of downloading & installing the Microsoft SQL Server 2000 Desktop Engine, I downloaded & installed the SQL S ...Show All
.NET Development Check how many references there are to an object
Hi! I am writing a .NET Compact Framework application, which loads a certain number of controls in a row and displays them to the user (first control A gets loaded and displayed full screen, then control A is replaced with control B, B is replaced with C and so on, but only one control is loaded at a time and each control will also be used only one time). Writing this application for a memory constrained environment (Pocket PC) I added a finalizer to a few controls to see if they got disposed properly, yet they didn't. So I wonder if there is a way to track the number of references to an object so that I can find out what keeps these controls from being collected. There is no way to find this information in .NET; even the garbage coll ...Show All
Visual Studio VS 2005 SP1 Beta doesn`t want to install
I`m not commenting the decision to use windows installer patching system right now (long story short: 1GB of memory wasn`t enough), but after an hour or so the installer doing who knows what atm just died with a very informative message: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908. The number was different the first time I think, when I ran out of free space. And as I click OK it just keeps poping again and again. Oh, wait... it`s stopped after 40- or 50-something clicks. Now, after some time, we have this: Error 1935.An error occurred during the installation of assembly 'CppCodeProvider,Version="8.0.0.0",PublicKeyToken="b03f5f7f11 ...Show All
SQL Server dts parameter
I am running the DTS as follows, SET @CMD = 'dtsrun /S '+@server+' /U '+@user+' /P '+@pass+' /N '+@dtsn+' /A MyBinaryID:19 = '+@MyBinaryID EXECUTE master..xp_cmdshell @CMD This does not return all the data correctly. MyBinaryID is a Binary(8) field, any idea how should I pass MyBinaryID and define what type of parameter in the DTS ...Show All
Visual C++ WMI or not WMI?
Hi! Help me please to recognize situation : CPU USAGE 0%, all windows are not responding when IEXPLORE/EXPLORER waiting for timeout(or searching the net) by using WMI or if i should not use WMI on this case,tell me PLZ how i could do it. (CPU usage=0%,but all opened windows or part of them are not responding while internet explorer or windows explorer waiting for 'timeout' . This situation looks like deadlock or delay for a while,or because GDI does not responce proparly because it cannot redraw window till it gets answer back. ) 10x, Maria. For WMI issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.wmi&lang=en&cr=US OTP Thanks, Ay ...Show All
Visual Basic know the caller function name?
Is there a way from inside a function know the name of the function that called it Sub main() p() End Sub Sub p() Dim s As New Diagnostics.StackTrace Dim f As Diagnostics.StackFrame = s.GetFrame(0) --> p Debug.WriteLine(f.GetMethod.Name) f = s.GetFrame(1) Debug.WriteLine(f.GetMethod.Name) --> main q() End Sub Sub q() Dim s As New Diagnostics.StackTrace Dim f As Diagnostics.StackFrame = s.GetFrame(0) --> q Debug.WriteLine(f.GetMethod.Name) f = s.GetFrame(1) Debug.WriteLine(f.GetMethod.Name) --> p f = s.GetFrame(2) Debug.WriteLine(f.GetMethod.Name) --> main End Sub ...Show All
Visual Basic Displaying images, different sizes, dialog boxes...
I have a listbox, a thumbnail image display which is a user made control, and a simple large image viewer user made control. The two user made image view controls use basically the same language but one is set up for thumbs and one for larger image displays can be evoked if someone needs to see the image temporarily, as a popup box, to study a detail. I'd like to tie together my initial listbox browse/load, in with the thumb picture load and larger image picture load. Right now I have to load each of these individually, even though I will usually be looking at the same folder full of images. The important language is below: Private Sub btnBrowse_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt ...Show All
SQL Server using query read xml from a xml datatype column
hi, i have a table(t1) with column (c1 int, c2 varchar, c2 xml) i want to read the xml data in the column (c2) from the table t1 using query and insert into a #temp table please help me out, Sunila Hi below is an example using XQuery which is available to use in SQL 2005 create table jsTEST ( c1 int , c2 varchar ( 256 ), c2x xml ) insert into jsTest select 1 , 'test' , N '< xml version="1.0" encoding="UTF-16" > <Fruits><Fruit><FruitName>Orange</FruitName><FruitDescription>Round Citrus</FruitDescription></Fruit> <Fruit><FruitName>Bananna</FruitName><FruitDescription ...Show All
Visual Basic Is it possible to specify multiple file types in a wildcard in GetFiles?
I'm using GetFiles to return a readonly collection of files in a selected directory. It's for an application that uses Reflection, so I really only want it to return assemblies, which can be *.exe or *.dll. So, my wilcard needs to be something like "*.exe; *.dll" or "*.exe, *.dll", but these return an empty collection, even if there are some .exe or .dll files present. Specifying "*.exe" or "*.dll" works fine, but only returns files of that type, so I have to handle each collection separately, or merge them into one. Alternatively, I can specify "*.*" and get all files, in which case I need to filter out the unwanted ones in my code. I can do either of these quite easily, but I ...Show All
Software Development for Windows Vista wimgapi and vb6
Greetings, Can someone advise me how to get the declaration, method, constants etc for using wimgapi in vb6 I have all the necessary support files .dll, .lib, .h, and the chm file, but I cannot seem to find the code for including it in my vb app. Maybe I just missed it somewhere. Any help would be greatly appreciated. Thank you. Ok, so from the chm file I found the C++ syntax for the variables that have to be passed. So here was my attempt: Private Declare Function WIMCreateFile Lib "C:\Program Files\Windows AIK\Tools\x86\wimgapi.dll" (ByVal lpszWimPath As String, ByRef dwDesiredAccess As Long, ByRef dwCreationDisposition As Long, ByRef dwFlagsAndAttributes As Long, ByRef dwCompressionType As Long) As Lo ...Show All
.NET Development GMT-8 to GMT+0 (UK) with consideration for british summer time?
I'm using a server where it's time is GMT-8. Im using DateTime so how do i convert it to GMT+0 taking into consideration British summer time as im based inthe UK. Thanks for your time. Paul. ahmedilyas wrote: Thanks Peter. But I cannot see the Convert method in the TimeZone, one reason why I mentioned perhaps using the ToLocalTime() Am I missing something Sorry, my quoted "convert" wasn't meant to suggest using a method named "Convert". Yes, gernally ToLocalTime() is what you use tp convert to a local time. ...Show All
Windows Live Developer Forums suggerimento
mi date un consiglio x risolvere un problema con la msn toolbar mi dice che ho una vecchia versione che nn puo essere rimossa e quindi nn mi installa neNCHe la nuova. grazie ...Show All
Windows Search Technologies WDS 3 - RTW Final not indexing .xlsx file which have ODBC SQL Connection
Hello, Brandon recommended me posting this problem I noticed in the WDS 3 RTW. Basically the WDS 3 RTW, and (Beta 2) cant index the contents of Excell new format (.xlsx), if the excell contains a ODBC (SQL database) connection. The easy way to reproduce is to, create a new .xlsx file using Office 2007 B2TR, create a ODBC SQL connection to any database/table that you have access to. Save the file and wait for index, it will index the filename but never its content. With the WDS 2.6.5 this problem doenst happen. Regards, Marcus Marcus, Ack! - this problem was reported while we were in beta. A bug was filed (and fixed) in a pre-release build. It must have broken again in a later build and made its way to RTW. ...Show All
