Juice Johnson's Q&A profile
.NET Development How to download/Save dialog box a file using vb.net?
Hi Guys, I am developing an web based application which enables users to upload and download their files. I know how to download it in a specific location via code-behind but Is it possible to make IE opens "save" dialog box and asks user where they would like to save their files any help welcomes tanx Hope following helps you FileInfo objFileInfo; try { objFileInfo = new FileInfo (filePath); Response.Clear(); Response.Cache.SetCacheability(System.Web. HttpCacheability .Private); Response.AddHeader( "Content-Disposition" , "attachment; filename=" + objFileInfo.Name); Response.AddHeader( "Content-Length" , obj ...Show All
Software Development for Windows Vista Data Activities
Hi All, could you please tell me, why there aren’t Data Activities(Wait for Data, Update Data...) by Framework 3.0 any more What can replace this activities By the way, in my workflow from an activity i would like to invoke a mask, after a pause time (delay) if the mask not be filled, it will be continue to wait once more time, else exit, the question ist, how can i detemine in the workflow whether the user have reacted or not. Any help ist appreciated Regards The Data activities were removed around Beta 2 or 2.2 time frame. You can use CallExternalMethodActivity and HandleExternalEventActivity in place of the data activities. If you want to wait until the user has done something or a period of time has ...Show All
Visual Studio 2008 (Pre-release) TabControl SelectionChanging
Is there a way to implement that I want to know when the user wants to change the current selected tab item and check whether he save the current presented data before allow him to move to a different tab item. in case he didnot save the current tab item content I want to display a message and cancel the move to next item. thanx Itzik I know about this solution, wonder if there is something better: Thanx to lee d: you can try the following also void tab1_PreviewMouseLeftButtonDown( object sender, MouseButtonEventArgs e) { if (e.Source is TabItem && (e.Source as TabItem ).Header.ToString() == "Tab 2" ) e.Handled = true ; } ...Show All
Software Development for Windows Vista Send reminder mail through workflow and log History for each activity
Hi, 1. I have attached a workflow to a sharepoint list. I want to send out reminder mails to people at specific intervals, say every 2 days, if a particular column in the list is not updated. My question is how do I model my above requirement of sending reminder mails If possible, kindly provide sample code. I have onWorkflowActivated activity as my starting activity and have also included onWorkflowItemChanged activity in my wf, which will trigger once an item is changed in the list. I considered using Listen activity (with delay activity in one branch and rest of the execution code in the other) or wrapping onWorkflowItemChanged event in a while loop but am unable to get it correctly. Can somebody assist 2. Another small quer ...Show All
SQL Server SQL Server July Books Online access issue
Hello After I installed SQL July Books Online and Samples neither Tutorials nor SQL Server Books online can be opened. When I try to open any of them (SQL Server Mobile Edition Tutorials, SQL Server Tutorials or SQL Server Books Online) I get a message: "Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.SQLCC.v9' is invalid." Also when I try to use local Help I get 'Search failed. Exception from HRESULT: 0x800403BA' message. The Help Topics and Help Searches lists are both empty - 'Currently no topics have been found'. I tried to uninstall and then install again the SQL Server Books Online but nothing happened. I tried to do the same with the April's one as well. Same ...Show All
Windows Forms how to add a link to a web site at the end of the installation
Thank you. ...Show All
Visual C++ C programming
Hi, Everyones I do hope this question aren't getting bored at all .... Well, recently I typed some short C program that's require to include assembler code, and I got confused how to figure out the assembler editor on V S.net Does anyone know how to tackle this problem and I do hope too you are guys out there could drop me some source code or an example about that .....other question is how to use Clrscr() == in C : I had found ESC[2J but it won't work as Turbo Pascal compiler.....please show me.... Thanks.... Malvino..... Malvino wrote: Hi, Sahir Well thanks for the source code, but it written in C++, I'd prefer it for C source code only !! I wish you'd drop me back just in C . Especially #include <header fi ...Show All
Visual Studio Drillthrough event with C++
I know I'm missing something simple. I'm currently getting the "datasource is not supplied" errors when using a drillthrough report. I know I need to do the following: LocalReport localReport = (LocalReport)e.Report; localReport.DataSources.Add( new ReportDataSource("Employees", LoadEmployeesData())) However, I am using C++ and am struggling in getting it correct. I've tried: LocalReport^ localReport = e->Report; This will get me cast type errors: Can't convert Report to LocalReport. Any help is appreciated. I know I'm missing something simple. ...Show All
.NET Development Help vb.net db problems!
hi im a vb.net newbie. im trying to connect a access database to vb.net using jet. i would like the database to fill in the interface in the form i created but when i run it, it shows this error message: An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll. When i tried using TRY..CATCH it showed this message: Record(s) cannot be read; no read permission on 'tblTest' tblTest is the table in my db. This is the code: Dim con As New OleDb.OleDbConnection Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim sql As String Dim mytbl As DataTable con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\DB\test.mdb" ...Show All
Visual Studio 2008 (Pre-release) How to apply Sorting in a List view control???
Please help me to implement the sorting functionality in ListView control like the DataGrid behaves in .Net2.0. Hi Thomas, If the column header is set to a string contain two words like "My Year", then I will get runtime error once you try to click the header to sort. Thanks. ...Show All
Windows Forms Prerequisites??
Thanks in advance for listening to this dumb question. When I try to publish with the prerequisites set to "Create setup program" and "Download prerequisites from the same location as my application" I get the error message: "Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more information. Ophthalmology" Build is aborted. I don't know what to do or maybe I have the dotnetfx in the wrong place for install Frank Well I just don't get the point. I want to provide my solution with all de prequisites on one CD. That means alls the files ne ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The values used in the attempt to create the GraphicsDevice were invalid.
Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 What type of card do you have We should be giving a better exception message than that (i.e. we check for lots of things and throw better exceptions but that one must have slipped through.) ...Show All
Software Development for Windows Vista Remote Desktop still an issue
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. The call was in windbg, I used DebugBreak() to get into step by step. (Somehow I couldn't use OutputDebugStringA() to display using DbgView.exe). When I use Remote Desktop to debug, the session id is 3, however WTSQueryUserToken() failed with the same error 1008. ...Show All
Internet Explorer Development Info targeted to frame by host app - opening in a new Window in IE7
I have a host based application which when called from one frame, returns forms and/or information into another frame. IE5 and 6 work fine. When used in IE7, the returned html stream is sent to a new window (not tab) instead of going to the target frame in the original document. Is there a problem with IE 7 in handling these interactive streams targeting frames Thanks, Steve After some experimenting and research, I discovered the problem. There are several sites under the URL regis.state.va.us . Some of the pages that were pointing to the sites underneath using the URL www.regis.state.va.us . Apparently previous versions of IE and the other major browsers knew enough to throw out the w ...Show All
SQL Server Function that returns table
Hello, Is there any way to write a function where I can write some code and at the end of the code return a entire table as parameter Looking at the options for Create Function there are two choices that return a table. The first is an in-line function. In this case you do not have to define the columns of the table, but you can only have a single select statement. So, that won't work. It is possible to have a general multi-statement function that returns a table, but that requires that the columns be known in advance. Assuming that there was value in having a function that had constant columns, but came from different tables -- maybe you have a number of name-value-pair type tables -- you now ha ...Show All
