Topics
-
- 3 replies
- 1.1k views
I have an ASP.NET button click event. I want to do some validation and then if theres a problem display a javascript alert messagebox and exit the sub. I've got this working but the page posts back first and I get a blank screen with the alert box on, when I click OK the page loads. How can I throw up this alert box without causing a postback? Is it possible? Thanks
Last reply by amir100, -
- 0 replies
- 672 views
i have this as my connection string string someFile = "C:\\someFile.txt"; @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + someFile + @";Extended Properties=""text;HDR=YES;FMT=Delimited""" and i'm getting a "'C:\someFile.txt' is not a valid path however C:\someFile.txt will open when executed from run menu so widows does see it. not sure what is going on but if someone can spot something i have wrong in the connection string please let me know. i've tried it with and without a schema.ini file and got the same error so i don't think that is it
Last reply by barski, -
- 2 replies
- 921 views
Hello, I have an ASP.Net application using the .Net 2.0 Framework. I need to convert an HTML Report to PDF format. Can someone offer some possible solutions for creating the PDF. Creating from Crystal Reports is, unfortunately, out of the question at this time. Is it best to buy a development license from Adobe? We are not giving our users the capabilty to create their own PDFs. I only need to create a PDF and then save it so I can email it later. And there can be no user interference to generate the document Are there good alternatives to using Adobe's, and what do I sacrifice by using a third party? THis application is completely internal. Any hel…
Last reply by kcwallace, -
-
- Administrators
- 2 replies
- 3.9k views
This drove me nuts earlier, my first real experience with Vista. I have a Windows XP machine with a shared printer, the sharename is \\computer1\hpoffice. Ip address of machine 192.168.2.3 I have a Windoes Vista machine called computer 2 with IP 192.168.2.2 I can ping between the machines fine. I'm trying to access the printer from the Vista machine, tried using the standard add printer, network printer, share name. Tried both using the UNC path \\computer1\hpoffice and also by ip \\192.168.2.3\hpoffice. The error message was - the network path could not be found. Both machines are in the same workgroup. Cannot browse to the XP one whatsoever, again - the n…
Last reply by Mondeo, -
-
-
- Leaders
- 2 replies
- 764 views
I have create 2 form within my C# project. form1 is named login. form2 is named main. login form is used to verify username and password. once the username and password is verified, login form will terminate and call form2 to enter the main screen. I am having trouble calling form2. Anyone know how to do this within Visual Studio C++?
Last reply by snarfblam, -
-
- 1 reply
- 813 views
I have a form with a multitude of labels. I would like to code a generic event handler so that a click on any of the labels would fire a single event. The following code was adapted from a search on this site. I have set it up so that when a label is clicked the label name should be displayed in a message box. For this test case I only have two labels (Label1, Label2) on a form. The problem is that the message displayed is always "Label1" regardless as to whether I click on the form, Label1 or Label2. Public Class Form1 Inherits System.Windows.Forms.Form Dim ctl As Control Private Sub Form1_Load(ByVal sender As System.Object, _ ByVal e As System…
Last reply by TedN, -
- 3 replies
- 894 views
I have a dropdown list in a view belonging to a multiview control. This control is then inside an ajax update panel. My problem is that the the drop down won't call the method that handles the selected index change when the dropdown item selected is changed: <asp:DropDownList ID="ddGroups" runat="server" AutoPostBack="True"> </asp:DropDownList> 'Based on the group selected, get all the members assigned to that group. Protected Sub ddGroups_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddGroups.SelectedIndexChanged LoadGroupMembers() End S…
Last reply by mike55, -
- 1 reply
- 909 views
how to suppress and capture errors from Process.start? Currently If there is an error when I can process.start, a message box opens and waits for user input. How can I capture the error message and auto click ok and continue.
Last reply by davearia, -
-
- Administrators
- 3 replies
- 4.4k views
I'm currently developing client windows applications accessing web services. I'm using VS.Net 2002. Now for the problems. Timeout It is to my understanding that sending synchronous web request will have a probability of experiencing time out. I'm creating an instance of my web service with the name "mywebservice". :D Now I'm accessing a web service method; let's say Method1. When I'm executing mywebservice.Method1(), I get "The operation timed out" exception message. An immediate solution to this problem was setting the timeout property of mywebservice to -1: mywebservice.Timeout = -1 Done. Too bad that solution doesn't last long enough. It leads to problem n…
Last reply by amir100, -
-
- 0 replies
- 976 views
how to do triangle picking in 3d objects using directx manged c#? i had done the code using the sample from MDXinfo.com. but i cant highlight the triangle picked. i dont know the reason. pls help me
Last reply by prathu, -
-
- Leaders
- 2 replies
- 777 views
Hi Console.WriteLine(new Random().Next(50)); Console.WriteLine(new Random().Next(50)); Console.WriteLine(new Random().Next(50)); always returns the same value while it doesnt when using it as an object. Random r = new Random(); Console.WriteLine(nr.Next(50)); Console.WriteLine(nr.Next(50)); Console.WriteLine(nr.Next(50)); Is there some seed to take care of in #1 ? C# .NET 2.0 Thanks
Last reply by anjanesh, -
-
-
- Administrators
- 1 reply
- 1.4k views
My listbox displays an empty string when I add an form to it. I tried to override ToString and set listbox.DisplayMember to a property. It works when i use lbxHeader1.Items[1].ToString(); Does anybody have a clue what could be wrong? This is my definitions: public partial class TextDisplay : Form { public override string ToString() {...} } partial class Form1 { this.lbxHeader1 = new System.Windows.Forms.ListBox(); } public partial class Form1 : Form { private void lbxHeader1_MouseDoubleClick(object sender, MouseEventArgs e) { TextDisplay TextDi…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 5 replies
- 968 views
I have this statement SELECT * FROM vwAllMatrixVehicles WHERE created >= '2007/8/9' Using query analyser in sql management studio it returns about 80 rows. Trying to use it in ASP.NET with the SqlCommand class the same statement returns 0 rows. I've double checked my code, its fine. If I replace the select statement with something else that doesn't use a date its fine. Does SqlClient handle dates differently somehow? Thanks
Last reply by PlausiblyDamp, -
-
- 1 reply
- 801 views
Hi, I'm trying to access the onClick of an image to run some javascript when the image is clicked. document.getElementByID('imgMain').onClick = 'window.close' But it throws an error. Microsoft JScript runtime error: Object doesn't support this property or method Can this be done, if so whats the correct syntax? Many Thanks
Last reply by MrPaul, -
- 0 replies
- 1.4k views
Hello, Hello, I am using AxMSHFlexGrid in VB.NET and i setup Fix Rows =1 Fixed Cols = 2 How can I change the first row color Thank you
Last reply by jimwest1995, -
- 0 replies
- 1.4k views
I am using a drop down list which has auto-postback enabled as the option selected will enable a particular view in a multiview control. I am using the ajax update panel in order to prevent the post backs appearing to the user and showing the page being reloaded. However, the control seems to be throwing an error. The error occurs in the function "igtbl_submit()" in the file "Resource.axd" which appears to be automatically generated by .net. The exact error message that I am getting is: "Microsoft JScript runtime error: 'window.__thisForm.igtblGrid' is null or not an object" Any suggestions Mike55
Last reply by mike55, -
- 1 reply
- 879 views
Why do I always get this squiggly error lines under my EXISTING files? It annoys me so much. If I put a / before the files, the error goes away, but it doesn't work in the page.
Last reply by MrPaul, -
- 0 replies
- 783 views
when passed DataRow collection with modified row - this is the error message I am getting when I try to update my datagridview. The form is simple (or so I thought) - I just did the drag and drop and let VS2005 do all the code but when I try to update the datagridview, it deletes the information in the cell and I get the error message. Here is my code: Public Class RiskReleaseUsersForm Private Sub TDS_RR_EMPLOYEEBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TDS_RR_EMPLOYEEBindingNavigatorSaveItem.Click Me.Validate() Me.TDS_RR_EMPLOYEEBindingSource.EndEdit() Me.TDS_RR_EMPLOYEETableAdapter.Update(Me.RiskR…
Last reply by lorena, -
- 0 replies
- 4.6k views
Hello all. I have a C++ app that had been working, but needed a few tweaks. I made those tweaks, and it runs locally both on my machine, and the server that the .exe is on. The problem is, it is not run directly from the server, but from another server. Here is the specific message: Unhandled Exception: System.Security.Policy.PolicyException: Unverifiable assembly '\\pmasql\pmtravel\scripts\xml2sql.exe' failed policy check. The program runs from a machine named pmautil but the executable is loaded on the pmasql machine. It had been working just fine, so I don't know what "unsafe" code I may have added. I have changed the .NET framework permissions on pmaut…
Last reply by SteveoAtilla, -
-
- Administrators
- 16 replies
- 1.9k views
I am writing a small custom accounting software for my company. This application will have to be accessible for 3-4 people within the local area network at the same time. I am thinking of using ASP + Java Script + Access through IE interface to design the software. The only condition is that the software will have to react spontaniously because those account does input number fast. Any one has any suggestion on how and what language I should use to write this application?
Last reply by mandelbrot, -
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online