Topics
-
-
- Leaders
- 7 replies
- 2.9k views
I�m fairly new to VB .NET, and I�m stuck on the following problem: I added a load of controls at runtime from code. Depending on the values in a table, I have a loop which creates a tab page and a button (and other controls on the tab page) at runtime. I named each button/object with the number of the tab page created e.g. btnDel6 (for the xth Tab Page created e.g. btnDel(x).Name = "btnDelete" & x.ToString ). I have bound the button to an event handler which works fine. This button will delete the Tab page and the related record in the table. However, I have hit a snag. I need to reference another control I created on this tab page which stores my datab…
Last reply by jch001, -
-
- 2 replies
- 2.9k views
Is anyone know how to populating the menu by user role using SiteMapDataSource in vb code?I found a lot of code use the c#. I'm not familiar with that. "Login Page" <-this is simple login authentication page protected void Button1_Click(object sender, EventArgs e) { string userName = txtUserName.Text; if (userName.Equals("admin")) Response.Redirect("~/Admin/AdminHomePage.aspx"); else if (userName.Equals("user")) Response.Redirect("~/User/UserHomePage.aspx"); } "Class File - Navigation Manager" using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using Sy…
Last reply by calvin, -
- 0 replies
- 933 views
Hi I came across this, and thought it was interesting. Say I have a table "Table1" with a column "xmlData" of type XML . Now using ADO.NET, I can drag out rows from this table into a DataSet. If I have a row Row1 in Table1, and the column xmlData was <name="tim">, dragging it out onto the dataset, i would get this <name=\"tim\"> The \ are there to just tell the compiler that the " is not the end of the string. Anyway, if i choose to insert this row back into the table, say with a storedProc1 that takes in a parameter xmlData of type xml this will cast an error because the \ is stuffing up the format of the XML i will get this error X…
Last reply by csharp_boy, -
- 1 reply
- 788 views
Hi, I have datagrid which works fine. However, I have a button which when clicked updates a value in the current selected row. This seems to work, I can see the value change. When I click my Save button, this value is NOT saved to the database. If I alter any other value manually in that Row then BOTH values get saved. I obviously need to set an update flag or something. Does anyone know the syntax or am I completly missing the point. I have done some searches but I have drawn a blank so far. thanks in advance. :confused:
Last reply by jch001, -
- 1 reply
- 749 views
I would like to use a binding navigator to allow the user to move through the database records. I cannot seem to figure out how to bind it to my dataset/dataadapter entirely through code.
Last reply by kcwallace, -
- 3 replies
- 809 views
Can anyone direct me to a tutorial on dragging shapes (rectangles, lines, etc.) around a form. I have figured how to put a shape on a form, but I cannot seem to figure out how to manipulate at runtime by using mouse movements.
Last reply by Cags, -
- 2 replies
- 851 views
No i++ in VS 2005?!!! Really?!
Last reply by mskeel, -
-
- Leaders
- 15 replies
- 1.9k views
Hi, I have code that creates a new tab and adds it to a Form. Every time a new tab is created I would like a FileSystemWatcher event to be created to monitor the file that is loaded into a RTB on that tab. The issue I have is the Watchers aren't unique. Everytime a new tab is opened the old Watcher gets overwritten by the new one. How do I define a FileSystemWatcher which has a name which can be increased or changed everytime my "create a new tab" code is run? Something like a simple counter that gets increased everytime the code is run, the FileSystemWatcher's name could then be set to the counters current total. How would I do that? Or does anyone have a neate…
Last reply by mskeel, -
-
-
- Administrators
- 2 replies
- 10k views
Hello Programmers, I try to add a rule to an datagridview manually. But i'll get an error. DGfactuurregels.Rows.Add(dataGridView3.Rows[1].Cells[3]); The error was: can't add row to databound datagrid. Is there something els for?
Last reply by Jelmer, -
-
-
- Administrators
- 1 reply
- 862 views
Hi Im trying to serialize an object to XML (c#) using the System.XMLSerializer but Im getting exceptions due to the class being an interface (see code snippet below). string filename = @"C:\Mark\CODAAccount_" + myElement.Code + ".xml"; TextWriter tw = new StreamWriter(filename); XmlSerializer serializer = new XmlSerializer(typeof(codaElementClass)); serializer.Serialize(tw,myElement); I have read that there are ways I can implement the ISerializable interface which will allow me to serialize my object, but can anyone help me with this and provide some example syntax?? Thanks Mark
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 1.8k views
I have created a Windows application using VS 2003 and used the setup wizard for deployment purposes. It runs perfectly well on my machine but after I install the application on another machine and try to start it I get an error that says; "Application has generated an exception that could not be handled. Process ID 0x450 (1104), Thread ID 0x3a8(936)." What have I messed up. Shawn the desparate programmer
Last reply by PlausiblyDamp, -
-
- 0 replies
- 849 views
hi all i have a problem during loading the usercontrol dynamically. I have a basic navigation system for one part of a website. Along the left is a series of linkButtons and the right gets loaded with a different user control depending on which link is clicked. After loaded the user control sucessfully depend on the link. But it will dissappeared after a postback event. Any Idea on that?? Please help thanks so much.....
Last reply by ym21, -
-
- Administrators
- 2 replies
- 1.1k views
Hi, I would want to use .Net Passport authentication for asp.net websites. According to Msdn (VStudio 2005), the passport SDK has to be downloaded first. But the link given in msdn is no longer valid. I searched the net and microsoft's website but cant find any place to download the passport SDK. Has microsoft withdrawn support for the .net passport SDK? Are there any links to download the SDK? :confused:
Last reply by LiLo, -
-
-
- *Experts*
- 3 replies
- 1.2k views
I have 2 tables (Transactions, Entries) They have a relationship of one Transaction.ID to many Entried.TransID's. i want to be able to delete delete a list of Transactions & the associated linked entries based on a Transaction.Naration Value. How is this possible? i have tried; DELETE FROM dbo.Entries INNER JOIN dbo.Transactions ON dbo.Entries.TransID = dbo.Transactions.ID WHERE (dbo.Transactions.Naration LIKE '" & "Sales" & "') but gives me the following error ; Incorrect Syntax near the keyword 'INNER' as system.data.sqlclient.sqlconnection.onerror I'm only just starting to learn SQL and unsure of what's going wrong here, any ass…
Last reply by q1w2e3r4t7, -
-
- 0 replies
- 1.4k views
I'm trying to use MapPoint in my ASP.NET app. In the Windows-Forms example I found online, it uses a PictureBox to show the Map: MapImage tempImage = renderService.GetMap(mapSec)[0]; myPictureBox.Image = new Bitmap(new MemoryStream(tempImage.MimeData.Bits, false), true); Is there a control in ASP.NET that will allow me to set it's Image property as it shows above?
Last reply by Ice725, -
-
- Leaders
- 4 replies
- 3.5k views
Anyone know if it is possible to use 'pointers' in vb.net to read and write to another program's memory stack as you can in c++. If anyone could give me a quick rundown or point me to a good resource on doing this it would be most appreciated
Last reply by snarfblam, -
-
- 0 replies
- 1.2k views
I am trying to organize my log messages. When I send a log message, I look back in the stack trace to get the Calling Method and Object type, not actual object. How do I find what the actual object was? I also don't know when a method starts until I log a message. All objects inherit from same base class and have an ID.
Last reply by onez, -
- 0 replies
- 903 views
I would like to be able to export a dataset directly to a pivot table report in .Net 2.0. I looked at CarlosAg.ExcelWriter but it looks like that is only good for 1.1 or 1.0. Does anyone have a good idea of how to do this in 2.0? If you even know of some good links to start with that would be great. I have gotten totally lost in Google land.... Thanks, Eva
Last reply by evaleah, -
-
- Administrators
- 1 reply
- 827 views
I'm wondering if somebody could help me resolve the infamous ""Object reference not set to an instance of an object." when I try to execute the following: I have a class like the following: Partial Public Class BinaryTreeSrchCrit Private intFldNum As Integer Private strSrchValue As String Private strOperator As String Private intSrchID As Integer Private intGrpIdx As Integer Private intPropIdx1 As Integer Private intPropIdx2 As Integer Private strLogicalOperator As String Private intRelIdx As Integer Private blnTrVal As Boolean Private strLRNode As String Private tnUlink As BinaryTreeSrchCrit 'top node of the tree Private tnLl…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 749 views
I recently installed the 2005 UPGRADE to Visual Studio, including SQL Server 2005. While I still have my old InterDev and VB6, SQL Server 7.0 is gone. Can I just reinstall 7.0 without harming the 2005 version?
Last reply by john07801,
-
Who's Online 0 Members, 0 Anonymous, 54 Guests (See full list)
- There are no registered users currently online