Anupam07's Q&A profile
.NET Development Can you explain how asp.net aplication runs without dll in server
Can you explain how asp.net aplication runs without dll in server Could you elaborate further Has your dll files been damaged, but the site still works Then that would be due to the caching of IIS and/or your browser. Or are you curious to how a site could work with only .aspx and .cs files The answer to that is basically that: when a request is made by the client, the .cs is compiled and cached in memory. (note that there is more to it than that. It's just a very much simplified explanation) ...Show All
SQL Server (SQL Mobile)Can SELECT, but cannot INSERT/UPDATE. Why not?
I'm just getting started with using SQL Server Mobile while creating a handheld app using Visual Studio 2005. So far, I have succeeded in RETRIEVING data from the mobile database, but I don't understand why my INSERT nor UPDATE statements will not work. (I'm assuming they don't work, because after I run my code via the debugger, I oddly get no error message, but when I "open" the table in the Server Explorer, I do not see my expected results. Do I need to do some kind of "commit" or something Here's my code. Thanks for any help! - Sue ------------------------------------------- 'Create SQL statement: Dim strSQL As String strSQL = "INSERT INTO MyTable (col1, col2) VALUES ('yucky', 'poo')" 'Create DB co ...Show All
Visual Studio 2008 (Pre-release) Handling events generated by Contents of ContentControl in a parent of ContentControl
Hi, I have a control inheritted from ItemsControl which contains a number of specialized ContentControls. I would like to handle all the events (say, the MouseButtonDown events) generated by the Content of the ContentControls at the level of the parent ItemsControl. Obviously I can override the OnMouseButtonDown method in the ItemsControl, and, thanks to RoutedEvents, I will recieve all the events generated within a ContentControl. The problem is that the RoutedEventArgs.Source property is usually an item within the ContentControl rather than the ContentControl itself. What is the best approach for amalgamating events generated by the ContentControl and its contents I don't really want to define new RoutedEvents just for this purpose ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple Lights on a scene
Hello ; I want to learn an important technique which I can not figure out till today. Even in old games (such as Half-life ) we can see several lights in a scene. But when I look my graphics card capabilities it suppports max 8 active lights. Considering the time which Half-life built the graphic cards were less capable. So I wonder how they can achieve this effect. (Can they be using different textures for each face to imitate real lights if so the game should require too much resources.) Thanks The lightmap and the decal texture are normal two different resources. You can blend them together using alpha blending or even better multi texturing. Normal if you need both sizes of a triangle you add i ...Show All
Visual Studio Way to avoid repeating targets
Is there a better way to do this in MSBuild Is there an iteration mechanism that I missed in the documentation < Target Name = " Candle " DependsOnTargets = " CandleA;CandleB;CandleC " /> < Target Name = " MakeIntDir " > < MakeDir Directories = " $(IntDir) " /> </ Target > <!-- This is repetitive and error-prone. --> < Target Name = " CandleA " DependsOnTargets = " MakeIntDir " > < Exec Command = " $(Candle) $(CandleFlags) -out $(IntDir)A.wixobj A.wxs || del $(IntDir)A.wixobj " /> </ Target > < Target Name = " CandleB " DependsOnTargets = " MakeIntDir " & ...Show All
Smart Device Development static constructors in compact framework - size limit?
If anyone has seen this before, I would appreciate some advice or a workaround. I'm trying to use a static constructor in a class using several jagged arrays. I can add a few of them, and it works okay, but after a certain limit, the application either throws a "System.NotSupportedException" or a fatal application error 0xC00000005. I haven't found anything on the web, and the application runs fine on the desktop. I trimmed this down to make the jagged arrays readable, but it looks like a textbook example of static constructors. public class MainClass { static void Main() { huffcodetab.inithuff(); } } public class huffcodetab { private static int[][] ValTab0; private static int[][] ValTab1; ...Show All
Commerce Server Commerce Server StarterSite Troubles
I get this error after a fresh setup of the startersite, when i test if the diffrent webservices are running. Server Error in '/OrdersWebService' Application. Philip, There's a web.config setting packaged up with both the CSharpSite and the StarterSite pup files which has an external database dependency. The offending line of code appears as follows: < orders honorStatus = " true " newOrderStatus = " NewOrder " sqlCommandTimeoutSeconds = " 60 " sqlLongRunningCommandTimeoutSeconds = " 28800 " > I typically fix this by opening up SQL Server Management Studio and expanding the [Site Name]_transactionsconfig database. In a complete site installation, you'll see the followi ...Show All
Visual C# How can I stop the illumination of the form ? GDI+
Hi, wile I was trying to draw on the form every 100 ms , I had a problem that the form illuminates like the flash light every time I tried to draw on it, I know that I mustn't clear the form that much but I have to because I'm trying to let the form take a shape I've drawn in a PNG file . what can I do to stop this Illumination or if you know a better way to shape the form as I want please write it here . and I want to tell you something great : I have taken 98% in my high school final exam ( the one before the university ) which means I can choose to enter any faculty I want in Damascus University . Try drawing in a PictureBox's OnPaint event. Set the PictureBox's DoubleBuffered property to True. Co ...Show All
Windows Forms How to create a alpha-blended & transparent rectangle with shadow
How to draw a round-edge rectangle (lenght 200, height 30). Border color should be white and the interior totally tansparent Plus the borders should be alpha-blended with smooth shadows / blurring effect Is it possible to create this using .NET's native GDI+ Yes, the problem is that the transparecy color is only one. You need per pixel alpha to achive what you want. See this Code Project page for a sample: http://www.thecodeproject.com/cs/media/perpxalpha_sharp.asp It's C#. If needed I can translate it to VB.NET. Now I'm not sure what you're trying to do. If you're trying to do a Window Vista style window that has a glass border then you're pretty much out of luck. TransparencyKey can be us ...Show All
Software Development for Windows Vista Enabling aero glass?
Is there something in particular that has to be done to enable this I've installed Avalon and the other pieces with it, updated my gfx driver the the latest version from nvidia, but I'm still getting the plain aero, and I don't see anywhere to enable aero glass. My system is far above the requirements needed for it: Athlon64x2 4400, GF7800GTX, 2GB RAM... I have the nc6220 with the Intel 915 graphics card and I have never been able to get Aero Glass running... What driver are you using I have tried all the builds, even the latest 5365. ...Show All
Visual Studio 2008 (Pre-release) Frame.Content`s DataContext is not inheritted from the Frame
I have a Frame in a DataTemplate and load its content through Source property from external XAML which has a StackPanel as a root element. DataContext of the StackPanel is null and not set to Frame.DataContext. Should not the DataContext be inherited from parent Is it by design or a bug of ContentControl Anyway this is a workaround: public class FrameEx : Frame { protected override void OnContentChanged( object oldContent, object newContent) { if (newContent is FrameworkElement ) { (newContent as FrameworkElement ).DataContext = this .DataContext; } base .OnContentChanged(oldContent, newContent); } } I use the frame in data template so ...Show All
Visual C# NullReferenceException was unhandled.
I was sending a pictureframe to a client in synchronous mode which meant, the program gets blocked until the client is found or transfer is complete. Consequently, I shifted to asynchronous mode. Now as far as i can see, there's nothing wrong with the client/server bit of the code but the part, where I am copying the picture frame from a clipboard throws this exception. It's utterly preposterous ! Apparently NOTHING gets copied from the clipboard and the IDataObject ends up having a null status. This never happened in the synchronous communication mode, hell, i didnt even touch the frame grabbing portion of the code. Anybody know whats wrong Most probably you check clipboard BEFORE data is copied. ...Show All
Software Development for Windows Vista pushsource filter and mpeg multiplexing
Hi, I am trying to create an application which captures desktop audio and video in mpeg format. I am able to capture both audio (using audio capture device) and video (using pushsource desktop filter). I am also able to encode them into mpeg format using mpeg encoders. Individual audio and video streams are great at this time.Problem comes when I multiplex them using mpeg multiplexer.The stream just vanishes and only zero byte file is created. If I pass just audio through multiplexer, it comes out properly.However, if I pass just video through multiplexer, the stream is gone. Can anybody tell me why this might be happening and how to fix it thanks and regards, Nikita Thanks LGS. yes, I ...Show All
SQL Server Dynamic Dimension Buckets
Hi, I have a measure [count of bookings] and dimensions for [trucking company], [calendar], [booking type]. I need to create a dimension for buckets based on the count of bookings. The buckets I need to create are ([> 500],[201 - 500],[101 - 200],[51 - 100],[21 - 50],[11 - 20],[1 - 10]) based on the count of bookings. From this dimension I am hoping to create a measure that will show the count of trucking companies in each group (using the calendar dimension), and I am hoping to use the existing count of bookings measure to see how many bookings fall into each category by trucking company. Eg. For the [> 500] member there may be 1 trucking company, with 857 bookings, 666 bookings that are of a specific booking type in the a ...Show All
Windows Forms Step by step instruction. Open Form2 from Button on form1 C#
Hi, anyone able to tell me please how to.. Click on a Button i named Next on Form1.. it will then open Form2 page not as an extra page.. but as though its a new page on the same window. ty Hi, Woody There 3 ways: tabcontrol containing two tabpages, two panels in one form, two forms M1: Drag a tabcontrol in which lies two tabpages this .tabControl1.Dock = DockStyle .Fill; this .tabControl1.Region = new Region ( new RectangleF ( this .tabPage1.Left, this .tabPage1.Top, this .tabPage1.Width, this .tabPage1.Height)); Switch the panels by tabPage1.Hide(); tabPage2.Show(); M2: similar to M1, difference is previous use tabpage, here use panel. M3: To ...Show All
