|
Hmm, I'm not a true VBer , but you might think of hidding the interface's methods in the implementation class with the low access level like private or protected :
Public Interface IInterfaceA
Sub MethodA()
Sub MethodB()
End Interface
Public Class X
Implements IInterfaceA
Private Sub MethodA() Implements IInterfaceA.MethodA
End Sub
Protected Sub MethodB() Implements IInterfaceA.MethodB
End Sub
Public Sub MethodC()
End Sub
Public Sub MethodD()
End Sub
End Class Btw, for this kind of question, you might want to ask in the VB.NET forum.
|
|
|
|
|
|
Hi All,
I am developing an application in which I want to get the Cursor position (current x and y positions) in text mode. Using e.X and e.Y in mousemove event I am getting the x,y coordiantes. But how will I get that in text mode.
Regards,
Uma
|
|
|
|
|
What do you mean by text mode?
|
|
|
|
|
I mean I want to find the row and column position at the cursor location. I have a richtextbox. In this control I want to find out the cursor position as I type the text.
|
|
|
|
|
Not really my strong point here, but if you know the number of columns in the textbox and you can get the length of the text, I think you could work out the cursor position from that...
|
|
|
|
|
i have a bug and i dont know where it is... it is like i click on the button den the javascript is not responding to the button... And i am not sure is my code working a not... all i want to do is to count the different between 2 time; like end time is 03:00 start time is 02:00 so the different is 1hr... And thats what i wanna achieve... so can any kind souls help me debug pls...
var aryTimeAs = new Array();
var aryTimeAE = new Array();
var strTimeAS = new String("");
var strTimeAE = new String("");
var intASHours = new Number(0);
var intASMinutes = new Number(0);
var intASSeconds = new Number(0);
var intAEHours = new Number(0);
var intAEMinutes = new Number(0);
var intAESeconds = new Number(0);
var i = new Number(0);
var dtmAE;
var dtmAS;
var intNumOfSeconds = new Number(0);
var intNumberOfHours = new Number(0);
var intSeconds = new Number(0);
strTimeAS = ChangeManagement.txtActStartTime.value;
strTimeAE = ChangeManagement.txtActEndTime.value;
aryTimeAS = strTimeAS.split(":");
aryTimeAE = strTimeAE.split(":");
intASHours = aryTimeAS[0];
intASHours = aryTimeAS[1];
intAEHours = aryTimeAE[0];
intAEHours = aryTimeAE[1];
dtmAS = new Date();
dtmAS.setHours(intASHours);
dtmAS.setMinutes(intASMinutes);
dtmAS.setSeconds(intASSeconds);
dtmAE = new Date();
dtmAE.setHours(intAEHours);
dtmAE.setMinutes(intAEMinutes);
dtmAE.setSeconds(intAESeconds);
intNumSeconds = dtmAE.getTime() - dtmAS.getTime();
intSeconds = 60 * 60 * 1000;
i=Math.floor((intNumSeconds / intSeconds)*100);
intNumOfHours = i/100;
windows.alert(intNumOfHours);
ChangeManagement.txtActHr.value = intNumOfHours;
windows.event.returnValue = false;
Thanks for helping and viewing
i@@
|
|
|
|
|
Have you enabled Javascript error messages in the browser?
i@@ wrote: var aryTimeAs = new Array();
Typo. Change aryTimeAs to aryTimeAS.
intASHours = aryTimeAS[0];
intASHours = aryTimeAS[1];
Here you put the first value in the variable, then replaces it with the second value, making the first line useless. Also, the value you put in the variable is a string, not a number.
intAEHours = aryTimeAE[0];
intAEHours = aryTimeAE[1];
Same.
dtmAE = new Date();
dtmAE.setHours(intAEHours);
dtmAE.setMinutes(intAEMinutes);
dtmAE.setSeconds(intAESeconds);
You are not setting the date of the date object, so the current date is used. In the unlikely event that the date objects were created on each sides of midnight, you would get an additional 24 hours. Very nasty bug, as the error is nearly impossible to recreate.
windows.alert(intNumOfHours);
Typo. Change windows to window.
windows.event.returnValue = false;
Typo. Change windows to window.
---
b { font-weight: normal; }
|
|
|
|
|
var aryTimeAS = new Array();
var aryTimeAE = new Array();
var strTimeAS = new String("");
var strTimeAE = new String("");
var intASHours = new Number(0);
var intASMinutes = new Number(0);
var intAEHours = new Number(0);
var intAEMinutes = new Number(0);
var i = new Number(0);
var dtmAE;
var dtmAS;
var intNumOfSeconds = new Number(0);
var intNumberOfHours = new Number(0);
var intSeconds = new Number(0);
strTimeAS = ChangeManagement.txtActStartTime.value;
strTimeAE = ChangeManagement.txtActEndTime.value;
aryTimeAS = strTimeAS.split(":");
aryTimeAE = strTimeAE.split(":");
intASHours = aryTimeAS[0];
intASMinutes = aryTimeAS[1];
intAEHours = aryTimeAE[0];
intAEMinutes = aryTimeAE[1];
dtmAS = new Date();
dtmAS.setHours(intASHours);
dtmAS.setMinutes(intASMinutes);
dtmAE = new Date();
dtmAE.setHours(intAEHours);
dtmAE.setMinutes(intAEMinutes);
intNumSeconds = dtmAE.getTime() - dtmAS.getTime();
intSeconds = 60 * 60 * 1000;
i=Math.floor((intNumSeconds / intSeconds)*100);
intNumOfHours = i/100;
window.alert(intNumOfHours);
ChangeManagement.txtActHr.value = intNumOfHours;
window.event.returnValue = false;
dude i have recoded but it still wont works... do u have any other way of achieving the same thing... thanks for your time...
i@@
|
|
|
|
|
Repeating myself:
Have you enabled Javascript error messages in the browser?
---
b { font-weight: normal; }
|
|
|
|
|
I am using ASP.Net(VB).I want to display small images in datagrid along with button in same grid column and i want to inlarge the image on click of the button.
so pls help me and give code if it is possible.
|
|
|
|
|
hw can i post my asp website onto the net... i diuj have any idea
i@@
|
|
|
|
|
You may need to look for a hosting service provider.
|
|
|
|
|
Can I upload n download files into database using asp?
can anyone post the smaple code here...
thanks alot...
i@@
|
|
|
|
|
|
I'm using a master page on my asp.net site. Being that i'm using master pages and my content page part is only inside the body tag I can only put custom content inside each page's body.
However, to use google maps I have to edit the body tag by adding an attribute on-load="load()" . I only want it on one page, otherwise i'd just hard code that on the masterpage.
How can I, on one content page, add an attribute to the body tag?
/\ |_ E X E GG
-- modified at 22:19 Wednesday 28th June, 2006
|
|
|
|
|
If you're not worried about compliance issues, then just add a new tag inside the content area of the page you want to use Google Maps. Otherwise, I'm not sure if it's possible without adding it to the tag of the MasterPage.
|
|
|
|
|
Thanks it works. good hack!
/\ |_ E X E GG
|
|
|
|
|
No problem
Just keep in mind this will keep your page from meeting compliance standards, if you're worried it.
|
|
|
|
|
Alex,
Another option is that you can mark the body element in the Master with runat="server" and provide it with an id value. You may then define a public property to expose the body element so that the content page can access the body . You can also try to get reference to the body element from the content page with the FindControl method.
|
|
|
|
|
Hello all,
I'm in the middle of setting up a windows 2003 server for asp.net (with vb.net 2003) remote development/deployment.
The problem is that as soon as I install service pack 1 on windows 2003 I can no longer remotely develop asp.net apps with vs.net 2003. I have set-up servers with all the patches except service pack 1 and they work fine but as soon as I install service pack 1 it breaks the remote development of asp.net.
The error I get is that vs.net is "unable to add" files such as the project file (.vbproj) to the remote project.
I have made a screenshot of this error , it is at
http://www.matcmp.ncc.edu/error-after-sp1.jpg
I'm trying to upload via frontpage extensions.
I have double checked the IIS settings and front page extensions are enabled and so is asp and asp.net.
I have also tried installing all the other updates after sp1 and running security config. wizard and making sure all the ports and iis extensions are enabled but still same error. I have also tried turning off firewall.
Some files do get uploaded and a subdirectory does get created on the server but the error occurs and can't develop after that.
I know that one recommended way is to develop on local instance of IIS and then upload the project but this won't work in my case because this server is for a college class and students have to be able to work from home.
Thanks in advance for any help.
-Steve
|
|
|
|
|
Hmm. I just learned something interesting today. Apparently you can put custom headers into emails sent through .NET code from the link below.
http://www.systemnetmail.com/faq/3.3.4.aspx
Now, the next question is: Could you do the following:
1) Take one of the prebuilt forum systems and have it send out emails with a special header in them when someone posts to a message board
2) The user responds via email.
3) An application retrieves the response and automagically turns it into a forum post.
Basically, I was thinking sort of along the lines of Yahoo! groups. I may need to do this in a few months, so I thought I'd go ahead and ask.
|
|
|
|
|
http://www.codeproject.com/script/comments/forums.asp?forumid=12076&fr=151&select=1553164&msg=1553164
How to highlight today's date row in datagrid when page loaded?
I am really stuck in this issue.
Thanks,
NIKI
|
|
|
|
|
Done.
---
b { font-weight: normal; }
|
|
|
|
|
HI Niki,
what I wrote in the last thread was to change backcolor of one row only.
I got a new and easy Idea.
DO one thing, on the page load event, get the max date from the database, then in ItemDataBound compare that date with all the rows, which ever matches, change the backcolor of that row.
I think this is really easy
Thanks
Sushant Duggal.
Sushant Duggal.
|
|
|
|