|
I want to call this function means this function should work only when the person presses ok on our confirm alert and if he presses cancel then this function should not work. also i dont want to call this ajax function on body unload, its causing problem. it should be called only if the person presses ok.
|
|
|
|
|
Your question is not clear. I am assuming, you have a JS method named confirmExit and you need to call depending upon the value user presses on a confirm box. Right?
You could do something like,
if(confirm("Your message"))
confirmExit(); I'd suggest to read this[^] before you post questions.
|
|
|
|
|
confirm button return true/false based on the ok or cancel.you must check what is returned accordingly you can perform the action as you want
Cheers!!
Brij
|
|
|
|
|
I have provided a option in my project. When a user attempts to close the application with out logging out, we used to prompt for a alert too log out. The below said Javascript works well for this.
|
|
|
|
|
Hello everyone,
Any idea about how to get the content-type for a video file? I am writing an ASP.Net application which writes video binary content (hold in byte[], i.e. I cached the content into memory) back to browser client to invoke related media player, and needs to fill-in the content-type field of response header.
thanks in advance,
George
|
|
|
|
|
The best way to tell the content type is through the file extension. Otherwise, you need to learn enough about different file formats to examine the bytes and try to work out what they are
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Cool, Christian!
If I could get the extension name for the video file, how could I know which value should I input to Content-Type response header?
regards,
George
|
|
|
|
|
Hi,
Which Control you are use in codeproject FAQ. Please replay.
Thankyou.
|
|
|
|
|
Which control are you talking about ? FAQ has a simple link with a page .
|
|
|
|
|
You seem to be very confused. CP is not a site run by a group of people who are all paid to do Indian programmers jobs for them. Rather, it's a group of people from around the world, all trying to help each other. So, almost no-one who will read this will have ever seen the CP source code.
Also, as someone said, read the guide on how to ask lucid questions. And don't double post, even if it's to add a bunch of gibberish, edit your post if you want to add something.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear All,
I have to develop an application.
What I want to accomplish is:
If some client access my website or say webpage, my webpage must search clients PC using his/her permission if a software installed on it or not.
If not installed, the webpage will download the software from website and webpage must run that executable file.
We will require clients permission for accessing clients PC for checking software installed or not or for downloading.
When client give us permission to read and write on its HARD DISK, we have to read write his/her Hard disk silently.
I don't want Save As dialog box while downloading files.
Web page have to download software in predefined directory.
It looks like a virus thing, but I want it.
If you have any alternative ways you can tell me about that ways.
Hope you will help me.
Ashish Nijai,
Software Engineer.
|
|
|
|
|
It seems like you have no idea at all how web development works. You can't do this with ASP.NET. You can get close with a java or activeX component embedded in your page, but not with html and javascript, which is all ASP.NET generates.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you for your reply.
I knew web pages have restrictions.
They cant access users HDD.
I want to know that is it possible to use dot net web controls rather than Java Applets and ActiveX components?
I want to do it in pure C#.
Do you have any idea how to accomplish it?
Ashish Nijai,
Software Engineer.
|
|
|
|
|
Ashish Nijai wrote: I want to know that is it possible to use dot net web controls rather than Java Applets and ActiveX components?
No. It is not possible.
|
|
|
|
|
You can use applet
Cheers!!
Brij
|
|
|
|
|
Ashish Nijai wrote: I knew web pages have restrictions.
They cant access users HDD.
and yet...
Ashish Nijai wrote: I want to know that is it possible to use dot net web controls rather than Java Applets and ActiveX components?
Of course not. See above. You said it yourself.
Ashish Nijai wrote: I want to do it in pure C#.
That is doable. If you use C# to write an ActiveX control and require your users to download the control AND the .NET framework. Obviously, they will need to download .NET if you want to run C# on the client.
You knew that, right ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Dear Chris,
I have made one ActiveX control in C#.
If i am testing it on my pc as <page>.html file it runs successfully.
But if i want to host the page on IIS with DLL file of ActiveX
It cant run.The HTML file and DLL are in same folder.
What is be the problem?
Ashish Nijai,
Software Engineer.
|
|
|
|
|
I have an accordian control implemented in a div in my page. Is there any javascript that will allow my div to expand the dimensions according to the dimensions of the accordian control?(The accordian control is an Ajax Control Toolkit Control). practically i wan t a javascript that changes the div dynamically according to its content please. Thanks for your time
Regards
jonhbt
|
|
|
|
|
Hi guys how to implement file upload control in datagrid/grid template column,
I tried various types but i didnt get solution plz guide me
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
There's only one way to create a file upload control. If you're creating them dynamically, I believe you can examine the post data to find them.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
FileUpload control can be implemented in template column like other controls. When page posts, you need to iterate grid rows and use FindControl to find the upload control.
|
|
|
|
|
By using login control i can get this error
"it is an error to use a section registered as allowdefinition='MachineToApplication' beyond application level.This error can be caused by a virtual directory not being configured as an application in IIS"
self confidence+hard work=SUCCESS
|
|
|
|
|
It means what it says. You have an app.config below the app level with that tag in it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi
i displayed few records say 120 in Gridview
i can print all the records present in the gridview
but the rewuirement is
to print the selected or a range of records present in gridview
example:
i have total records 120
now from record number 20 to 30 only i need printout
is it possible
thanks in advance
vijay kumar D
|
|
|
|
|
You can't control the printer. Why is it that I have to explain this basic fact of web development, daily ? Your only option is to pop up a window that shows only the range you want to print, and then print that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|