|
Hi Prakash,
Just try this code. This would help you....
function CheckAllCheckBox(grid)
{
var oItem = grid.children;
var theBox=oItem.item(0)
var chk;
chk=true;
elm=theBox.form.elements;
for(i=0;i<elm.length;i++)
if(elm[i].type=="checkbox" && elm[i].id!=theBox.id )
{
if(elm[i].checked!=true)
chk=false;
}
if (chk==false)
{
alert("Please Select atleast One CheckBox")
return false;
}
}
I had used this code long time back.
Be an Eagle, Sky is Yours.
|
|
|
|
|
Hi all,
I have a web application developed using .net 2005.I have used Ajax control toolkit 1.0 along with this.It was working perfectly.When i tried to run the project somedays after ,Ajax control tool kit is not working .What will be the reason.?
These are the errors im getting
1.Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
2.Unknown server tag 'ajaxToolkit:ToolkitScriptManager'.
Help me to solve this problem..
Thanks in advance for any help.
|
|
|
|
|
|
how to use _doPostBack in javascript to refresh a parent page.
i am writing window.opener.__doPostBack('pagename',''); it does not work
|
|
|
|
|
This might help
window.opener.document.forms[0].submit();
|
|
|
|
|
hi guys.
i am currently working on the site that supports 4 languages. idea was to create the cookie that contains language value. on the basis of the cookie, server side would withdrawn certain data from database. In this way i would have only one page for all languages(for example "news.aspx")
so, my question is: is this way bad for SEO optimization. since there is only one page for all langugaes, crawler will not be able to pass through all languages, only to default.
is this way better :
news_en.aspx
news_hr.aspx
news_de.aspx
or this:
news.aspx?lang=en
news.aspx?lang=hr
news.aspx?lang=de
or is maybe there another way?
|
|
|
|
|
As I understand it:
The first is better in terms that the search engine will pick up the language (en, hr, de). but the second will provide a better grading relating to the search terms "news". Better still would be to implement url rewriting to create links like "news/lang/en".
|
|
|
|
|
Brand New & Updated for 2009 you can sell these turnkey websites and Php scripts. Individually, or as a complete package! YOU will keep 100% of every sale! This Package gives you all that and a whole lot more. Visit us for more detail. http://www.clicknearn.net/2635-64.html
|
|
|
|
|
Pay for advertising like everyone else, don't spam forums with your crap
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
All,
I would like to know how can we access information of clients(IP,data transfered,bytes, time,etc..)connected to IIS server either in FTP or HTTP mode?
I found in a article this is done using COM+ components, using IISAdmin base objects, but I don't know how this is achievable ?
If there is any other better method kindly let me know.
Mike.
|
|
|
|
|
Hello everybody,
From last 3years i developed an Accounting Inventory Payroll Manangement system .
It is running very successfully in UAE.I used VB and SQL Server and some C++ utilities in my program.
Now i want to develop an Online Inventory System.
So i am seeking advices from every one related to web Development.
From ur point of View actually what will be the easies tool for web development ?
I want high speed data accessibility and report generation.More over the the storage capacity of
the backend must be high.
Expecting all suggestions and advices
|
|
|
|
|
Based on your previous experience (VB, SQL Server, C++) I would probably look at ASP.NET (backed with VB.NET, SQL Server, C#) as it shouldn't be too big a leap for you and you should pretty much hit the ground running.
Different people mean different things when they say "high storage capacity". To some people, ten or twenty thousand rows in a table is "high volume". To others, it means terabytes of data. I suspect SQL Server will probably meet your requirements. If not, you can use .NET with other database technologies without any real problems.
To put this in context, I'm mainly a Java web developer (Spring MVC, JSP, servlets, Tomcat) so I don't have any vested interest in ASP.NET, although I have worked on a few projects that use it. I just think that given your background it looks like an obvious choice, unless you have a particular problem with .NET or Microsoft.
|
|
|
|
|
I want to name my website as www.abc.edu.pk/xyz
But i was told that it can only be named as www.abc.edu.pk/xyz.html
How can i name it the first way?
|
|
|
|
|
if you are using apache look up mod rewrite
redirect all requests to a base page and build your pages from there
abc.com/car/toyota/2
you would split the string type = car make = toyota page = 2 and use those values to build your page
*****************************************************
if you are using static html pages you can do it crudely
you could use a folder for each page and put an index.html inside it
eg the file cars.html could be stored as /cars/index.html
when abc.com/cars is requseted it will show /cars/index.html with a clean URL
|
|
|
|
|
|
I thought I might also add if you directory index is "index.html" (i.e when you type www.yourdomain.com you end up looking at http://www.yourdomain.com/index.html) then you can also achieve the same thing with sub folders.
eg:
www.yourdomain.com/yourfolder
www.yourdomain.com/yourfolder/index.html
should be the same location.
On IIS I believe the default directory index is default.html instead of index.html
|
|
|
|
|
MVC applications does so using URL rewriting. Hope that approach is good for you.
|
|
|
|
|
hello there i have on click event that open a popup calendar but the problem is that after getting the date from the popup in format MM/dd/yyyy i want to change the format to Month ddy, yyyy
for example
i click on the calendar image a calendar popup opens usually it gives 01/01/2001 format but at the a specific text box i want it to be January 01, 2001
how could this be done how could i get the information and then change it to that format i tried to do 2 functions triggered on click event but the next one will not wait for the first one to end they are queued they are triggered in parallel.
|
|
|
|
|
|
How to set Gridview.Datasource = empty?
How to show a message inside the gridview like "No records" in C#?
Gridview.Emptydatatemplate = "No records" does not work.
------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." --Socrates
|
|
|
|
|
DotNetXenon wrote: How to set Gridview.Datasource = empty?
Don´t set. Just call Gridview.DataBind(); and your GridView will be empty.
DotNetXenon wrote: How to show a message inside the gridview like "No records" in C#?
Before calling Gridview.DataBind();, set Gridview.EmptyDataText = "No records";
|
|
|
|
|
He buddies I was working on some project .... it is my first site desing..
First how can I prevent a form to be sent to a web server i.e I checked if the fields are filled by the user or not ..... but after that I cant stop the data to be sent to a web server.
Secondly after this is done. I want to check if the database and table exists or not on the web server. How can I do that??
Thank you
Nothing Is Impossible
|
|
|
|
|
dont use javascript to validate!! make sure you validate on the server else the validation can be bypassed
ie let them submit the form and then validate it.
If it is your webserver wouldnt you know if the table and database exist?
It is all explained on php.net in great detail
|
|
|
|
|
use AJAX to get server response to the client.
Here actually you are placing a request to the server from the client but the form itself will not be entirely posted to teh server.
you can send urlencoded parameters of all the fields you find and check in the server if they are proper.
This might help http://www.w3schools.com/Ajax/Default.Asp[^]
|
|
|
|
|
Hello everybody,
I am in the following situation. I have a website which runs in a secure environment.
I use an object with the CLSID: 0002E510-0000-0000-C000-000000000046 to show a excel workbook in the html page.
Since a Microsoft security update from July, this doesn't work anymore.
Now I am searching for a solution to get this working again. I found the I can change the registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{0002E510-0000-0000-C000-000000000046}]
FROM: "Compatibility Flags"=dword:00000400
TO: "Compatibility Flags"=dword:00000000
After this change everything works fine, but when I restart the computer the security update is installed again.
Is there any other solution to get this component working again, than changing the registry?
Or is there a registry value to change which suppresses the Micorosoft Update to run again?
Any other ideas?
Thanks in advance.
Erik
|
|
|
|