73 Posted Topics
Re: Actually that is the default behavior. Check 1. what "action" for the form is. 2. If you have "server.transfer" 3. "response.redirect". If you already have solved, post the solution. If this solves close the thread. | |
Re: if the purpose of the button click is to increase the logo by 10 each time, then you are also missing [icode]LogoButton.Width = LogoWidth ; [/icode] after you increase the value of the variable on buttonClick. As for the error, cannot find what is causing it. Can you step through … | |
Re: I used frames, though it is not a prefered solution; but is sure simple and guaranteed to work. | |
Re: VB.net. If C# is choice, personally I will go for C#. If you have C or java exposure go for C#. No arguments. Mark thread as solved. | |
Re: This might not help you much; since looks like Ok from the code posted above. Can you check if the table tblReservation in the database has as many (8 or more) columns as you are inserting here? If there are 7 or less columns, this will cause error. Also I … | |
Re: Alternate c# syntax for session I use: [iCODE] Session["userName"] = Textbox_userName.text;[/iCODE] or [iCODE] if (Session["userName"] == null) server.transfer("LoginPage.aspx"); else Label_userName.Text = "Welcome " + (String)Session["userName"]; [/iCode] Session is just like hastable, a collection of objects, one per user. Though you can store any object, on retrieval you will need cast … | |
Re: There are 2 ways to do this: using same page 2 panels or 2 pages for 1. data entry and 2. Confirmation. You can hide-undhide panels (panelConfirm.visible= true) if you decide only one page. For one page solution: By default, show data-entry panel , hide other. On submit, read text … | |
Re: ASP return HTML to browser. HTML understands <BR /> as break, not new line character. So replace your new line with <BR /> after you fetch from DB and write to response. | |
Re: Though I don't know ColdFusion I will attempt this: use simple htm or html for frames. I use frameset in htm manu times. And html will work with dot net or Coldfusion or anything else. There got to be something else with browser version, not server technology. When you say … | |
Re: When you say data is updated in the database, you mean you have handled the page postback correctly. Also you are saying the datalist is filled correctly when page is refreshed, that means, the datalist filling code is there and working AND the datalist depends on your latest update. All … | |
Re: Need 3 loops, not 2. One for rows, one for spaces, one for stars. I don't know syntax of while you used; but here is sample (not tested/compiled) code: [code] for (rowNum=0; rowNum < rowCount; i++ ) { int blankCnt = (rowCount - rowNum) * 2 -3; //thanks to roswell67 … | |
Re: A quick idea (not tested) [code] SELECT COUNTRY, SUM(CASE WHEN Type='SALES' THEN COST END) AS SALES, SUM(CASE WHEN Type='Expenses' THEN COST END) AS Expenses, SUM(CASE WHEN Type='Taxes' THEN COST END) AS Taxes, SUM(CASE WHEN Type='Profit' THEN COST END) AS Profit, sum(when type in ('SALES','Expenses','Taxes','Profit') then cost end) as RowTot FROM … | |
Re: When you scream for help, shouldn't you put your solution when you find one? | |
Re: As I read it, you already mentioned MVC. View tells controller, controller updates model (or vice versa). MVC is the pattern. In addition, Observer can be used, where client subscibes to model and model notifies client(s). There are java and php samples at [URL="http://www.fluffycat.com/Java-Design-Patterns/"]http://www.fluffycat.com/Java-Design-Patterns/[/URL] | |
Re: To me it looks like you will have to write stored procedure, to handle the case of [QUOTE]If there is an uneven Quantity versus Student count, then the credits will be allocated from top to bottom, adding an extra to each of those students.[/QUOTE] I cannot think of a single … | |
Re: why not hide the column in fillGrid method? [code] if (yourCondition) { gridview1.Columns[2].Visible = false; } [/code] See if this works. | |
Re: In dot net, once you connect to a database, you have lists of all tables and for each table, list of columns available. Select * from each of the table and loop through all columns for all records. Sounds like simple looping but might be whole lot of work for … | |
Re: In addition to Scott Knake's suggestion, I also see logical problem. First you need to find year then semester at that year [code] ALTER PROCEDURE CurrentSemesterCourses @StudentNo int AS DECLARE @Semester int DECLARE @AcademicYear int Set @AcademicYear =(SELECT TOP (1) AcademicYear FROM ppu_RegistrationInfo AS ppu_RegistrationInfo_1 WHERE (StudentNo = @StudentNo) ORDER … | |
Re: As suggested by Scott Knake, find what the final SQL is, copy that and paste in query analyzer to see if that by itself. Syntax error given there are more informative. Other thing he suggested is paramterize your query. Otherwise, data with single quote will bomb the query, worst yet, … | |
Re: [code] select MakeName + '(' + cast((select count(*) from CarSale p where p.MakePK = m.PK) as varchar) + ')' dispField, m.PK from CarMake m [/code] For MS SQL 2000 above code, assumes PK as primary key for join of CarSale and CarMake. Also assuming that you will need the PK … | |
Re: I suggest a few steps; but if Javascript is disables, part of this will fail. 1. open the app as new pop-up window without menu/toolbars etc. (need JS) 2. disable right click (using JS) 3. disable back key (using JS, causes bad user experience) 4. Add "Expires" to HTML headers … | |
Re: It is more like logic problem than technology problem. Note that paint method is called everytime there is change in the Graphics. It is beyond your code's control. Which means every time something happens (like re-size / hide-unhide), Graphics gets refreshed, calling paint method. Now you are drawing (fillOval) all … | |
Re: read about Graphics object, there are more keywords I can think of: DrawLine AddEllipse Find details in MSDN or google for it -Padte S |
The End.