|
lrsalunkhe wrote: How I sent e.g PrintScrin created in powerpoint to U ? For Your UnderStanding
No you don't need to sent the screen shot of your aspx page. Just tell what is your problem?
I don't think anyone will take a look at the page but yeah if you still want to show us the error screen use this[^] site.
If you fail to plan, you plan to fail!
Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya
|
|
|
|
|
hello,
I want to restrict user to access my site if his Caps Lock Key is Off, so i need to check caps lock status whether he presses a-z,A-Z,or 0-9 keys in asp.net code.
i have tried following code which is working on Local but not on Server
if (Console.CapsLock)
{
lbl.Text="Caps is on";
}
thanks
|
|
|
|
|
It is clearly understood that you have no idea about web applications. ASP.NET can't check the keyboard's caps lock status. If you have a text box, hook a JS OnKeyPress event and check the ASCII values of the key pressed. This will give you the typed letters case. But still you will not get the caps lock status.
This should be the best question posted in ASP.NET forums this week.
Best wishes,
Navaneeth
|
|
|
|
|
so this means we can get caps status only if v r using letters(a-z) not digits(0-9) or we are using windows application.
thanks for ur reply
|
|
|
|
|
I reiterate. You CANT get the caps lock status in web application.
11Developer wrote: so this means we can get caps status only if v r using letters(a-z) not digits(0-9)
Numbers don't have a case so that question is irrelevant. You can get the case of a-z of course. As I said, get the ASCII code and compare. Why you need to get the caps lock status? If you can tell us what are you trying to solve, there should be a better solution.
Best wishes,
Navaneeth
|
|
|
|
|
i want that user can't logged in if his caps lock is not ON, this is a security feature which is not known to anonymous users and for logging in he has to enter numbers not letters.So hw to validate dis sceneraio????
|
|
|
|
|
Write a windows app. Or you may be able to do it with a Silverlight web app. Also, clean out your ears, you've been answered. Finally, when you're talking to a client, have some idea about the technology first, instead of assuming that we'll do your work for you. Nodding the whole time is not productive, you end up promising things that are not possible.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Who cares about the user having the caps lock on or off
If you want it secure, make sure the users have a very strong password and also make it case sensitive
There are meny thing that you can do server side to make an app secure, but as everyone here ahs told you, it is not possible to check the caps lock status fromm the server side
The only option is as someone else already told you, use javascript and as soon as the users types something do the check with javascript
Alexei Rodriguez
|
|
|
|
|
Judging by your communications with Navaneeth, there are some serious gaps in your knowledge.
When he says "ASP.NET cannot get the caps lock status" what he means is:
It is physically impossible for an ASP.NET application to find out the caps lock status on a user machine.
Why? Because when you execute an ASP.NET application, the code you write is executed on the SERVER not the CLIENT. The Client machine is the one with the user, and the keyboard. So the Server cannot know what the User keyboard is doing.
It is similar to this: If you call me on the phone, can you smell my coffee? You are the Server, I am the Client. Can you even tell if I have a cup of coffee?
You cannot implement your "security" feature. And even if you could, just how "secure" do you really think it is? Go, google ASP.NET Membership Class, and think again.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Thanks for the reply... but i have to search for it as it is my duty to obey my uneducated seniors.....
|
|
|
|
|
Then educate them!
A stupid idea does not become a good idea just because a manager proposed it, no matter how much they think it should.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
11Developer wrote: . but i have to search for it as it is my duty to obey my uneducated seniors.....
ROTFL - you plainly started as uneducated as they are. If you're the programmer, it's your JOB to tell them when something is not possible. If you were to learn about ASP.NET before you started in this job, you could have done that in the first instance, instead of after the fact.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear All,
I have Designed reports in my ASP.NET App.
When I run these reports from the development, from VS 2008, The page size is OK. And Export works fine.
But when I run From IIS, The reports shows perfectly, but the page size comes too large so it cant be exported or printed.
How to Solve this.
Thanks in Advance.
|
|
|
|
|
Hi All,
I am facing one problem,tht is I upload an excel file with 65,000 of rows.So the task is tht First I hav to insert these rows into my DB is it ok I had done it and the whole execution done within 10 secs.
Second task is tht,I hav to post tht data into a another site through HTTP POST method tht is ok for me ,But the main problem is tht, I hav to post only the 500 number of rows into a single execution.So the sceniro is tht 65000/500 the total number of execution.
So i want to run tht execution fastly,Coz if I run traditionl method then my posting page has expird or connection forcily closed.
So is it possible I have to save that file into a particular laocation and when tht file will be posting into lacation then an automtic service run at background and tht will done all work.I am not talking about the windows scheduling.It is might be a windows service but I want to initate when my file will be save on a particular laocation.
If anybody can help me for the same then please help me.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Your best bet IMO is to have a webservice at the other end and to do multiple calls that send the data a bit at a time. A windows service could handle this on the server and the ASP.NET page could simply tell it to start work, then return a page to the client.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Crisitan,
Thanks for ur help.Can u discribe it more.And how can I initate a windows service through asp.net page.Please tell me or if any link for tht particular tutorial then give me.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Well, I am assuming you have control over the whole process. I'm not sure exactly how an ASP.NET process would kick off a service, I've done it, but it was a long time ago. The core thing is, do you have control over the end that is recieving the Excel data, to replace your HTTP Post code with a web service ? If not, a windows service could still do the post without holding up a web page lifecycle, but you wouldn't be able to fully take my advice in that case.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Crisitan My sceniro is this suppose
i hav 65,000 number of rows.Now I uplaod the file and click the send button.then I create the insert command for tht to DB.Now I hav a web service instance which is get the data from DB and post it a another site page by the size of 500 number of rows.So my web service work on tht and it will a slow proceess to sent the data meanwile my web page expird after 20,000 number of rows post on the another server.coz it has several simeltenous task to work e.g. inventory management,retrun response to insert the data.
so i want to do only data insertion into my web page after that a background process will be done it.if i create windows scervice for tht then the schedule will be run after a schedule time.But I want to run it at the time of posting the data.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Your design is confusing. Here is my suggestion though.
Don't call web service from your ASP.NET application as it is taking long time. Delegate this task to the background service. You may need to create a database table in which all the records that has to be processed should reside. Your ASP.NET application has to insert rows into this table and background service should poll this table regularly. Get the data from this table and call required webservice.
Best wishes,
Navaneeth
|
|
|
|
|
Boss How do I call the service through windows service.If yes the it has some time of interval to run for.But i want run it to current task.if i set the interval at least then procees execution time will be more then the time callback time.if I set it 5 to 10 minutes of timer then user is not ready to accept to much time to show the response.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Windows services are expected to run all the time. So there won't be any scheduling. You run each web service call on a separate thread and keep the other thread polling the table. So you don't find any delays in the processing.
Best wishes,
Navaneeth
|
|
|
|
|
I want to know do you have control over other database, I mean lets assume that DB1 is where you are uploading excel data, and post the these details to DB2. So if you have access to that DB then I would suggest right CLR enabled SP which will run at MS SQL server level rather calling it via web application which is very very slow. So to improve the performance you can divide the task and process it in separate places.
Let me know if you need any further details on the above design.
|
|
|
|
|
hi
i am developing a webapplication which is local to my system
when im running the application it is showing that it is executing from
http://localhost:1234/webapplication1
where as my webapplication is in drive D
i know that when a page is requested for first time
the asp.net engine compiles it and converts it to a dll
and for next request the same dll is used
i didnt added the bin folder to my webapplication
now what is the problem is
i changed the code and when i run the application it is showing the old result.
can any give the path for deleting the dll
i m using asp.net 2.0, where i could not find Inetpub/wwwroot
to solve this i uninstalled the .net and reinstalled it but even it is not solved.
|
|
|
|
|
vijaylumar wrote: to solve this i uninstalled the .net and reinstalled it
You have problems in understanding how a file-system website works. Visual Studio 2005 onwards, an inbuilt ASP.NET development server is supplied and used when you create a file system website. If you change the code and do a refresh, you should see the latest updates. In worst case, you may need to stop the ASP.NET development server and start it again. You never need to reinstall .NET framework.
Give us more information about what steps can reproduce your problem so that some one can come up with a solution.
vijaylumar wrote: i m using asp.net 2.0, where i could not find Inetpub/wwwroot
So don't you have IIS installed?
Best wishes,
Navaneeth
|
|
|
|
|
hi
thanks for your reply
where could i find ASP.NET Development Server
|
|
|
|