Jump to content

pulpfiction

Members
  • Posts

    1,210
  • Joined

  • Last visited

Everything posted by pulpfiction

  1. I guess the problem is in the LIKE you have given a Column name [Cname], this will not work. We have to give some text of the data under this column name. Select Cname from page1 where Cname like '%Cname%'Select Cname from page1 where Cname like '%ja%'This will look in the column "Cname" for the text ......ja......cname---------jojaypulufictionname3name4ex: match would be jojay
  2. Hi guys,How can we get the size of a particular [PDF] file . I'm using ASP.NET/VB. Thanks.
  3. Try this...<html><head><script type="text\vbscript">function test(n)'dim n'n=4 if (n=0) or (n=1) thendocument.write("zero")exit functionend ifif (n=2) thendocument.write("one")exit functionend ifdim old,current,ne,jold=0current=1document.write(old & "<br>" & current & "<br>" )for j=3 to n step 1ne = old + currentdocument.write(ne &"<br>")old=currentcurrent=nenextend function</script></head><body><form name="form1" onsubmit="test(document.form1.refno.value)"><input type="text" name="refno"><input type=submit value="Submit"></form></body></html>
  4. The answer for your first question..type = content-type [CI] This attribute specifies the scripting language of the element's contents and overrides the default scripting language. The scripting language is specified as a content type (e.g., "text/javascript"). Authors must supply a value for this attribute. There is no default value for this attribute. language = cdata [CI] Deprecated. This attribute specifies the scripting language of the contents of this element. Its value is an identifier for the language, but since these identifiers are not standard, this attribute has been deprecated in favor of type.
  5. Hi,It is not necessary that you will need CInt function, it will just round off the number. but you will need to make sure that only numbers are given in the textbox or your calculation will throw an error. another thing is that the if statement to check if the textbox is empty must be ahead of the calculation..HTH
  6. Check this out, this might be of some help, search for "Example 2" in the page..http://sitescooper.org/tao_regexps.html
  7. I dont think you can do that with FormatCurrency Function. you can divide the number by 100 to get that. [you might be knowing this] about formatcurrencyhttp://www.csidata.com/custserv/onlinehelp...docs/vbs109.htm
  8. pulpfiction

    Date format with +1

    i'm not really sure abt this, but this is done to subtract 1 day, hope there's somthing similar to this for hour.$unixtime2 = strtotime("-1 day", $unixtime);
  9. Public Function FileExists(ByVal FileFullPath As String) As Boolean Dim f As New IO.FileInfo(FileFullPath) Return f.Exists End FunctionResponse.Write(FolderExists("C:\DELL\dellbutn.html"))when I do this it write "false" instead of true, where am i going wrong???
  10. hi, is this what you want.<asp:requiredfieldvalidator id="passReqVal" runat="server" ControlToValidate="txtboxname" ErrorMessage="missing password" Font-Size="10">* </asp:requiredfieldvalidator>// Collects all the error msg.<asp:validationsummary id="ValSum" Runat="server" Font-Size="10" DisplayMode="SingleParagraph" HeaderText="Please Enter "></asp:validationsummary>This kinda required field validation is fired when the page is postbacked.
  11. some things to point outPHP faster compared ASP, Cross Platform compatablily, PHP programms run on Unix, Linux, Solaris and Window's with ASP you are mostly stuck with Windows
  12. These are mostly personal opinions, You can get a rought idea of ASP and try move on to ASP.NET. PHP would be better if compared with ASP.http://www.webpronews.com/expertarticles/e...22ASPvsPHP.html
  13. This is jus a representation, hth..Page/step 1:Code starting.........if everything is correct then just before redirect set$_SESSION['step1'] = true;and goto next pageCode endingPage/step 2:Code startingonly if $_SESSION['step1'] = true proceed else back.........if everything is correct then $_SESSION['step2'] = true;goto next pageCode ending
  14. What I meant was, the step2 page must set the $_SESSION['step2']=TRUE only after that page if done and just before it is redirected to the next page (page/step 3) where you will check for $_SESSION['step2']. Cos initially in page/step 2 the $_SESSION['step2'] will be false. Hope i didnt confuse more...
  15. When you click the "Open New Window" button it creates a popup with this message. if you click the button many times then it creates many popups with msg. win0 win1 win2 win3 [ array ], win0Welcome tomypopupso i think what he's trying to do is to close the popup 1 by 1 on every "close window" click
  16. Hi,The session will come ahead of all the code. You can have sessions like this,Example:Delivery Information : $_SESSION['step1']Payment Information : $_SESSION['step2']When the Delivery Information page is completed and is about to redirect to the next page the set $_SESSION['step1'] to TRUEWhen the Payment Information page [ http://bhuratea.com/checkout_payment.php ] loads, in the first line check if $_SESSION['step1']=truethen proceed with the pageelseredirect to previos pagesimlarly at the end of the second page set $_SESSION['step2'] to true and in the third page check if $_SESSION['step2'] is true..The session check will be in the first line because the age must not load if condition is not ture..
  17. I dont think there is a GOTO in VBScript, One way I can think of is to write theloop in a function and call it in the IF condition....Sub Looping()for jcnt= 0 to ubound(arShift,2) if NewShift = arshift(0,jcnt) then CheckShift =1 end ifnextEnd Subif checkShift = 0 then NewShift = NewShift+1 if NewShift > arshift(0,Ubound(arShift,2)) then NewShift = arshift(0,Lbound(arshift))Looping()end if
  18. UltraEdit - 32, just started using it, pretty nice.. its not free but you can try out the 45 days trial version..http://www.ultraedit.com/
  19. pulpfiction

    asp buttons

    This might be of little help...http://www.webwizguide.com/asp/tutorials/d...om_database.asp
  20. <script type="text/javascript">var obj = document.getElementById('elementId');obj.onmouseover=function(){onMouseOver="writeText('Moulin')"}obj.onmouseout=function(){onMouseOver="writeText(' ')"}</script></head><body><a id="test" href="#">test</a><p id="desc"></p></body>write the id of the <a> in the place of the bold text, try this....var obj = document.getElementById('test');
  21. Hi, You can also check for the higest value of the Identity Column for that student. this will be the last record added for that student.
  22. <% MODE = Request.Form("mode") IF MODE = "Check" THEN This is where your validation, SQL Update code will be. END IF %><html><form action="Currentpage.asp" method="post" name="frm">HTML Code for textbox etc...<input type="Hidden" name="mode" value="Check" /></form></html>The top ASP code will not be executed in the first time, since the IF condition will fail. But when the submit button is clicked, the page is reloaded but by that time the hidden textbox will get the value and will go through IF condition. This will make the top ASP code to execute.HTH
  23. This should answer most of your questions...http://webmonkey.wired.com/webmonkey/03/30...?tw=programming
  24. pulpfiction

    DIV question

    Yeah, i too would do that.. save the menu and the footer in a seperate file and just include them all the pages... that simpler...
  25. Is this somthing you are looking for....http://www.dotnetjohn.com/articles.aspx?articleid=51
×
×
  • Create New...