Topics
-
-
- Administrators
- 5 replies
- 3k views
i'm building a program wich have a search function. the user fills in a value in a textbox and presses the button. now the given value should pass to the select query string VAL; if (textBox1.Text != string.Empty) { VAL = textBox1.Text; } else { VAL = "%"; } this.dBANBM_T075_BORGTOCHTTableAdapter.Fill(this.testdb1DataSet.DBANBM_T075_BORGTOCHT); and the select query is: WHERE (T075_BORGTOCHTNUMMER_1 LIKE ?)" i use a acces database but when i execute this he says that there is no value for the paratmeter can anyone help me?
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 1.1k views
we have a desktop application done by a vendor. Not sure the language it's done with..i know it's not dotnet. We're going to write an ASP.Net/VB.Net application using that desktop as our blue-print. In general, what should we keep in mind when designing a dotnet web application from scratch? We're going to use VS2005/ASP.net2.0 and 3-tier. Should we use caching? do we need to keep machine.config in mind (change it to make performance better), I know we're gonna use stored procs, should we use sessions, what about security, garbage collection.. what should we absoultley keep in mind ..a rule of thump?
Last reply by PlausiblyDamp, -
-
- 2 replies
- 827 views
Hi I am a bit new to asp.net. I want to know the url from where I download asp.net 2.0 for free. Please tell me that where do I click for downloading asp.net 2.0 because on msdn site I found many links to download I don't know which is suitable one for me. My pc(Pentium 4, more then 2.2 GHz) has Windows XP Professional. I also want to know any url for free tutorial on asp.net 2.0. Because I m facing problems in using html controls inside form runat="server". Thanks alot and Take care Bye
Last reply by goharulislam, -
- 2 replies
- 1k views
Hi Plz help me, I want to know about editing and updating in datagrid. I am using vb.net and dataset in asp.net pages. I think problem is I am using CommandBuilder to update data source directly. take care thanks bye
Last reply by goharulislam, -
- 0 replies
- 1.5k views
Hi, I would like to use IIS to host one asp.net website. The website will be used by many users simultaneously. I have 3 doubts to ask: Does IIS allocate resources to these users one after another or does IIS use multi threads to process these users at the same time? Also, regarding application settings, IIS 5.0 has Low, Medium, High. Does IIS 6.0 have any improvements over those of version 5.0? Also, are the application settings related to multi threading? :)
Last reply by LiLo, -
- 0 replies
- 852 views
Hi! My web site has a product adding and a deleting page. As my server does not allow ASP.NET to write, when adding a product with picture, it ask FTP password through <impersonate> in web.config And when deleting I need my user to enter FTP password again. But this time page does not ask it as no upload required. My question is how can I make it asked? in other words how can i open FTP username/password dialog manually? Thanks in advance.
Last reply by aliassce, -
- 2 replies
- 2.1k views
Hi, I have a program I am trying to make, however I am a novice, and this is my first program I have written to be used by anyone other than myself. My question is this.. Is there any easy way to switch to the Microphone and to the Stereo/WaveOut like on the windows mixer. I would like to be able to offer this feature in my program, so people can easily switch between these two settings. I have been reading alot of tutorials and things. The only way I have come across so far is maybe with Windows API, but this seems very extensive, and a very lot of code for what seems like should be two simple functions. So please, if anyone could recommend an easy method for doing th…
Last reply by RiCK_420, -
-
- Leaders
- 2 replies
- 1.3k views
i want create style for my textboxs and forms i need to change textboxs border color how can i create new style object and set it to my forms and textboxs? how can i change textbox border color and size
Last reply by hamid, -
-
-
- Administrators
- 2 replies
- 777 views
Hi, I�m having a problem accessing a sub routine between forms I have three forms FormA FormB FormC FormA calls FormB modally (with backwards data links) and FormB calls FormC modally (with backwards data links) My problem is that I have a sub routine in FormC that needs to access a public sub routine in FormA and then have some data returned. I have tried: (FormC�s sub routine) Dim frmFormA as FormA (FormA has no sub new declarations) frmFormA.subroutine(declarations) When I call FormA�s subroutine, FormC exits and shows FormB modally. I don�t want to declare a new FormA in FormC as I need to have access to the data stored in FormA. How do I de…
Last reply by SimDuck, -
-
-
- Leaders
- 2 replies
- 685 views
Hi: I am transitioning between two text boxes...and depending on my users (some are real speed typers <grin!>), sometimes text from the previous box makes it into the next text box. My question is that if I try the gain focus event of the second text box. is there a way to clear the key buffer (assuming this exists)? Any thoughts would be appreciated. Thanks! Eric
Last reply by ehelin, -
-
- 3 replies
- 1.1k views
I'm now working on a way to only show the data that is repeated (i.e. Permit Number, PRU ID, Location, ect.) in the datagrid for the project that I was having trouble with a couple of weeks ago. I've got the code working so that the information is pulled based on the permit number that is entered by the user, but a few fields carry the same information all the time. Is there a way to only show that information once and not repeat it for every line of data that is displayed in the output?
Last reply by Puiu, -
-
- *Experts*
- 5 replies
- 1.1k views
I'm having a bit of design quandry... I need to return a result set of calculated values based upon multiple columns of data. Basically they are size calucations based on a table with Height, Width, and Thickness... In T-SQL... (simplified, AdjustWidth involves CASE and gets complex) SELECT [indent]Height, Width, Thickness, AdjustWidth = Width - 1, AdjustThickness = Thickness + 4, TotalWidth = 2*Width + Thickness + 2 TotalTimes8 = 16*Width + 8*Thicknes + 16[/indent] TotalWidth depends on "AdjustWidth" but it cannot be reffered to directly because is not a column. I'd like to be able to do something like this, with a local variable SELECT [inde…
Last reply by Puiu, -
-
-
- Administrators
- 2 replies
- 952 views
Hello, I connect to my db over oledb connection. I open Dim myCmd As New OleDb.OleDbCommand("sp_whatever") Dim myReader As OleDb.OleDbDataReader myCmd.Connection = MyConnection myCmd.CommandType = CommandType.StoredProcedure myCmd.Parameters.Add("@value", value) Try MyConnection.Open() myReader = myCmd.ExecuteReader but then from there.. i try to myreader.getstring(0) (I get back 6 variables).. and I keep getting an error saying that there is no text in the column or something like that. I know this sp returns 2 'tables' if you will ..because I exec sp_whatever directly to the db server. I t…
Last reply by trend, -
-
- 3 replies
- 1.1k views
Hi, I was create a login page to authenticate user. When user click on the "Login" button, it will post value to couple of profile. Protected Sub LoginButton_Click(ByVal sender As Object, ByVal e As EventArgs) Profile.SchoolID = "School001" Profile.UserID = "A0001" Profile.Role = "admin" Profile.Save() End Sub I did set the DestinationPageUrl to my first page. I was using the master page with Navigation Menu. All of this if working, If a user is "admin" role and authenticated, then user will go to my first page(DestinationPageUrl) and get "admin" Menu. My problem is when user click the Login button, th…
Last reply by calvin, -
-
- Administrators
- 3 replies
- 1.1k views
Hi, I create a asp.net 2.0 website and a lot of page include a login page. I convert the login control to template because i want to add a dropdownlist which poses some value which is needed like schoolID. The login page is work fine, but what i need is when user authenticated, I want to store some value to the profile. Like SchoolID, Role, and UserID. So I add the code below to the login page. Login.aspx.vb Protected Sub LoginButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) If User.Identity.IsAuthenticated Then If User.IsInRole("admin") Then Dim ddlSchoolID As DropDownList = Me.LoginView1.FindControl("ddlSchoo…
Last reply by calvin, -
-
- 1 reply
- 9.7k views
hi, i created a report in crystal reports using a dataset and populating it through xml (instead of connecting directly to the database) it works correctly, but i then wanted to add another field to the dataset. i added it to the xsd file, but when i go to the crystal report and refresh the 'database fields' list it still does not show up i tried re-running the custom tool on the xsd but that doesnt work surely there is a way of getting it to recognize the new field without having to remove and re-add the 'database' - if i do this, i lose all the fields that i have already laid out, formatted etc. thanks for your help!
Last reply by sdlangers, -
- 0 replies
- 806 views
Hi new to asp.net (& vb.net) Please tell me how can I use html controls (like textboxes and other) and messagebox in "client side script" of asp.net page. I m getting errors when trying to use these when using inside forms runat="server". thanks tc bye
Last reply by goharulislam, -
-
- Administrators
- 7 replies
- 3k views
Hi There, I have searched this site for "closing processes" and found some great stuff. I copied and changed some code that I found and have come up with the following function. Public Function PrevInstance() As Boolean Dim processes(), p As Process Try processes = Process.GetProcesses() For Each p In processes If Not (p.MainModule Is Nothing) Then If System.IO.Path.GetFileName(p.MainModule.FileName).ToLower() = "winword.exe" Then p.Kill() Exit For End If End If Next p Catch ex As Exception …
Last reply by kservice, -
-
- 2 replies
- 764 views
my MDI application create menu dynamicaly from a database. it get menu names and create them and add them to mainmenu of my mdi app. for each menu i add event that come up its name. in this case add event "name1_click" to menus that named "name1" but if there isn't any function with this address "name1_click" debuger return error that there is this function. ok. how can i check availability of this function before add event? i need a function that get a string and return true if there was a function with it string. private bool isfunction(string funcName) { if(there is function as name funcName) return true; else return false } private addEvent…
Last reply by hamid, -
- 0 replies
- 870 views
I'm using a DetailsView to update a SQL database. One row in the DetailsView contains a dropdownlist with a value = Heading and text = Headname. When the database is updated though, the Heading and Headname fields are both filled with the Heading value. I have separate parameters set up for each, so I can't figure out how both Heading and Headname are getting the same value. I'm sure it's something simple but I just cannot see it. Any ideas? Thanks! <asp:TemplateField HeaderText="YP Heading" SortExpression="HEADNAME"> <EditItemTemplate> <asp:DropDownList ID="ddlHeadings" runat="server" DataSourceID="dsHead…
Last reply by rangerstud620,
-
Who's Online 0 Members, 0 Anonymous, 45 Guests (See full list)
- There are no registered users currently online