73 Posted Topics

Member Avatar for naziatarannum

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.

Member Avatar for padtes
0
1K
Member Avatar for nachtluce

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 …

Member Avatar for padtes
0
561
Member Avatar for cavpollo

I used frames, though it is not a prefered solution; but is sure simple and guaranteed to work.

Member Avatar for cavpollo
0
1K
Member Avatar for umairraja52

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.

Member Avatar for Vineeth K
-1
246
Member Avatar for NelsonRodrigo

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 …

Member Avatar for padtes
0
102
Member Avatar for abhipro

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 …

Member Avatar for padtes
0
139
Member Avatar for twilitegxa

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 …

Member Avatar for twilitegxa
0
108
Member Avatar for kegathor

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.

Member Avatar for chsab420
0
85
Member Avatar for mjc225

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 …

Member Avatar for Kusno
0
221
Member Avatar for Major_Hafez

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 …

Member Avatar for Major_Hafez
0
535
Member Avatar for masterjiraya

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 …

Member Avatar for padtes
0
96
Member Avatar for caliguy1979

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 …

Member Avatar for caliguy1979
0
163
Member Avatar for coollife
Member Avatar for RehabReda

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]

Member Avatar for RehabReda
0
94
Member Avatar for tate-u

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 …

Member Avatar for padtes
0
157
Member Avatar for shankbond

why not hide the column in fillGrid method? [code] if (yourCondition) { gridview1.Columns[2].Visible = false; } [/code] See if this works.

Member Avatar for padtes
0
75
Member Avatar for nice_true

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 …

Member Avatar for padtes
0
114
Member Avatar for Ihab Salamin

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 …

Member Avatar for padtes
0
104
Member Avatar for manutd4life

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, …

Member Avatar for yorro
0
110
Member Avatar for fawadkhalil

[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 …

Member Avatar for fawadkhalil
0
146
Member Avatar for sila

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 …

Member Avatar for codejoust
0
94
Member Avatar for ice_cool

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 …

Member Avatar for padtes
0
93
Member Avatar for arunkumars

read about Graphics object, there are more keywords I can think of: DrawLine AddEllipse Find details in MSDN or google for it -Padte S

Member Avatar for arunkumars
0
126

The End.