161 Posted Topics
Re: use the javascript timer function and set its interval to be the time entered. using your example setTimeout("alert('Some Message!')",5400000); the 5400000 is the number of milliseconds before the function fires. 1 hr and 30 minutes = 90 minutes = 5400 seconds = 5400000 milliseconds. | |
Re: I assume this is some homework? It can be done using a grid or table. You can then react to cell events if you wish. To save it in a database you have to run through each cell (ie every column in every row) one at a time and save … | |
Re: Firstly you need to install SQL Server Express on the web server as it may not be installed. Then you need to copy your database to the correct place (as it says the database is not there). then you need to configure SQL Server Express to allow user instances. Then … | |
Re: that is extremely dangerous for a number of reasons. Firstly does the end user know you are taking their files? What is to stop you taking other files such as their password etc. Secondly how do you know they arent malicious and put a virus or something in its place … | |
Re: you need the very simple String.Split() method. your string will be the textbox.text field and the delimiter will be a space. This returns an array of strings. This is C# but VB is 95% identical [code] //I did this the long way for you to follow char[] delimiter = new … | |
Re: single row = executereader single value = excutescalar. This will return the first column of the first row only so will not be any use for a single row that has more than one column. | |
Re: no easy way sorry. You have to get an array of datarows where the surveyid = the surveyid of the row you deleted (140 in your example) and sorted on the question number column. Then run through each one and redo the question number using a count e.g. [code] DataRow[] … | |
Re: use a string builder if you want to make it yourself. [code] stringbuilder sb = new stringbuilder; sb.appendline("<table>"); for (int i=0; i<=arraycount; i+=2) //for vb people it is For I = 0 to arraycount Step 2) { sb.appendline("<tr>"); sb.append("<td>"); sb.append(arrayvar[i]); sb.appendline("</td>"); sb.append("<td>"); sb.append(arrayvar[i+1]); sb.appendline("</td>"); sb.appendline("</tr>"); } sb.appendline("</table>"); //now put it … | |
Re: ahhhhhhh the oldest mistake with webpages that everyone forgets about. This is web pages NOT windows forms so you have to remember the difference it is VITAL! See your event handler at the top? [code]Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load [/code] It fires every … | |
Re: We need more information... post the line or two of code that throws the error. | |
Re: I dont know Visual Web Developer but if you are using .net 2 framework then everything is built in for you. Use the membership class. Even if you dont use it and roll your own you should have one table for logins and passwords and then the users have roles … | |
Re: you would have to write javascript so that on each keypress you would check the script against the array and return the next item in the array. If you wanted to do it server side you can do the same against a larger array using ajax. AFAIK MS Ajax 1.0 … | |
Re: in your html code you need <input type="button" value="Print" onclick="javascript:window.print();" /> | |
Re: if the texbox was bound to the database and there is no value then num1 num2 etc. is empty or null, neither of which will parse to a double to be able to be added. You need to do a test to see if they are null or empty and … | |
Re: to get the grid view to display the data then just bind the datasource you created to the grid (you can do it in the form designer in VS2005 To protect it so only logged in people can see it, either protect the whole page (use webconfig to protect different … | |
Re: css css and more css! your asp.net web sites should be split into 4 areas - the aspx page with just html (just what needs to be in the browser), the aspx.vb or cs code behind file with all the server processing, a folder full of css files (for presntation) … | |
Re: document.all doesnt work in all browsers as far as i know. use the more robust document.getElementById("myRTF") That doesnt always work either especially with older browsers. | |
Re: my vb and my VS2003 are very rusty so there may be a better way than this. You just get the record from the dataset/datatable and set the textbox.text or label.text = to the rows cell for the relevent data. eg dim arow as datarow textbox1.text = arow("firstname") label1.text = … | |
Re: It doesnt by default for a website in VS2005. you would just upload your aspx files to your webserver. You can get it to compile to a dll and upload the dll if you want. It is more secure on the webserver but harder to maintain. I usually keep my … | |
Re: dont you use the built in memebership providers? all the information is done for you. When a user is logged in and you need to know their information at any time just call Membership.GetUser() and it will return the current logged in user who made the request. It caches it … | |
Re: in answer the original question your page references were incorrect. you have to get a reference to the calling page from the Server.Request object. Cast that to a Page object then findcontrol for your tabs. This is better than javascript as it is all done on the server. There are … | |
Re: the error is in your dbmig dll. The reason you see the error is you dont have debugging on that dll (probably because you have just the dll and not the source code there). In the code in the dll you are trying to connect to the database but your … | |
Re: use the formview control and bind it to a datasource control which is configured to access your database. If you use VS2005 they are there and very simple to setup (follow the wizards). Drop a form view onto your page, where it says datasource use the drop down to make … | |
Re: for much nicer rollovers and other more powerful tools use AJAX. Get the microsoft ajax toolkits and most of it is done for you. | |
Re: the easiest way is to put a response.redirect in the header of the page with the delay set to the same timeout (10 minutes in your case). Everytime the page loads after 10 minutes it will redirect the user to the page. If the user submits something and refreshes the … | |
Re: either flash or an animated gif if it is nice and simple. an animated gif is a series of "still" gifs put together one after the other and played fast (just as a normal movie is created). No extra tools are needed by the end user then - just a … | |
Re: the problem is because you deleted the form in your html code. You have no form therefore you cant postback to the server. As you have no form the postback script you hightlighted couldnt find the form so couldnt get the viewstate. Why did you delete it? You have to … | |
Re: why not use the system.net.mail namespace if it is just for sending mail? I use it all the time and is very powerful. | |
Re: But the question he asked was so open ended. Is it windows or web or web services login? VS2002, 2003, 2005? What datasource? XML? SQL Server 2000? SQL Server 2005? Notepad? Webconfig? Excel? Access? etc. Login for the whole app or part of it? So thats why he was "jumped … | |
Re: there are a couple of ways. The ALT Print screen is ok but you need a something like photoshop to up the resolution. Again it also depends on how you save it (png, bmp, jpg, gif etc). Also what resolution is the screen you are capturing on? Another way is … | |
Re: You can bind the Datagrid to arrays and other similar collections. Which version of VS are you using? If you are using VS2005 try the DataList control, it is much better for your use and you can code tables in the templates | |
Re: Just to point out... you do know it is illegal right? Anyway the best way to convert a cd is using any one of the many free players out there such as win media player, real audio player etc etc. All have built in rippers and support multiformats - though … | |
Re: Not had time to look over the code yet sorry. Couldnt you put a repeater in a user control and then you would be able to expand every one? I cheat. I bought the Infragistics controls years ago as they save me so much time. They have had hierarachical grids … | |
Re: you wont have lost your project it just cant open it as there doesnt seem to be a webserver on your pc. I have googletalk and it isnt interfering. 1. What version of visual studio are you using? 2005 or 2003? 2. What version of windows are you running? 3. … | |
Re: I use wire transfers which vary in price or for small amounts i use Western Union. It is instant. Also in the USA (and i think Canada) you can do a lot online with Western Union. As i said the best way is always a wire transfer | |
Re: you create an unbound column in the sales and use the Expression property whose value is quantity*price (assuming those are the two column names). Only create bound columns if you want data saved in the database or pulled from the database (you could have created the column in your query … | |
| |
Re: what version of visual studio, windows and IIS are you running at home and at college? | |
Re: Whats the problem? you didnt say if there was an error. What is the value in the registry? Is it a delimited text? | |
Re: Lets make it simple and to the point. 1. This is C# not C++ forum 2. Read the forum rules.. we dont do your homework for you 3. If you want help then post code using the code tags, and ask specific questions giving specific error messages at specific points … | |
Re: maybe consider using a property for each of these. It would appear that you will want something outside of your class to change the values so you dont want to make your fields public (or internal) as you have no control over the values in there. To create a property … | |
Re: What are you using to deploy the project? If you create a setup and deployment project you control the install directory there (though if you dont want the end user to be able to change then you have to do some changes to the setup UI too - though i … | |
Re: You really posted this in the wrong forum, but i am sure someone will move it for you. [quote] DoCmd.Close acForm, Me.Name [/quote] My vb is rusty but i dont see acForm declared anywhere. What is it? Seems like its your problem. What development tool are you using? Visual Studio? … | |
Re: Dataadapaters. it is .net not just asp.net. Use the built in csv driver to import straight into an ado .net dataset via a dataadapter. Then you can export it into access. | |
Re: you can use a custom validator in .net or any of the built in ones. By default all validators run on the client and on the server if java is not enabled on the client, so that solves that problem straight away. Depending on your exact needs you just need … | |
Re: [quote] I want to develop a software in C++, Java or VB to develop a software /tool [/quote] so he asks in a C# forum? lol | |
Re: Thats making things difficult. Normally a calulator works it out on the fly. When you press 5 then + then 4 then the next key you press the display would show 9 while it waited for the next number. Basically there are two groups... a number and an operator and … | |
Re: Paste that code above in your button click event. In the second line - p.StartInfo.FileName=file; replace the word "file" on the right of the equals with the name of your program you want to start such as 'notepad.exe' and it will do the rest. make sure it is a string … | |
Re: you made a small error... you didnt set 'name' to anything. [quote] Dim name as string Dim item As ListItem = listbox_seatsbooked.Items.FindByText(name) If Not item Is Nothing Then [/quote] need to be [code] Dim name as string = thebutton.tag 'that is assuming you set the tag to be the seat … | |
Re: I have extensive programming experience, especially .net and the .netcompactframework which is what we need to develop in for that os. Send me a pm and we can start a discussion on your needs. ![]() |
The End.