Is it SQL Server database ? If yes have checked Execution Plan of store procedure and other queris. Thanks and Regards, Arif.
Life Is Beautiful
Is it SQL Server database ? If yes have checked Execution Plan of store procedure and other queris. Thanks and Regards, Arif.
Life Is Beautiful
It is always best practice to convert object with Convert.ToString(Request.QueryString["username"]) instead of .ToString().Check whether you are getting username value as null.
Life Is Beautiful
Hi All, I have a secure webservice which I want to call using jquery.The webservice require credentails to conneccto to it. I know how to call webservice which is not secure.Can any one please help me for this. Thanks, Arif
Life Is Beautiful
CheckBox Chk1 = new CheckBox(); for(int i=0; GridViewName.Rows.Count; i++) { Chk1 = (CheckBox)GridViewName.Rows[i].FindControl("checkboxname"); if (Chk1.Checked == true) { ///operation which you want to perform } }
Life Is Beautiful
http://www.google.com/search?hl=en&q=keycode+javascript+firefox+%26+IE&aq=f&oq=&aqi
Life Is Beautiful
modified on Saturday, February 20, 2010 6:32 AM
Hope this will help you DateTime.Now.ToUniversalTime().AddMinutes(330)
Life Is Beautiful
If you are using css then apply following property in body tag of css padding: 0 px; margin:0auto; Hope this will help you.....
Life Is Beautiful
Hope this linq will help you........ http://www.matthewkerry.com/autocomplete.html[^] If you have web developer toolbar then you can able to see the sourcecode just click view source in web developer toolbar
Life Is Beautiful
Yes, This linq will help you http://www.dotnetfunda.com/articles/article27.aspx[^]
Life Is Beautiful
Thanks for reply Sir, I am not getting what you had explain.Can u please explain in brief. Thanks.
Life Is Beautiful
Hi there, I had a project which is running on web server.In that I had memu tree.On click of menu item I want to open page which is present in admin folder.But when I click on menu item I get following error.But if I place that page in root directory then that page opens after clicking on menu tree.Can anybody knows what is the reason. Server Error in '/' Application. Cannot use a leading .. to exit above the top directory. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.] System.Web.Util.UrlPath.ReduceVirtualPath(String path) +8855207 System.Web.Util.UrlPath.Reduce(String path) +52 System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +214 System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +180 System.Web.UI.WebControls.Panel.AddAttributesToRender(HtmlTextWriter writer) +8625143 System.Web.UI.WebControls.Panel.RenderBeginTag(HtmlTextWriter writer) +21 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +20 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134 System.Web.UI.Control.Re
I tried that code but it is not working.
Life Is Beautiful
Thanks for reply Zafar, I will try your code. But when googled on this problem every body suggested not use ../ Instead of they suggested to use ~/
Life Is Beautiful
Hi There I have menu tree.I had given path of my web forms in menu tree using naviage url propery.My web forms are present in admin folder. My problem is that when I run the project using following code then my page doesn't get open. Menu Tree Code But when I keep my web forms in root directory and Change the path to NavigateUrl="~//Company.aspx" then it works.Why this is happening Even I tried ~//Admin/CreateUser.aspx but it is also not working. Can anybody tell me what is the reason. (I am running my project web server on net)
Life Is Beautiful
modified on Tuesday, August 11, 2009 2:51 AM
Thanks For Reply Abhijit, I tried that linq yesterday.But my problem remains as it is.
Life Is Beautiful
Hi There, I have a menu control which I filled using XML.When I run my project from local IIS and click particular menu item from menu control then that page get opened properly.But when I run my project after uploading on web server on net and then click on menu item then that page doesn't get open.It gives me following error.I googled but didn't find proper solution.Can anybody tell me the reason for this error(I am using Asp.Net 2.0 and Sql server 2005). Error:- Server Error in '/' Application. Cannot use a leading .. to exit above the top directory. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Cannot use a leading .. to exit above the top directory. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.] System.Web.Util.UrlPath.ReduceVirtualPath(String path) +3626102 System.Web.Util.UrlPath.Reduce(String path) +84 System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +326 System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +296 System.Web.UI.WebControls.Panel.AddAttributesToRender(HtmlTextWriter writer) +1320211 System.Web.UI.WebControls.Panel.RenderBeginTag(HtmlTextWriter writer) +18 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +17 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter
What you want explain in brief.
Life Is Beautiful
First take ScriptManager on top of your page.After that put your control in update panel.
Life Is Beautiful
Sir, This code which I had suggested is only for reference not to copy as it is.
Life Is Beautiful
write this code in page load txt.Attributes.Add("onkeypress", "javascript:return DecimalLength(Event)"); and in page source:- function DecimalLength(e) { var KeyChar = (e.which) ? e.which : e.keyCode; if(KeyChar > 57 && KeyChar < 48) { if(window.event) e.returnValue = false; else e.preventDefault(); } } //Check keycode for numbers. Hope this will help you...........
Life Is Beautiful