|
Hi All,
I need yearwise scroll in asp.net calender control so I took 2 linkbutton << (for prev year) and >> (for next year). On click event of << I wrote code:
calDate.SelectedDate = calDate.SelectedDate.AddYears(-1)
calDate.VisibleDate = calDate.SelectedDate
but its gives error
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
The added or subtracted value results in an un-representable DateTime.
Parameter name: months
For >> I wrote this code:
calDate.SelectedDate = calDate.SelectedDate.AddYears(1)
calDate.VisibleDate = calDate.SelectedDate
But here also its not showing next year properly....
the same code work in ASP.NET 1.1(C#) but its not working in ASP.NET 2.0(VB)
please help me.Its very urgent.
Thanks in advance..
|
|
|
|
|
We have ASP.NET2.0 application which is having different report similar to excel format which we create at runtime through JavaScript based on certain user selected criteria by creating a XML Document from values received from server and then assigning the XML document to Div control as innerHTML (This HTML table contains around 24,000 thousand HTML input boxes).
It took around 10-12 sec to render the HTML table to UI and sometimes it even table not get painted on screen but it comes up when user press minimize and maximize button, please suggest us some better ways of rendering the HTML table, attributes need to be used in HTML table to render it fast.
Anil Modest
Lead Engineer
HCL technologies, Noida
Anil Modest
Lead Engineer
HCL technologies, Noida
|
|
|
|
|
I have a div control on my web page which to which i assign a XML document which contains a HTML table as innerHTML, but sometimes table will not get painted on web page.
Although the same get painted when i click on minimize and maximize button, given below is the piece of javascript code i am using for the same
var divFullReport = GetElement("div_FullReport");
divFullReport.innerHTML = '';
divFullReport.innerHTML = xmlFinalStructure.xml;
This client side javascript code get executed when user press client side button on web page.
Anil Modest
Lead Engineer
HCL technologies, Noida
Anil Modest
Lead Engineer
HCL technologies, Noida
|
|
|
|
|
Greetings,
My name is Yasser and I'm developing web site using ASP .NET 2.0, my wb site hosted on Windows Server 2003 / IIS 6 machine...
I'm using redirector in order to make my urls more friendly so if my client writing the following url:
http://www.mysite.com/example
it will redirected to http://www.mysite.com/somepage.aspx?par=p1 ... this techique is working fine so far till i got a problem when i need my friendly url looks like this http://www.mysite.com/someemail@domain.com i want to redirected to another page and take the email as a parameter to the actual page like this: http://www.mysite.com/otherpage.aspx?email=someemail@domain.com ... when i write the rewrite rule for the redirector for that case it never works and have 404 error - page cannot be found ... I guess the IIS server consider the someemal@domain.com resource file on the server with extension .com and of course it doesn't exist so he response with the 404 error ...
and this problem is killing me and i cant reach any work around
is there a possible way to solve this and make IIS server redirect the mentioned url...
sorry for my bad English ... it's not my mother tong
Thanks in advance
Best Regards,
Yasser
Yasser Salama(MCP)
|
|
|
|
|
Hi,
I have created a SOAP web service in .NET. I have a client application which consumes some methods - it essentially passes a username and password to the web service and gets back a 'signature' (for what is not important), once the username and password is correct.
Obviously, this web service is exposed to the world - and could be a target for malicious users, etc. Is there any way in .NET to say "Only allow this application to use this web service"?
I cannot limit the IP range, as the client app should be usable from anywhere. I'm sure this is a common problem, but have found no concrete help.
Thanks,
Cormac
|
|
|
|
|
|
|
Have any questions about PHP they would like answered? Not the "What is wrong with my code" type questions, purely questions to help you understand the language a bit better.
Brad
Australian
- Christian Graus on "Best books for VBscript"
A big thick one, so you can whack yourself on the head with it.
|
|
|
|
|
Yes..
Is PHP Considered compiled or interpreted language?
As far as I know, PHP code is fully compiled then executed, not run line by line. However, not sure about this fact.
Any ideas?
|
|
|
|
|
That is correct. The PHP compiler turns the PHP script into "opcode" which is then executed by the main engine and..... Line by line compilation is achievable in PHP by using nothing but "eval()"'s but that would just be stupid.
Brad
Australian
- Me on "Public interest"
If you actually read this let me know.
|
|
|
|
|
And Zend Optimizer enhances it.
|
|
|
|
|
Do you have enough experience/knowledge of CakePHP and CodeIgniter to make an objective comparison of the two?
And obviously if so could you give a brief explanation.
|
|
|
|
|
Unfortunately I have not personally used the frameworks so I could not give you solid advice, but CakePHP is supposedly excellent.
Brad
Australian
- Me on "Public interest"
If you actually read this let me know.
|
|
|
|
|
Hi All,
I am building a desktop application in VB.NEt which consumes web-service.
I am using proxy classes of the provided WSDl files.
I am calling web-service asynchronously.
The signature of the web-call is as follows
Public Function BeginRequest(ByVal Request1 As Request, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
Public Sub EndRequest(ByVal asyncResult As System.IAsyncResult)
The generator of web-service are saying if we receive web-server's OK responce the call is successful.
But how to check the web server's OK responce?
Could anyone help me out?
Every thing will come to you if you have faith.
|
|
|
|
|
|
But I am not using this in ASP.NET page like aspx etc. I am calling web service using proxy class, build from WSDl file.
I do not which object or property to be used for getting HTTP header details.
As far as I know there is no such property/object avaialble in the proxy class.
Every thing will come to you if you have faith.
|
|
|
|
|
Hi!
I have to architect per my boss decree a webapp running ASP.NET 2.0 with an SQL Server 2005 Standard database. That's fun so far. The purpose of the webapp is to let customers order online print. I work for a printing company. It's a print on demand thing. Nice app so far, I thought.
More to the point, the customers must be able to see a preflight PDF of his template before ordering. I thought no problem, I'll use iTextSharp to create the PDF.
Then, the boss continued. The customer must also be able to upload an excel file to create a variable data based template, like, the business cards for everybody in the company for example. I thought, sure, iTextSharp once again with a looper...
And then he gave me and my smug look the real kicker. The customer also needs to be able to *draw* or *sketch* a new template, using lines, curves, rectangles, ellipses, text, images. And in layers too. With transparency of course, and in a web front end!
Now, the kicker actually *is* kicking the crap out of me here
How do get to write something like that, something in essence that closely matches what Cumulate Draw does?
I need insights since I'll have to write it from scratch. What base librairies, or technologies would you recommend for something like that?
Thank you!!!
Antoine Dubuc
Transcontinental Direct Montreal
|
|
|
|
|
Check out CanvasPaint[^]. This is pretty much not gonna work on IE (although you could try hacking together an IE solution using ExCanvas[^]).
If your needs are fairly simple, you might be able to use something like Rama's AJAX Scribble[^] technique...
Otherwise, there's always Flash[^]...
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
|
gubba wrote: I am developing a project for an online exam where i want to disable the test takers from going back to the previous page.
There are ways... but they're not guaranteed. Realistically speaking, it's up to the browser whether you can ever go "back". You can use redirect tricks or JS to encourage a browser to ditch its history... but if this is actually important then you'd better do it server-side: keep track of which pages they've completed, and ignore (silently (or noisily if you prefer)) any attempt to re-submit that section of the test.
Now, I'm assuming that you really only care about preventing users from going back to change their answers - if you'd rather they not even be able to view their previous questions/answers, then you should be able to use cache control hints to encourage the browser to discard previous pages - when completed sections are requested, just redirect to the first incomplete section (or, a screaming red "cheater" page, whichever). Of course, there's no guarantee that browsers will respect this, but then, there's nothing preventing users from copying or printing previous pages either...
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
|
hello while I was searching on code project I found ur good question, i need the solution cause it is good to put it on all of ur done websites,
may u please send me the solution that u got in more details cause i didnt undrstand the solution
Thanks alot
Hamody
|
|
|
|
|
|
hi, morning,
i made a small website with 2 web forms, i put the script code u sent me on the top of the web form 1 but it disabled the back to the whole of the web site, i want it to disable the back on specific web form, so how it will be???
Thanks alot
Hamody
|
|
|
|
|