Click here to Skip to main content
Page 1 of 2
Page Size: 10 · 25 · 50


Author filtered by: TrushnaK [x]
Question 9 May 2013   license: CPOL
Hi every one I am faceing problem with gridview editing value-Que:- How to restrict gridview column to accept only numbers at client side Suppose there is two columns in gridview and i want that first column should take alphabets and second should take numbers only...I...
Answer 6 May 2013   license: CPOL
Hiyou can follow above steps:-1]open sql server2]connect your DB3]Right click on Database4]click on Restore Databse5]Add the name you want to give in (To database)6]select your backup db from device7] check the checkbox that appear with your db name 8]ok
Answer 4 May 2013   license: CPOL
Refer This Sites and add plugins into your page:-http://jqueryui.com/datepicker/[^]http://timjames.me/jquery-ui-datetimepicker-plugin[^]
Answer 3 May 2013   license: CPOL
You can try this:-function SetupWindowClose(){ window.open('javascript:window.open("", "_self", "");window.close();', '_self');}OR function SetupWindowClose(){ close();}
Answer 2 May 2013   license: CPOL
From your question it's not clear that where you get this error. and scenerio while you run the code.Refer this link:-http://support.esri.com/en/knowledgebase/techarticles/detail/33000[^]
Multiple upload Image by TrushnaK
Answer 30 Apr 2013   license: CPOL
Refer this links:-http://csharpdotnetfreak.blogspot.com/2012/07/asynchronous-file-upload-jquery-uploadify-aspnet.html[^]http://www.aspsnippets.com/Articles/Multiple-File-Uploads-Gmail-Style-using-JQuery-and-ASP.Net.aspx[^]
Answer 30 Apr 2013   license: CPOL
You can retrive all information using JSon object like:-ComputerBeacon.Facebook.Models.User fbUser = new ComputerBeacon.Facebook.Models.User("me", objWebContext.Session.AccessToken);JsonArray JA = Api.Fql("SELECT uid, name, pic_square, profile_url, email FROM user WHERE uid = UserId,...
Sql Select Query by TrushnaK
Answer 30 Apr 2013   license: CPOL
You can try like this:-declare @columns varchar(max)declare @convert varchar(max)select @columns =stuff((select '],[' + particular from tblName order by '],[' + convert(varchar(max),points) desc for xml...
Answer 29 Apr 2013   license: CPOL
Refer :-http://www.dotnetfunda.com/articles/article224.aspx[^]Using AJAX AutoCompleteExtender for autosuggest[^]http://www.magic-dev.com/autocomplete-textbox-aspnet-database.htm[^]
error on sql command by TrushnaK
Answer 29 Apr 2013   license: CPOL
It seems that your txt_serch_by not properly registered to designer page.remove the textbox and add it again.
Answer 29 Apr 2013   license: CPOL
Refer this links:-http://csharpdotnetfreak.blogspot.com/2012/07/asynchronous-file-upload-jquery-uploadify-aspnet.html[^]Multiple File Upload Using jQuery[^]http://www.aspsnippets.com/Articles/Multiple-File-Uploads-Gmail-Style-using-JQuery-and-ASP.Net.aspx[^]
Answer 29 Apr 2013   license: CPOL
Sorry but I think that is not possible using the built-in confirm() dialogue. Your only options are the default. You can construct your own modal dialogue.Refer this:-http://jqueryui.com/...al-confirmation[^]
chat room application by TrushnaK
Answer 26 Apr 2013   license: CPOL
Refer this:-Global Text Chat Room Application using C#.NET Remoting Technology[^]
Answer 26 Apr 2013   license: CPOL
Its not problem of your query. i want to tell you that it is by DB.The date range allowed in SqlJanuary 1, 1753, through December 31, 9999and if you using datatype as smalldatetime thenJanuary 1, 1900 through June 6, 2079Put date within this your query will run.
C#
Answer 26 Apr 2013   license: CPOL
Before insert query apply your formula on txtNetAmt like:-txtNetAmt.Text=txtGrossAmt.Text - txtGrossAmt.Text * ddlTDS.SelectedValueetc...
Answer 26 Apr 2013   license: CPOL
You can try this:-string text = "(Noshow=Ads|Attract=N\\013\\abc.swf;N\\012\\def.jpg"; //Put your stringstring answerStr = myString .Split('\\', ';')[1];
c#.
Answer 25 Apr 2013   license: CPOL
Refer this:-http://www.dreamincode.net/forums/topic/75911-adding-images-to-listview/[^]ImageListView[^]
Answer 25 Apr 2013   license: CPOL
Use Update Panel or Add below in your Page directiveMaintainScrollPositionOnPostback="true"
Answer 24 Apr 2013   license: CPOL
Put your table name and column name in below query:- from t1 in Projectsfrom t2 in Tasks.Where(x => t1.ProjectID == x.ProjectID && x.Completed == true) .DefaultIfEmpty()select new { t1.ProjectName, t2.TaskName }this is basic query you can modify it.
Answer 24 Apr 2013   license: CPOL
You can't use SUM on a DateTime and varchar column. If your final goal is to get sum of all datadiff records in hh:mm:ss then stored the difference in minutes as:-SELECT DATEDIFF(second,CAST('02:32:00' AS DATETIME), CAST('03:40:00' AS DATETIME))/60.0 AS MIN_DIFF;Then to do sum of...
Answer 24 Apr 2013   license: CPOL
Refer This:-http://dotnetcodes.com/dotnetcodes/code/Interview-Questions-160-Difference-between-Encapsulation-and-Abstraction-with-examples.aspx#.UXfGrKJTCyg[^]http://thecodekey.com/C_VB_Codes/Encapsulation.aspx[^]http://thecodekey.com/C_VB_Codes/Abstraction.aspx[^]etc.. search...
C#
Answer 23 Apr 2013   license: CPOL
Refer this:-http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/735a0adc-b70b-4fd0-85b8-faf37aaac2e2/[^]http://msdn.microsoft.com/en-IN/library/system.windows.forms.picturebox.image(v=vs.71).aspx[^]
SQL SERVER 2008 R2 by TrushnaK
Answer 23 Apr 2013   license: CPOL
Only one identity column can be created per table.
Answer 23 Apr 2013   license: CPOL
Refer:-Gridview inside Gridview in ASP.NET C#[^]
Answer 23 Apr 2013   license: CPOL
Try this:-String col="LastName";DataTable tableWithOnlySelectedColumns = new DataView(table).ToTable(false, col);
Answer 22 Apr 2013   license: CPOL
Hey you not specify which type of validation you required. so give for empty or not selected.if($('#idOfFeild').val()==''){ $('#idOfFeild').val('Please input your data');}mydropdown = $('#myDropdown');if (mydropdown.length == 0 || $(mydropdown).val() == ""){ ...
Answer 22 Apr 2013   license: CPOL
String ConnString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password"; SqlConnection con = new SqlConnection(ConnString); SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "SP_Name"; ...
question about query by TrushnaK
Answer 22 Apr 2013   license: CPOL
ALTER TABLE studentDROP PRIMARY KEY
Answer 22 Apr 2013   license: CPOL
Add this line to your code from where you want to call js function:-ScriptManager.RegisterStartupScript(this, GetType(), "radioEle", "fn_radio();", true)
Answer 22 Apr 2013   license: CPOL
Try this:-DateTime date = DateTime.ParseExact(txtdob.Text, "dd/MM/yyyy", null);
Answer 20 Apr 2013   license: CPOL
Try this:-SELECT DISTINCT TOP 5 MAX(Salary) FROM Salaries GROUP BY Salary ORDER BY Salary DESC;
SQL
Answer 19 Apr 2013   license: CPOL
try for this:-DateTime today = DateTime.Today;int age = today.Year - bday.Year;if (bday > today.AddYears(-age)) age--;or int age = new DateTime(DateTime.Now.Subtract(birthday).Ticks).Year-1;
Answer 19 Apr 2013   license: CPOL
Refer this:-http://weblogs.asp.net/yousefjadallah/archive/2010/04/16/installing-ajax-control-toolkit-4-in-visual-studio-2010.aspx[^]
Answer 19 Apr 2013   license: CPOL
try this after getting result in reader:-while (rs.next() == true) { key = rs.getString(1); value = rs.getString(2); hash.put(key,value); //Hashtable populated }
C#
Multilingual Site in MVC3 by TusharKhairnar
Answer 19 Apr 2013   license: CPOL
try this:-http://afana.me/post/aspnet-mvc-internationalization.aspx[^]
Answer 19 Apr 2013   license: CPOL
find a master page control from content page like this:-//your div should contain the property runat="server" //finding the div associated with id System.Web.UI.HtmlControls.HtmlGenericControl currdiv = (System.Web.UI.HtmlControls.HtmlGenericControl)Master.FindControl("divid");...
Answer 18 Apr 2013   license: CPOL
Creating Secure Trial Versions for .NET Applications - A Tutorial[^]
Answer 18 Apr 2013   license: CPOL
Try for this:-int WordCount(string text){ var regex = new System.Text.RegularExpressions.Regex(@"\w+"); var matches = regex.Matches(text); return matches.Count;}
C#
Answer 18 Apr 2013   license: CPOL
Check your reader that it has values or not using this condition:-reader2 = cmd2.ExecuteReader();if (dr == null || !dr.HasRows){ //Default values trendtxtbox.Text = "Val1"; DropDownList1.Text = "Val2"; splitbioddl.Text = "Val3";}else{ //DB Values ...
Answer 18 Apr 2013   license: CPOL
try this:-function clearLabelValue(){ var labelObj = document.getElementById(""); labelObj.value = ""; }
chat application in asp.net by TusharKhairnar
Answer 17 Apr 2013   license: CPOL
Refer this:-Simple Chat Application in ASP.NET[^]http://code.msdn.microsoft.com/CSASPNETAJAXWebChat-c4c9b8fe[^]http://www.c-sharpcorner.com/uploadfile/0b8108/simple-chat-application-in-Asp-Net/[^]Chat Application in ASP.NET Using AJAX (Pop-up Windows)[^]
How to call javascript method by TusharKhairnar
Answer 17 Apr 2013   license: CPOL
try this:-add script manager in your aspx page.ScriptManager.RegisterStartupScript(Me,[GetType](),"key name", "javascriptMethodName();",true);ScriptManager.RegisterStartupScript(Me, [GetType](), "DatePicker", "DatePicker();", True)
Answer 17 Apr 2013   license: CPOL
try this:-private void binddata() { string connstring = @"Data Source=LENOVO-41B3F2CE\SQLEXPRESS;Initial Catalog=IMS;Integrated Security=True;Pooling=False"; string query = "SELECT * FROM ['ISB VAS Nodes$']"; SqlConnection con = new...
Incorrect syntax near '('. by TusharKhairnar
Answer 17 Apr 2013   license: CPOL
hi,use create Table #tempTable(SNo int, Stud_ID varchar(10), Stud_Name varchar(100), Rcptno varchar(20),Rcptdt varchar(20), RcptAmt varchar(20),Chqtype varchar(20))
C#
Answer 17 Apr 2013   license: CPOL
Refer this site:-http://windows-tech.info/3/f19445531da643e0.php[^]
Why we use Static Class by TusharKhairnar
Answer 17 Apr 2013   license: CPOL
If a class is declared as static then the variables and methods should compulsorily be declared as static.A class can be declared static, indicating that it contains only static members. It is not possible to create instances of a static class using the new keyword. Static classes are loaded...
Answer 17 Apr 2013   license: CPOL
i also face same problem. i used postback trigger.

Page 1 of 2
1 2


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 15 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid