I get the error on my machine but it works fine on other machines... :doh:
saini arun
Posts
-
How To Break Bing! [modified] -
Spammer Alerthere Checkout all the answers he has posted.
-
I want oneI hope you have a sport pilot license.
-
Updateprogress barhttp://ajax.net-tutorials.com/controls/updateprogress-control/[^] Found above page as first result on google.
-
insert dropdownlisteIgnoring the number of seconds, we both replied exactly on the same time :)
-
insert dropdownlisteif(!IsPostBack)
{
foreach (short vKey in city.Keys)
{
dropdownlist1.Items.Add(city[vKey].cityName);
dropdownlist1.DataTextField = city[vKey].cityName;
dropdownlist1.DataValueField = (city[vKey].id_city).ToString();}
}
-
jquery in asp.net+server side executionCalling server side code does not have anything to do with jQuery. It can be achieve easily using javascript. http://www.dev102.com/2008/04/30/call-aspnet-webmethod-from-jquery/[^] http://www.xdevsoftware.com/blog/post/Call-WebMethod-from-Javascript-in-ASPNET.aspx[^]
-
jquery in asp.net+server side executionIn that case you can go for page methods.
-
rootSearch = New DirectorySearcher(root)'.PropertiesToLoad.Add("Voted to remove message")
-
jquery in asp.net+server side executiontrilokharry wrote:
like some login form is opened by using jquery as model popup and how will be executed submit button click event.
The jQuery model popup displays the content of the DIV itself. I you use asp buttons inside your div to complete the login process you should have no problem accessing their _OnClick method in code behind.
-
jquery in asp.net+server side executiontrilokharry wrote:
execute server side code in asp.net while using jquery
The most common method I use for this purpose is WebMethod. 1. Create a webmethod in your code behind.
[System.Web.Services.WebMethod(EnableSession = true)]
public static string DemoMethodInCodeBehind(string msg)
{
return "OK_" + msg;
}2. Write a javascript function to call this web method.
function demo()
{
PageMethods.DemoMethodInCodeBehind('hello',OnGetMessageSuccess, OnGetMessageFailure);
}3. Implement success & failure methods in java script.
function OnGetMessageSuccess(result, userContext, methodName)
{
alert("Success " + result);
}function OnGetMessageFailure(error, userContext, methodName)
{
alert("Failed");
}4. Now call Demo on button click.
-
HtmlTabHTleRowUse ColSpan property of HtmlTableCell.
-
web application problemAfter saving the information in database simply redirect to the current page. For instance, if your page name is insert.aspx then after saving the record write : Response.Redirect("insert.aspx"); This will prevent the page from raising postback on refresh.
-
Handle Browser close event by pressing [X]koolprasad2003 wrote:
t but for that i need to repeate same code on each page
If you are using master pages in your application, you wont have to write same code on each page. On other thought, you can create a base page and write code to inject javascript function using ScriptManager. And then make all pages to inherit the base class.
-
can't see the background-image of a master pageTry to specify the background image path using ResolveURL on master page like this src="<%=ResolveUrl("~/images/test.png")%>"
-
DateFormat Problem in ASP.NETAs far as I know there should not be any case for not working the same code from virtual directory if it works from visual studio. Are you sure you set the correct path while configuring the virtual directory?
-
Code for page rankingrummer wrote:
Please provide code for page ranking
Sure sir, it will be our pleasure to write code on your behalf.
rummer wrote:
as soon as possible.
But as you must have read in terms & conditions while signing up for an account on code project that we do not work on week ends. Unfortunately, today is Saturday & we have some plan with our family. Is it OK with you if we can start writing code from Monday? Till then you can use google to find any helpful URL.
-
Avoiding Button Double Click - AJAXTry this: private void checkButtonDoubleClick(Button button) { System.Text.StringBuilder sbValid = new System.Text.StringBuilder(); sbValid.Append("if (typeof(Page_ClientValidate) == 'function') { "); sbValid.Append("if (Page_ClientValidate() == false) { return false; }} "); sbValid.Append("this.value = 'Please wait...';"); sbValid.Append("this.disabled = true;"); sbValid.Append(this.Page.ClientScript.GetPostBackEventReference(button, "")); sbValid.Append(";"); button.Attributes.Add("onclick", sbValid.ToString()); } Copied from here http://forums.asp.net/t/1362149.aspx[^]
-
Integrate Google calender with ASP.NetWhat about this one: http://code.google.com/apis/calendar/data/2.0/developers_guide_dotnet.html[^]
-
User Login through http postDo not ever ask for the code on CodeProject. You will be treated like this ^