Bigmo's Q&A profile
.NET Development Cannot execute .asmx nor a .aspx page in a browser
Hi all, I hope somebody can help. I have a simple web service file that is protected via windows integrated authentication. When I attempt to execute the .asmx file in a browser, it prompts me for my username/pwd. After three tries, it sends back: You are not authorized to view this page You do not have permission to view this directory or page using the credentials that you supplied. How do you have your web.config set up Here's an example of one I have for windows security <authentication mode="Windows"/> <authorization> <allow users="domain1\username"/> <allow users="domain2\username"/> <deny users="*"/> </authorization> ...Show All
Visual C++ extern "C" with a struct
Good Morning I'm trying to compile a project that is a mix of C/C++ code. It compiles fine but fails on linking as one of the C++ file can't resolve the global variables from the C code. So I ' extern "C" ' all of the global variables and that works, except I have a question: how do you extern a pointer to a struct I tried: extern "C" struct myStruct *struct; and I get about 80 errors, saying I'm missing semicolons and brackets and stuff. Any ideas Thanks, Philski Thats what he is saying here. If you have the struct defined in a header file that you include, then you don't need extern "C" since it will be in the same block of code. This is only important if the struct you w ...Show All
Windows Forms Windows Explorer Context File path??
I have a windows based application in c#. On Windows explorer context menu i added one context menu item named "MyContext" . when the user right clicks on a file or folder, i have "MyContext" menu(This is the context menu item that i have added to the windows explorer context menu). When i click "MyContext" menu, i have to execute one application. In that application page load, i want to get the file or folder path that the user right clicked. How to get that file path Please help Hi.. i also used shell programming to achieve the same. I am posting the code, somone could get help from this. using System; using System.Collections.Generic; using System.Compone ...Show All
Visual Studio Express Editions Readline
How to readline from a txt file from line 1 to line 10, then calculate the average of the 10 value, then continue to take the average of the next 10 values again, this process starts over and over again until it reaches the end of the txt file Dim Total, Count As Integer If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Dim SR As New System.IO.StreamReader(OpenFileDialog1.FileName) Do While Not SR.EndOfStream Total = Total + CInt(SR.ReadLine) Count += 1 If Count = 10 Then MessageBox.Show((Total / 10).ToString) Count = 0 Total = 0 End If Loop If Count <> 0 Then MessageBox.Show(" ...Show All
Visual Studio Tools for Office Graying out CustomUI
Hi, When an Excel sheet is in Edit mode Some RibbonUI's are grayed out. I want the same behavior for my CustomUI. How can I detect that the sheet is in Edit Mode . Hi Mike, Thats the point, I am looking for specific checking. I am looking for the event when an user enters the formula bar or enters an Excel cell. This is what I mean by Edit mode: The moment an user enters the formula bar, the standard ribbonX buttons turned gray and at the bottom of the excel document the text "Ready" turns to "Edit" or "Enter". So I am looking for that Event. with regard Vincent ...Show All
Smart Device Development Management of calls
Hi, I make easily one call with a method (Talk(...)) of the class Micrososoft.WindowsMobile.Telephony.Phone. But this class has not a function or an event which detects or shows an incoming call. It is possible to detect any incoming sms with a MessageInterceptor. And... there isn't any similar function for calls I don't know what class could do it. Anyone knows it Thanks a lot. Alvaro. Yes, there is - using the State and Notification Broker API. The property SystemState.PhoneCallCalling (and SystemProperty.PhoneIncomingCall) is what you are looking for. Michael ...Show All
SQL Server Rowversion as a history mechanism
Hello, I have a requirement to maintain a 'history' table beside a products table. Any time a row is changed (added/removed/updated) in product table I need to add a new record to the history table. I would be using a rowversion column in the products table. And would want that rowversion to be preserved in the data on the history table ... So I'm thinking I'd use a trigger etc..thats no a problem, I can manage that... What I'm wondering about is what datatype the column to hold the rowversion in the history table should be I'm thinkin that it shouldn't be a rowversion because I don't want it to change value in any automatic way... or even get mod'ed by the action of actually inserting the record into the history table.... So, may ...Show All
Visual Studio Express Editions Visual C# and SQL Express Problems
I have installed SQL Express, Visual C#, created a test project and created a database. Made a table, populated it with some random info, and it appears that it is connected to the database server. I create a simple form to display in a table this information, it works. The problem is though, I cannot see my database with the SQL Server Management Express. I refresh and nothing, just like it does not exist. More, if I stop the instance of the server, and try to relaunch the simple form, it will not run since it cannot connect to the database. So, it seems like there is a database present, but why can't I see it with the Management Software hi, Nefer-Ra You got it, cause you created a database as a .mdf ...Show All
SQL Server Setting access permissions Iusr_Servername to access SQL Help please!
I need some help I have a 2003 MS Small business server with MS SQL 2005. I have a access front end database and SQL server back end. I need to connect a web site form in iis on the same server to the sql tables . I am generating errors in the event log when I submit the form data from the web, “Login failed for user SERVERNAME\IUSR_SERVERNAME! (CLIENT:192.168.1.37) ! Can anyone direct me to a paper that will step me through setting up this access Oh No wait! I still have the same problem, client has access with a VPN connection established to the SQL server but fails with out. I desperatly need help. Anyone want to help me with this ...Show All
SharePoint Products and Technologies Error while type casting
Unable to cast object of type 'Microsoft.Office.Server.ApplicationRegistry.Runtime.ComparisonFilter' to type 'Microsoft.Office.Server.ApplicationRegistry.Runtime.WildcardFilter' I am trying to excecute the app def file through web part and the filter descriptor is of type Int64 hence i have used comparisonFilter < FilterDescriptors > < FilterDescriptor Type = " Comparison " Name = " ID " > < Properties > <!-- Equals is the default and may be omitted. --> < Property Name = " Comparator " Type = " System.String " > Equals </ Property > </ Properties > </ FilterDescriptor > </ FilterDescriptors > ...Show All
Windows Forms Extracting cell data from dataGridView
Any help would be greatly appreciated, as I cannot seem to find an answer. How does one extract the value of a particular cell from a dataGridView object in c# I looked for dataGridView1.Cell(3,4) but 'Cell is not appearing as one of the methods available for this class. TIA. Most simple way : this .dataGridView1[3,4].Value ...Show All
Windows Forms Why is a cell ALWAYS selected in my DataGridView
I just dont get this one. No matter what I do, whenever I load my form with a DataGridView, which has two DataGridViewComboBoxColumns inserted, the first cell is always selected by default. I tried setting the focus() for one of my buttons but that did not change anything. I even tried cycling through the selectedCells property of the DataGrid and setting the Selected property to false. NO WHERE in my code, as far as Im aware, do I tell the DataGrid to have a selected cell. Is there some special way I have to do this because of the ComboBoxes If someone can help and needs to see the code, let me know.. thanks... Hi, Have you tried dataGridView1.ClearSelection(); after you get the data Hope this help ...Show All
Visual Basic Query about how to access a Remote system Time
Hai, I need to know how or code to access Time of the remote machine or a server, without using server side scripts.If anyone knows help me...... Yours, S.Sheik Badhusha Sheik Badhusha, I suggest you to use the Romote Access Service (RAS) to create your remote connection and some certain methods to get the remote server time. When you have tried this method and got something wrong, please post your question on the detailed steps or code problems. ...Show All
Windows Forms ToolStripButton style -ToolStrip Issues
Hi, I need to have a Button on a ToolStrip that would look like a normal windows button(elevated/projecting) as opposed to the flat default appearence.How do i do that Also if i need to set the border color of a ToolStripTextBox do i have to create a class deriving from ToolStripRenderer and if so how would i set this Could someone help me how i can achieve the above 2 Thanks in advance.. If the provided ToolStrip controls do not suit your needs then your needs then your best option is to build your own based on ToolStripControlHost so as to host a button inside of a compatible type that can be added to the ToolStrip. You can find an excellent tutorial on how to do this here . ...Show All
SQL Server To view data that is not in the database
i want to create a matrix report that displays the total of cases in a month with the cases is a row and month from january to december as a column. The problem is, in the database there might be no cases for certain month and the month column will skip the unavailable month. How can i create the expression that will still display unavailable month and the total is '0'. A matrix only shows data that is availible. Using a group by month will result in only visible columns for the availible months. The most easy way to resolve this is to rewrite your query. Create a table with all the 12 months ans left join this with your cases table. This results in a columns containing all 12 months and all the cases ...Show All
