|
Hello Dears
I have problem on date formating.
I am getting MAX Date from SQL DB Using the following Query
SET DATEFORMAT DMY SELECT MAX(CONVERT(DATETIME,TABLE_DATE))FROM TABLENAME WHERE USER_ID='USERID'result of this query is correct.
but the problem is when i am comparing DATEDIFF of date from DB and date from form(ASP FILE).it is working fine for some time and some time it is not working properly.
the Datediff code is here:
x = datediff("d",MaxDBDate,Request("txtdate"))
When i am getting this problem i am restarting my IIS Server after that it is working correctly.so i want to know what is the problem ?????
and my Server's Regional setting is also correct format that is DD/MM/YYYY
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
The regional settings used by IIS might change. The regional settings you set in the control panel is for the logged in user, not for the server in general.
Set locale id for the page so that you are sure what locale is used.
For an example, for swedish format I use:
<%@ Language=VBScript LCID=1053 %>
---
b { font-weight: normal; }
|
|
|
|
|
Hey guys,
1) I noticed that my local cache of web files from a site on my server is being stored in C:\Documents and Settings\Roman\Local Settings\Temp\VWDWebCache . Is it possible
to force VS .NET 2005 to store the cache with my solution file, so i can have a local copy? I tried editing the SLN file... changing it to the right directory but it refused to change..
2) Anyone get this error when adding files/editing files located on a Windows 2003 Server x64 with FrontPage Server Extensions 2002 from inside of VS .NET 2005:
Unable to add 'C:\Documents and Settings\Roman\
Local Settings\Temp\...\Default2.aspx' to the Web. An
error occurred accessing your Windows SharePoint Services
site files... The thing is, it actually adds them to the server, but VS .NET 2005 seems to think it doesn't.. It's just really annoying!
3) Anyone know how I can use Subversion SVN source control in combination with VS .NET 2005 to have source control for this website?
Thanks in advance guys!
r -€
|
|
|
|
|
Hi,
I'm new to running different browsers. I have read how to determine which browser you are running but what I'm experiencing is the screens (Web Pages) looks beautiful using IE and .NET, however when I try to display the screens with FireFox they become a scrambled mess. Is there something different that I need to be doing or an article that someone can post here that I can reference.
In particular the push buttons are in a different spot, one push button is completely missing I suppose it might be behind another button, the rasied panels are gone, and my side bar is discombobulated.
Thank you,
Glenn
-- modified at 21:50 Monday 5th December, 2005
|
|
|
|
|
When a page looks different in IE and Fx it's almost always Fx that renders it correctly.
What doctype do you use?
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I'm using doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
This is what is set by MS-Visual Studio. From what I have been reading today Firefox is more to the standard. It's weird that it looks perfect in Visual Studio and IE, but not Firefox. I'm not sure how to adjust or fix it.
Glenn
|
|
|
|
|
Try a more recent standard. Even HTML 4.01 should be a noticeable improvement.
W3C: Recommended DTDs[^]
---
b { font-weight: normal; }
|
|
|
|
|
Hi ,
I am developing a JSP tag library to render a HTML table. But I am not able to find a proper solution to have scroll bars in table.
I have checked the out following solution:
http://www.imaputz.com/cssStuff/bigFourVersion.html[^]
But problem here is:
-I need to use different CSS for each browser
- When I resize the page it doesn't look..table header stays at particular place.
However I could fix the header in IE with a promising level but the same doesn't work in Firefox.
Another appraoch I tried is splitting the table in three seperate tables , one for header, one for body and one for footer, but there again alignment issues are there.
If anybody has worked on this please share your views.
TIA,
Sachin
|
|
|
|
|
Hello Dears
I need help for copying file from client to server using FSO for my ASP Application.
N.Rajakumar B.E.,
Application Developer,
|
|
|
|
|
If the client computer is in the same local network as the server, and if you place the file in a folder that is shared so that the server has access to it, you can copy a file to the server using FSO. Otherwise not.
---
b { font-weight: normal; }
|
|
|
|
|
I want to print a file flying on the server by the network printer.
PrintingPermissionLevel ppl = new PrintingPermissionLevel();<br />
PrintingPermission pp = new PrintingPermission(ppl);<br />
pp.Level = System.Drawing.Printing.PrintingPermissionLevel.AllPrinting;<br />
<br />
PrintDocument pd = new PrintDocument();<br />
pd.PrinterSettings.PrinterName = @"\\server1\\EPSON Stylus C41 Series"; <br />
pd.PrintPage +=new PrintPageEventHandler(pd_PrintPage);<br />
pd.Print();
But i got the error like this: tried to access "EPSON Stylus C41 Series" is invalid setting.
So how can i fix it ?
|
|
|
|
|
I have a web page with a asp:checklistbox object. I have buttons to "check all" checkboxes; however, to avoid the roundtrip back to the server, I was wondering if I could use jscript to set the checkboxes in the client.
The problem I have is how do I access all of the checkboxes that get automatically generated by the checklistbox?
If I can access all the checklistboxes of the form then I could set their value to checked.
|
|
|
|
|
I can't remember exactly how I did this, but I can tell you the steps to discover it.
* Look at the output of the webpage - That is, look at source that you get in the browser.
* Examine the IDs of the checkboxes in the list and see how they compare to the name you gave the asp:checklistbox (IIRC they will have something appended to the name, and perhaps something prefixed if it is contained in another control)
* Write some javascript to use the pattern you have discovered.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
Colin,
Thanks for your input. You guided me into the right direction. Following is the solution in case anyone needs it as well:
<br />
<script language=vbscript><br />
option explicit<br />
<!---------------- check/clear text boxes -------------><br />
dim currChkboxName<br />
dim currCheckValue<br />
sub UpdateCheckboxes(chkboxName, checkValue)<br />
currChkboxName = chkboxName<br />
currCheckValue = checkValue<br />
dim i<br />
for i = 0 to Form1.children.length-1<br />
UpdateChildCheckboxes Form1.children(i)<br />
next<br />
end sub<br />
sub UpdateChildCheckboxes(obj)<br />
dim i <br />
if not obj is nothing then<br />
if obj.id <> "" then<br />
if InStr(1, obj.id, currChkboxName) > 0 then<br />
obj.checked = currCheckValue<br />
end if<br />
end if<br />
for i = 0 to obj.children.length<br />
UpdateChildCheckboxes obj.children(i)<br />
next<br />
end if<br />
end sub<br />
</script><br />
Then declare the buttons as follows:
<br />
<input id="btnClearTestConditions" type=button value="Clear All" onClick="UpdateCheckboxes 'cklTestConditions_', false" /><br />
<input id="btnCheckAllTestConditions" type=button value="Check All" onClick="UpdateCheckboxes 'cklTestConditions_', true" ><br />
|
|
|
|
|
Hi all,
Hope someone out there can help me with this one
I have multiple web sites which i want to place ads on... I want to hold the ads on a single database which all sites can access.
So I created the database and a banner.asp page which displays a random ad, works perfectly!
I then attempted, from another web site, to call the banner.asp with the #include virtual.... there was the problem.... I found you can only #include within the same web site.
Does anyone know how I could get around this issue... as I do not want to have a database on each website. Just the ability to 'call' an ad from a central database on another web site.
All advice is welcomed...
Thanks in advance,
Jason
|
|
|
|
|
You could use an IFRAME
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
HRESULT createElement(BSTR eTag, IHTMLElement **newElem);
Is it possible to use any tag name for eTag (for example numbers, 1, 2, 3...) to create element?
|
|
|
|
|
Can be IE put in design mode by using: HRESULT IHTMLDocument2::put_designMode(BSTR v);
Thank you.
|
|
|
|
|
Hi there, having trouble with a menu in dhtml.
basically the javasript function is simple it displays the menu or closes it depending on mouseover or mouseout. the only thing is that the menu closes before you can get a chance to make a selection from the menu items. (ie its closing the menu when the mouse moves of the top line of the menu.. as opposed to the whole of the menu) any help gratefully received!
|
|
|
|
|
hi,
How to capture events in the javascript file that are fired from a dll?
Event source – A dll created as an ATL control object
Event Handler - javascript file.
Instance of object is created in the javascript file using ActiveXObject(ComponentName.ClassName).Through this instance I can access methods written in the dll.
Using Object Tag in HTML file works fine. But don't know how to handle events in the Javascript file.
Pls send in your comments.
Thnx,
Bobina
|
|
|
|
|
i am planing to make parser for html...so did anyone have the grammar for html or context free grammar?
|
|
|
|
|
Then, you want to study the DTD for HTML at HTML 4 Document Type Defintion which contains the DTD for HTML 4.01. This provifes a context-free grammar definition in terms of the structure of HTML 4.01 and should suit your needs quite well since most of it is in Backus-Naur form.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hi,
How to get text from html page in IE, modify it and put back in IE?
I need it to translate page.
Thank you.
|
|
|
|
|
Is there a way to force the position of a <table> to the bottom of the page (i.e. to hold the contents of the page footer)? Thanks,
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Figured it out:
<table style="position:absolute; left:0px; bottom:0px;">
<tr>
<td>
Some text
</td>
</tr>
</table> /ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|