|
Hello
I’m perhaps a bit old fashion when it comes to ASP.
I try to build a Form populated whit Database data (from a Stored Procedure) and when I click the “save” button the data will be saved to the database thro a Stored Procedure.
But it won’t work, it looks as if the load event is fired before the button.click?????
|
|
|
|
|
That's correct. In the Page_Load event, check the Page.IsPostBack property. If the property is true, the form has been posted back and you don't need to populate it.
|
|
|
|
|
That's not what you would have figured if you are a old ASP-programmer like me. But It's kind of cool that I only hav to populate it ones.
Thanks
|
|
|
|
|
Hey:
i have a quicc question...:
i am trying to build an Online poll which, actually, i done. The issue is that in one particular part of my ASP code i am hitting a snag. This is the segment:
----
' Checc to see which value was selected by user,
' then increment that option's value by one.
CHECKER = Request.Form ("mysite_poll")
if CHECKER = "OPTION1" then
OPTIONVALUE_INSERT = OPTIONVALUE(0) +1
strINSERT = "UPDATE POLL1 SET OPTION1 = " & OPTIONVALUE_INSERT
OCONN.Execute(strINSERT)
^ THIS IS LINE 44 ^
elseif CHECKER = "OPTION2" then
OPTIONVALUE_INSERT = OPTIONVALUE(1) +1
strINSERT = "UPDATE POLL1 SET OPTION2 = " & OPTIONVALUE_INSERT
OCONN.Execute(strINSERT)
elseif CHECKER = "OPTION3" then
OPTIONVALUE_INSERT = OPTIONVALUE(2) +1
strINSERT = "UPDATE POLL1 SET OPTION3 = " & OPTIONVALUE_INSERT
OCONN.Execute(strINSERT)
end if
----
The error that i am getting follows:
----
Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
/specter1/asp/poll1.asp, line 44
----
This is recieved whenever i make a selection. Can you please help?
Thanks in advance,
-- e c l i p t o i d . 3 3 0
-- Web Developer
-- Interactive Designer
|
|
|
|
|
I have a div tag with a scrollbar. The standard scrollbar in IE that always is visible do I want a different color of than the color of the div tag's scrollbar!
So how to make the color of my div tag to red and the standard IE scrollbar to black?
Can I use CSS and specify the class to the scrollbars?! If you know what I mean!?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
So how to make the color of my div tag to red and the standard IE scrollbar to black?
Can I use CSS and specify the class to the scrollbars?! If you know what I mean!?
I answered effectively the same question down below.
|
|
|
|
|
Oh!
So I can do the same with div tags? Cool!
I will try it!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
http://www.gotdotnet.com/playground/services/QotD/default.aspx[^]
The web service only returns a random quote,
Does anyone give me guides that how to add the man head opening his mouth widely and shouting angry and the box that contain the quote?
Thanks.
this is my signature for forums quoted from shog*9:
I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
|
|
|
|
|
Hi folks,
I'm working on a webpage using a stylesheet - but when I've changed the stylesheet file and reloads the page - the changes aren't visible. If I close the browser and reopen it, changes in the file are reflected on the page.
I've set the "Tools->Internet options...->Settings (in the Temporary internet files section, on the General tab)->Check for newer version of stored pages" to "Every visit to the page", and this works fine for regular html and asp pages - but not for stylesheets. And I can't set the buffer used for file caching to anything below 1 MB.
So what do I do ? Any help is much appreciated.
/Jan
|
|
|
|
|
Clicking the Refresh button has always worked for me... even for style sheets.
Word of the day: Rotundacrat
Extra Credit will be awarded for: Quasimobo...
|
|
|
|
|
You could try holding shift or ctrl when you refresh (which forces the browser to do a full refresh and forget any cached content. different keys are used by different browsers, and I can never remember which is which)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Hi all,
I have an ASP application (not .NET) that uses VBScript to access Files and Folders on a Data Server. I had hoped to be able to just map a drive to the shared folder, but this is not possible due to security issues.
SO I need to know how I can use the "net use" command to map to this share and still be able to use the FileSystemObject to see the files and folders.
Thanks in advance for any help!
AD
I find myself saying -
Then I think -
and I start going -
|
|
|
|
|
You can't do this from plain VB-Script and as far as I know, FSO doesn't provide this functionality. So your only option is to write your own COMponent (poc in VB).
hth
Matthias
In theory, there is no difference between theory and practice. In practice, however, there is.
(unknown author)
|
|
|
|
|
I try to do this:
System.Data.DataSet dataSet = new System.Data.DataSet();
dataSet.ReadXml("mp219.xml");
System.Data.DataTable dataTable = dataSet.Tables[0];
System.Data.DataRow dataRow = dataTable.Rows[--nr];
Namn.Text = dataRow["Namn"];
Bor.Text = dataRow["Stad"];
Inriktning.Text = dataRow["Inriktning"];
Presentation.Text = dataRow["Presentation"];
But I get this error:
Compiler Error Message: CS0029: Cannot implicitly convert type 'object' to 'string'
Source Error:
Line 116: System.Data.DataRow dataRow = dataTable.Rows[--nr];
Line 117:
Line 118: Namn.Text = dataRow["Namn"];
Line 119: Bor.Text = dataRow["Stad"];
Line 120: Inriktning.Text = dataRow["Inriktning"];
Source File: C:\Documents and Settings\Administratör\Mina dokument\Unnamed Site 1\pre.aspx Line: 118
In a simple C# application it works well!
But when I run the same code in an ASP.NET webpage I get that error!!!!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
I know what it was....
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Hi All,
I am curious as to whether anyone could tell me where I might find some info on the browser compatibility numbers, by percentage, for the tag?
We are looking to use this tag on a rather large project and I am unable to find a good resource for finding this type info.
Any help would be greatly appreciated.
Thanks,
Surfelport
|
|
|
|
|
surfelport wrote:
I am curious as to whether anyone could tell me where I might find some info on the browser compatibility numbers, by percentage, for the tag?</i>
Google is your friend. <a href="http://www.blooberry.com/indexdot/html/supportkey/i.htm">http://www.blooberry.com/indexdot/html/supportkey/i.htm</a>[<a target=_blank title='New Window' href="http://www.blooberry.com/indexdot/html/supportkey/i.htm">^</a>]
Not sure what you mean by "percentage" because a browser either supports the tag or it doesn't.
<div style="padding-left:36px;font:10px verdana;color:#fff;width:200px;border:dashed 1px #069;height:40px;background:#036 url(http://stormfront.bluegrassgroup.com/proudlysa.jpg) no-repeat 2px 1px;"><strong>Paul Watson</strong><br /><a href="http://www.BlueGrassGroup.com/" style="text-decoration:none;color:#fc0;" target="_blank">Bluegrass</a><br />Cape Town, <a href="http://www.proudlysa.co.za/" style="text-decoration:none;color:#fc0;" target="_blank">South Africa</a></div>
|
|
|
|
|
I guess he means "what percentage of my sites visitors will be using a browser that supports the iframe tag"
I only run a small site, that doesn't get a huge amount of hits, but the majority of my visitors use IE6, and 98% of my visitors use IE6, IE5 or Netscape6/Mozilla which all support iframes fine
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
benjymous wrote:
I guess he means "what percentage of my sites visitors will be using a browser that supports the iframe tag"
Well he needs both what browsers support the iframe and then how many people use what browser. So we both helped him
Netscape 4.x: 4%
IE 4: 8%
IE 5/6: 87%
Other browsers: 1% (Opera, Netscacpe 6.x, Mozilla 1.0 etc.)
But it doesn't matter, we should all be coding towards standards not browsers...
|
|
|
|
|
I guess my stats are a bit abnormal then (13% Netscape6/Mozilla users) - then again it's probably not surprising when you consider the number of my friends that I've converted to Mozilla
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
I want a webpage to show the printdialog and close the window when this printdialog is closed:
window.print();
window.close();
What am I doing wrong?
btw: is it possible to disable/change the header/footer dynamically before the page is printed?
--
Alex Marbus
www.marbus.net
But then again, I could be wrong.
|
|
|
|
|
window.print(); should load the print dialog to the screen, however it won't run the window.close(); function until the print dialog has closed by the user hitting the print button or hitting the close button on the dialog. Otherise the code works for me.
HTH
Nick Parker
The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
|
|
|
|
|
HI all
After reading the funny post about a "tree being hit ny lightning" I realise I have not got this tree control. Is this extra stuff you need to download? Or did I delete it in my sleep?
Thanx all
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
Ehhh . Ok I found it
Are there any other nice goodies like this available from MS?
Cheers
Give them a chance! Do it for the kittens, dear God, the kittens!
|
|
|
|
|
I have read the messages about changing the colors of scrollbars, can this be done on elements within a form only - eg. a textarea or select box.
|
|
|
|