Topics
-
-
- Administrators
- 4 replies
- 905 views
Hi all, I have one problem with queries. I am doing a program in vb.net and backend is ms access. My problem is... I have many controls on my form(windows application) In textboxes If I enter data(not mandatory) and click the search button. So depending upon the search criteria data will be displayed. I wrote the foolwing code. Dim ctl As Control Dim sSQL As String Dim sWhereClause As String sWhereClause = " Where " sSQL = "select * from Table1 " For Each ctl In Me.Controls If ctl.GetType.FullName = "System.Windows.Forms.TextBox" And & _ ctl.Text.Trim.CompareTo(String.Empty) <> 0 Then …
Last reply by Joe Mamma, -
-
- 1 reply
- 1.5k views
I am getting the following error when trying to open and read a file: Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the applicat…
Last reply by bri189a, -
-
- Moderators
- 2 replies
- 2.3k views
I am dynamically building EditItemTemplate columns for a datagrid. Whenever I bind the datagrid during the PageLoad the "edit" or "update" commands cause the appropriate event code to fire. But when I change the code to only do the binding on "Not IsPostBack" then the events don't fire any more. I need the event to fire without binding, otherwise the values will be lost. Any help would be appreciated. TIA , Shawn PS. The following article shows the method that I am using to create the template columns. http://www.dotnetbips.com/displayarticle.aspx?id=84
Last reply by sysdesigner, -
-
-
- *Experts*
- 2 replies
- 682 views
Hi all, I am trying to make a textbox which I can type paragraphs, just like when I am posting the thread on this forum. But I tried many times, all I can get is have a textbox which I can only type one line. Can anyone tell me how can I make a textbox to do that? Note that I am making an application and not a website. Thanks PlayKid
Last reply by PlayKid, -
-
-
- Administrators
- 2 replies
- 964 views
I have a web service which receives datasets and plugs them into a CRM I have a need to be able to connect to it from HTML and ASP pages. Am I going to have to receive something other than Datasets, or can a SOAP dataset be created from a non .Net web site?
Last reply by TheWizardofInt, -
-
- 1 reply
- 651 views
Hello, I have a datalist container on one page and i have two datalist containers on the desitation page. By passing the IDDepartment Parameter it populates a datalist on the receiving page; however i now find myself needing to seperate the information that is in one datalist on the receiving page into two (AND SO ON) datalist so that i may more define the information that is in each list, and prepare it for the next desitation page. I have run into this type of problem before and i keep working around it untill i am faced with it again. I am not sure if i am even asking this correctly; however, my overall goal here is to set up the Databinder.Eval to where i can …
Last reply by wayneph, -
- 1 reply
- 1.2k views
Hello and greetings. I hope this will be a simple question for most but is causing me grief. I am trying to find out the number of rows in an Excel spreadsheet. I am using vb.net. The code compiles beautifully but everytime I run the program it returns the row number to be 1. I know there are more than 1 rows on this spreadsheet. What am I doing wrong. Here is part of my code msgbox (ws.UsedRange.Rows.Count) ' just so I see how many rows are returned For i = 1 to ws.UsedRange.Rows.Count 'then I loop through the rows to get a specific column next i Thanks mjay
Last reply by herilane, -
- 0 replies
- 1.1k views
Hi! I am trying to export to PDF using vb.net and crystal. here is the code that i am using: Private Sub Export() Dim ExportPath As String = Request.PhysicalApplicationPath Dim crReportDocument As CrystalReport1 = New CrystalReport1() crReportDocument.SetDataSource(Me.DataSet1) crDiskFileDestinationOptions = New DiskFileDestinationOptions crExportOptions = crReportDocument.ExportOptions Session("filename") = Session.SessionID.ToString() & ".pdf" crDiskFileDestinationOptions.DiskFileName = ExportPath & Session("filename").ToString() crExportOptions.DestinationOptions = crDiskF…
Last reply by cathiec, -
-
- Administrators
- 2 replies
- 748 views
Hi all, In creating multithreading in the application, a lot of people would do somthing like this: Dim Thread1 as New System.Threading.Thread(Address of counter.Count) where counter.Count is a Timer, and what the code does is assign a timer in the entry point of a new thread and when the timer ticks, it goes to a place (usually a queue) to get the object and process it (Maybe I am wrong, let me know). Now, my question is, instead of assigning a timer (or some function/subroutine that does not have a parameter) to the thread, can I assign a subroutine that has a parameter to a timer. Thanks
Last reply by microkarl, -
-
- 1 reply
- 682 views
I've inherited this code and it has a function below. I've been readying about childrows but my light bulb is still not bright. Anyone can explain what that line is doing .. Public Function GetPricings() As Pricing() Return CType(Me.GetChildRows(Me.Table.ChildRelations("contract_line_item_pricing")),Pricing()) End Function
Last reply by Afraits, -
- 6 replies
- 811 views
I am using a dynamic array in a loop in my application and the redim is working well, but I need to know how to reset the array. Do i just use soemthing like ReDim MyArray() or would I use another method to clear the array out to where it was when I first declared it?? Thanks, Chester
Last reply by cpopham, -
-
- Administrators
- 3 replies
- 1.2k views
Hi All! Serious problem: CAS is blocking my code i've been reading several pages on the subject and trying numerous things but no results! THANKS ALOT!!!
Last reply by PlausiblyDamp, -
-
Movie Frame
by PROKA- 0 replies
- 998 views
This is extremely URGENT. I am uploading a movie to a server. I need to extract a frame from the movie to put it on the download page for that movie. Any Ideeas ? PLS I'M KINDA DESPERATE
Last reply by PROKA, -
-
- Moderators
- 2 replies
- 1k views
hi folks i'm pretty new to asp.net. so let me ask you a rather easy question: i've created a new custom web control. the project has been compiled. as far as i thought, i should be able to drag and drop this new control on a new web site (after the reference has been set...). well, the new control never appears in my toolbox... are there any important steps to be done, which i might have forgotten? tx for any help or advises. george
Last reply by Robby, -
-
- 0 replies
- 575 views
I am adding relationships to a dataset. This work fine if there is one primary key related to one foreign key. I can use a datatable variable. Now the problem arises when there is more than one column as a primary key in a datatable used in a relationship.. My problem is that these may vary and I do not know how many tables may be involved in the relationship. Anyone have any ideas? Thanks, Chester
Last reply by cpopham, -
-
- Moderators
- Leaders
- 7 replies
- 9.8k views
Hi all, Does VB.NET has a similar control to the VB6 "inet" for easy internet access? I looked in the toolbox and the components list but could'nt find anything. If VB.Net does not have such a control, what did microsoft offer in it's place ? Thanks to anyone who can help, Logicworks
Last reply by xcannon, -
-
-
- Administrators
- 5 replies
- 1.1k views
I have the following VB.NET class. Its function is to simplify database interaction. I want to create a web service to do the same thing for my web application, and to avoid multiple copies of the code residing on the intranet. My problem is, how do I pass constants from the web service to ASP.NET project? Imports System.Data Imports System.Data.SqlClient Public Class ADONET Public Const CnnStrDosimSQL As String = "Data Source=process;Initial Catalog=dosimetrysqldatabases;Integrated Security=SSPI;" Public Const CnnStrIT As String = "Data Source=process;Initial Catalog=IT;Integrated Security=SSPI;" Public Const CnnStrSQA As String = "Data Source=process;In…
Last reply by bri189a, -
-
- 0 replies
- 632 views
I�m trying to add this custom membership to the User policy level <ImembershipCondition Class="AuthorMembershipCondition, AuthorMembershipCondition, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4276f73535dd9aa7" Version="1" Name="Ricardo" /> using this command caspol -user -addgroup All_Code -custom Ricardo.xml FullTrust -name "Ricardo's code" -description "Code group grants all code writen by Ricardo full trust" but I get this message at the command prompt: ERROR: Invalid Xml.
Last reply by ricardo1090, -
- 2 replies
- 964 views
Friends, I have created a player and have used pictures to create the console and other controls. It also has a zoom function which basically changes the size of the form, thus changing the size of the other controls too (anchored). However, whenever it does this, it takes some time and gives this flickering effect till all the images are rendered. I have used pictureboxes for the control images. Is there a way of speeding this up? I have used double buffer but to no avail. HELP!!! DNM
Last reply by dotnetman, -
-
- Leaders
- 9 replies
- 2.4k views
I am trying to create something similiar to that which is featured in Visual Studio.net. I am sure you are very familiar with the list box that appears when you type in something like "textbox1." and then it displays a list of possible endings to the line. Basically what I want to create is something that does this exact same thing, except I tell it what to say. So far, I have a program similiar to that of notepad. What I want it to do, is as I put a period in, it reads the word prior to the period, and if anything is available for the word, it displays a list box just like that in the vs.net development environment. I can go up and down the list with the arrow keys, and …
Last reply by decrypt, -
-
Who's Online 0 Members, 0 Anonymous, 66 Guests (See full list)
- There are no registered users currently online