Topics
-
-
- Administrators
- 1 reply
- 2.2k views
I am trying to implement a Login validation using C# 2005 in ASP.net 2.0 web application. The SQL Server database contains a table named "UserList" with columns LoginId, Password and Role. The Login webform should authenticate the LoginId and password and depending upon the Role assigned to that user/visitor should redirect to a specific webform with a pre-defined menu options. The role might be Admin, DEO, Accounts or Member. How should I implement it? I have tried the following: protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { try { string uname = Login1.UserName.Trim(); string …
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.5k views
Is it possible to make a report for printing id cards in vb net using windows reporting (not crystal reports). I can only make to print report like table of database fields and data.
Last reply by oujea, -
-
- Leaders
- *Experts*
- 6 replies
- 5.8k views
i want this to have two columns in excel can i do that Dim writer As New System.IO.StreamWriter("test.xls") writer.Write(ComboBox1.Items(0)) writer.Write(ComboBox1.Items(1)) writer.WriteLine(a) writer.WriteLine(b) writer.Flush() writer.Close()
Last reply by Agent707, -
-
- 0 replies
- 1.6k views
Re: CustomValidator not being called! I have a similar problem, i need to validate a dropdown. As u guys mentioned, i can use a label and make my own validation. but i am using AjaxCalloutExtender to display the message. I think it is only supported by inbuilt validator controls. How to i do this??
Last reply by Aritra, -
- 0 replies
- 4.3k views
Hey guys i'm new to the forum here and pretty new to programming so go easy on me. I run a sharepoint site for the company I work for and we ran into an issue this morning. Currently using SP2010 and VS2010 for the coding. We are only running into problems with this one site. Everything else is running fine. Any help or suggestions on this would be grealy appreciated. Jeff Location / Description: 5 MScorlib Thread was being aborted. Imports System Imports System.Data Imports Microsoft.SharePoint Public Class TSHome Inherits System.Web.UI.Page Protected WithEvents gvAnnouncementLibrary As GridView Protected WithEvents gvPolicies As GridView Protec…
Last reply by jhunsi, -
- 0 replies
- 2.4k views
I make project with reference to Microsoft Word Object Library, Form1 (eazy windows form), Dialog1 (dialog form). In Form1 I insert Button1 and Button2. The code: Code: Imports Microsoft.Office.Interop Public Class Form1 Private WithEvents wdApp As New Word.Application Private WithEvents wdDoc As New Word.Document Private txtBox As New TextBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dialog1.Controls.Add(txtBox) �make textbox programmatically txtBox.Visible = True End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1…
Last reply by zaharius, -
-
- Leaders
- 2 replies
- 3.9k views
We have a service that runs several threads to handle different functions required by the service. One of the functions stops working after several days. I assume the thread no longer exists or is not running. How can I monitor that or tell if a thread no longer exists or is no longer running?
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 1.7k views
Hi everyone, I am new to ASP.NET and would like some assistance. I'm trying to call an XML tag from a rss feed found online. the tag reads:<dc:subject>5</dc:subject> However, the compiler throws and error when running. Please help. The code is as follows: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="fr…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.6k views
Hello, Hello guys, Today, when I tried to make a new button, and moved it in the designer, I got this error: http://i1257.photobucket.com/albums/ii514/CraploadStudio/img01.png It was okay until I moved it, but when I did, this error printed itsself on the button like a background image. The other forms in this project or any other don't have errors. Then I tried adding any control to the form, but they all printed this error when moved in the designer. There might be something wrong in the form's designer code, wich I chacked (form1.designer.vb). Does anyone have any idea of what this means? Regards, suzi9spal
Last reply by suzi9spal, -
-
- Administrators
- 4 replies
- 4.5k views
I want to use the PropertyGrid with a collection of my own types of objects. I want to give the user the option to choose from a number of pre-existing objects which he can add to the collection through the Collection Editor. I believe that the first thing I need to do is create a class inheriting from the CollectionEditor. But I can't seem to inherit from this. It's System.ComponentModel.Design.CollectionEditor right? It shows up in the Object Browser but doesn't seem to be recognised when I'm writing code at all. I'm probably missing something obvious, but any thoughts as to why this might be? Thanks.
Last reply by rbulph, -
-
- 0 replies
- 3.6k views
Dear all, I am looking for object-oriented programming example to a physical model, such as electrical circuit with voltage source and sinks, resistors, etc or any simple model comprising of source(s), model (controller), sink(s). The physical model is a combination of graphical and mathematical model. The user can create, drag & drop to a collector picture box, and connect them. I am wondering if anyone has any advice on this and probably with a link to a workable example. Thanks in advance
Last reply by xtremez, -
-
- Administrators
- 1 reply
- 4.5k views
What would cause this error? Problem signature: Problem Event Name: CLR20r3 Problem Signature 01: deer daq.exe Problem Signature 02: 5.3.6.35271 Problem Signature 03: 502d89fa Problem Signature 04: mscorlib Problem Signature 05: 4.0.0.0 Problem Signature 06: 4ee9a9f1 Problem Signature 07: 12df Problem Signature 08: 13 Problem Signature 09: System.ObjectDisposedException OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Additional Information 1: 0a9e Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 Additional Information 3: 0a9e Additional Information 4: 0a9e372d3b4ad19135b953a78882e789 Read our privacy statem…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 13 replies
- 2.7k views
Hi guys, first of all I'm not very good at programming and I've tried to be as explanatory as possible in my codes. I've been trying to write a program which enables a user to chat (recieved & transmit) messages via Serial Port using a simple custom made IR modem. I've constructed the modem and now trying to write my own simple program instead of using Terminal or other already written program (i.e. Tera Term). Btw, I'm on Windows 7 and using the Microsoft Visual Express 2010 Environment I've written the codes below, based on the tutorial at this site. Tutorial Site as well as this microsoft website for reference (putting it here just in case) MSDN Serial Port…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 2.2k views
Hi,I'm Polas and i need to someone to help me to fix the problem. The problem is how remove these google junk pages from richtextbox and fix listbox problem ? Here is the picture to understand what i mean. http://s1.ipicture.ru/uploads/20120804/bzt2Kk9l.png This code is for richtextbox to add pages. Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted Dim htmlele As HtmlElementCollection htmlele = WebBrowser1.Document.GetElementsByTagName("h3") For Each htm As HtmlElement In htmlele Dim chld As HtmlElem…
Last reply by polas, -
- 0 replies
- 1.7k views
Hi everyone, Following is the callback method that I use in my socket programming at client side for async receiving of data from server:- Public Sub OnDataRecieved(ByVal async As IAsyncResult) Dim Recieved_Size As Integer = m_clientSocket.EndReceive(async) ...........(rest of the code) End Sub What my doubt is that when "Recieved_Size" = 0, should I conclude that the socket has got disconnected? If not, then under what cases should Recieved_Size be = 0 ? Why I am asking is that whenever the connected server gets disconnected then "OnDataRecieved" method gets called and the resulting "Recieved_Size" is = 0. But it should be called only whe…
Last reply by sattu, -
- 7 replies
- 7.3k views
I don't suppose this is possible in VB.NET, is it?
Last reply by SkeeZoe, -
-
- Leaders
- 3 replies
- 2k views
Is there a way to extend the bounds of a control, so that it has some extra space between the physical boundary and the graphical edge? Look at the image in attachment that demonstrates what I want to achieve. In this case it is a datagridview with some extra space on the right. Sure, I could put it inside a usercontrol, but I want this control to Inherit directly from DataGridView.
Last reply by snarfblam, -
-
- 0 replies
- 2.4k views
I am running windows 7 professional and VS2010. I created a windows service solution which does nothing really just a practice project. It compiles successfully. I used installutil.exe to register the service and it returned messages stating that it installed/registered successfully. But it does not show in my windows services on the control panel>administrative tools> services. What am I missing?
Last reply by groads2, -
-
- Leaders
- 2 replies
- 2.4k views
Hello, I wonder how do I make a usercontrol that pops up a listbox. Just like the search box in Google. The problem is, that when I put a listbox in my usercontrol, it displays within the control bounds. This list though needs to be displayed outside the control bounds. How do I do this?
Last reply by bufer24, -
-
- 0 replies
- 2.5k views
Hi, I am making a usercontrol containing a datagridview and some additional controls and I need to expose the Columns property of the datagridview in my usercontrol at design-time. I know that it isn´t as easy as "Public Property Grid as DataGridView ..." and I tried many of the workarounds that I found on the internet, but with no success. Obviously the best way is to write a custom ColumnCollectionEditor. Could someone please provide a complete solution for this problem in VB.Net? Thanks in advance.
Last reply by bufer24,
-
Who's Online 0 Members, 0 Anonymous, 24 Guests (See full list)
- There are no registered users currently online