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


Author filtered by: Naz_Firdouse [x]
Answer 9 May 2013   license: CPOL
Have a look at theseWCF[^]Windows Communication Foundation FAQ quick starter Part 1[^]what-is-wcf-in-simple-terms[^]what-is-wcf-in-net[^]What+is+WCF[^]windows-communication-foundation(wcf)[^]
Answer 8 May 2013   license: CPOL
This works for Web Application...Use RowDatabound Event Here you go protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label lbl1 =...
C#
Answer 8 May 2013   license: CPOL
Implement INotifyPropertyChanged event...Here are some sampleswhats-the-concept-behind-inotifypropertychanged[^]implementing-inotifypropertychanged.html[^]simple-example-of-inotifypropertychanged.aspx[^]
Answer 7 May 2013   license: CPOL
I am not sure about Page.DataBind();this works for meprotected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e){ gridView.PageIndex = e.NewPageIndex; gridView.DataSource = /* Specify your dataset you want to bind here */ ...
Answer 7 May 2013   license: CPOL
The reason MouseEventArgs is not working is it is available in Forms application...since you are using it in web application, it gives you error...For drag and drop behavior in Web app, you can use JQuery and here are some...
Answer 7 May 2013   license: CPOL
User should select from dropdownlist means you may be displaying the first item in dropdownlist as "Select"... and you will have a "Search" or "Show" button in your page.In that case, you can have a bool variable and change its value inside Dropdownlist selection changed event... So whenever...
C#
Answer 7 May 2013   license: CPOL
The reason is e.SortDirection always returns Ascending....so you need to store the e.SortDirection in a ViewState and sort the dataview with that value...Here are some samples..http://stackoverflow.com/questions/250037/gridview-sorting-sortdirection-always-ascending[^] GridView...
Combobox in Datagrid WPF by Naz_Firdouse
Answer 7 May 2013   license: CPOL
You can use like thisSqlConnection conn = new SqlConnection("connection string");SqlDataAdapter da = new SqlDataAdapter("your Query", conn);DataSet ds = new DataSet();da.Fill(ds, "tblName");cmb.ItemsSource = ds.Tables[0].DefaultView;If you are using MVVM, have a look at...
Answer 6 May 2013   license: CPOL
You will be getting null atthis.appentDiv.FindControl("chk1") as CheckBoxThe reason is Dynamically added controls will not be available after postback....So you need to handle this by using Session or Viewstate...Please check these links...Solve Dynamic Control Problem With...
Answer 6 May 2013   license: CPOL
check thishttp://www.c-sharpcorner.com/UploadFile/LivMic/UC_InsideGV02202007133624PM/UC_InsideGV.aspx[^]
C#
The code of Drag and drop by Naz_Firdouse
Answer 6 May 2013   license: CPOL
for windows forms, check these A Simple Drag And Drop How To Example[^]http://stackoverflow.com/questions/11407068/how-to-drag-and-drop-a-button-from-one-panel-to-another-panel[^]
C#
Answer 6 May 2013   license: CPOL
Have a look at this samplehttp://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Walkthrough/CCDWithDB.aspx[^]Using CascadingDropDown with a Database[^]
Answer 6 May 2013   license: CPOL
Use MessageBox.Show("Hello"); Have a look at thesehttp://www.dotnetperls.com/messagebox-show[^] http://msdn.microsoft.com/en-us/library/system.windows.forms.messagebox.show.aspx[^]
Answer 6 May 2013   license: CPOL
Have a look at this...http://weblogs.asp.net/karan/archive/2010/09/12/calling-server-side-method-using-jquery-ajax.aspx[^]
Answer 6 May 2013   license: CPOL
Use Session.Remove("UserName");
C#
Answer 6 May 2013   license: CPOL
You need to assign some list or dataset to DataSource of Listbox likemyListBox.DataSource = someList;See these...http://www.java2s.com/Tutorial/ASP.NET/0380__Data-Binding/BindDataSettoListBox.htm[^]To get the data from DB,...
C#
Answer 6 May 2013   license: CPOL
Here is a sample... use this...hope it helps... The definitions for datatemplate is In...
C#
Answer 6 May 2013   license: CPOL
refer the solution given by jackyang here...http://forums.asp.net/t/1519923.aspx[^]
Answer 3 May 2013   license: CPOL
you can use nested listboxes...have a look at this...http://debugmode.net/2011/08/20/nested-listbox-binding-in-silverlight-and-windows-phone-7/[^]
C#
Nested Listbox Event Issue. by Naz_Firdouse
Answer 3 May 2013   license: CPOL
If you want Parent listbox selected item ID (may be), you can bind the same as the tag for child listbox and when you tap the child listbox, you can get the parent selected item from that tag...If you need further clarification, use improve question and please post your code and explain what...
C#
Answer 2 May 2013   license: CPOL
I hope you want to insert the textbox value.so modify your query like thisstring cmdSendSMS2 = "insert into MobileSMS(MsgTxt,MsgDate) values('" + msgtxt.Text + "','" + DateTime.Now + "')";where your textbox can be like thisThen it will insert with the value provided in...
Answer 1 May 2013   license: CPOL
YOu can bind the images from database to an unordered list(ul) andcreate a carousal in JQuery which will provide the user to use previous and next buttons.Have a look at these samples which will help you in creating the...
Answer 30 Apr 2013   license: CPOL
You can have a class which holds the value of the controls whatever you want and maintain a global collection of that class...ObservableCollection obj = new ObservableCollection() where Employee is your defined class.Now on button click , you can add the new row like thisPrivate void...
Answer 30 Apr 2013   license: CPOL
Before converting the string to int, make sure that the string is not null...use like this int i = String.IsNullOrEmpty(str) ? -1 : Convert.ToInt16(str);
C#
Question 30 Apr 2013   license: CPOL
Hi all,I am validating an email with the pattern likevar pattern = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/;and I am testing for a match like this... if (!r.test(txtEmail.Text))it works fine...but if I get this pattern value from resource file like var pattern= "
Answer 25 Apr 2013   license: CPOL
are you using JQuery??? if so here is the solution...$(function () { var map = document.getElementsByName("ImageMap")[0]; var areas = map.getElementsByTagName("AREA"); for (var i = 0; i
Answer 25 Apr 2013   license: CPOL
I hope you want to show images in listview which are retrieved from database. Check these helpful links...Show Image in Listview retrieve from database in ASP.net[^]
window phone 8 app audio by Naz_Firdouse
Answer 24 Apr 2013   license: CPOL
Go through these links...http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978(v=vs.105).aspx[^]http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh394039(v=vs.105).aspx[^]
C#
Answer 24 Apr 2013   license: CPOL
If you want to fire an event other than textchanged when the text is changed in the textbox , then do like thisAdd onblur event to the textbox in code behind like thistb1.Attributes.Add("onblur", "javascript:tbFn(this);"); function tbFn(tb) { var text =...
Answer 24 Apr 2013   license: CPOL
If you set TextAlign to Left, then you can access the value by setting var UnCheckedfilename = cbh.previousSibling.innerHTML;because "the previousSibling property returns the element that immediately precedes the current element in the childNodes collection of the current element's...
Answer 23 Apr 2013   license: CPOL
You can add the usercontrol as a tabItem itself like or add multiple datatemplates to the tabcontrol...Check...
Answer 23 Apr 2013   license: CPOL
Do you want to set the color for the cell while binding itself based on some condition??? if so, please check these which uses converters http://stackoverflow.com/questions/6986898/change-color-of-datagrid-cell-wpf-regarding-range[^]Here check for Padma's solution......
Answer 23 Apr 2013   license: CPOL
I think yo ucan use listbox if you want to show some items initially and to view the remaining items, you can scroll down.Here is a sample.Item 1Item...
Answer 23 Apr 2013   license: CPOL
you want to delete the entire row . right?if that is the case, use like thisDgvBranch.DeleteRow(index)
Answer 23 Apr 2013   license: CPOL
see this...http://jsbin.com/ateva3/1/edit[^]
date converting problem by Naz_Firdouse
Answer 23 Apr 2013   license: CPOL
something like thisdateObj1.ToString("mm/dd/yyyy") = dateObj2;where dateObj2 is of format "mm/dd/yyyy"
Answer 22 Apr 2013   license: CPOL
Here is a sample...http://msdn.microsoft.com/en-US/library/37hwc7kt(v=vs.80).aspx[^]http://stackoverflow.com/questions/4492536/how-run-a-stored-procedure-with-parameters-has-a-return-value-from-code-behi[^]
Answer 22 Apr 2013   license: CPOL
I think you need to set to true if Session value is null...Please check...The property Disabled works fine...You need to set it to true if you want to disable the anchor tag...
Answer 22 Apr 2013   license: CPOL
Instead of returning false from code behind,call this function like... Page.ClientScript.RegisterStartupScript(this.Page.GetType(), "checkRadio", "fn_radio();");
Answer 22 Apr 2013   license: CPOL
check this...Save Hindi,Marthi Content in Sql Server database[^]also refer thesehttp://aalamrangi.wordpress.com/2012/05/13/storing-and-retrieving-non-english-unicode-characters-hindi-czech-arabic-etc-in-sql-server/[^]
Answer 22 Apr 2013   license: CPOL
Use like thissqlDataSource1.SelectCommand = "spGetProductDetails";sqlDataSource1.SelectCommandType = SqlDataSourceCommandType.StoredProcedure; sqlDataSource1.SelectParameters.Add("code",TypeCode.String, "1");sqlDataSource1.SelectParameters[0].Direction =ParameterDirection.Input; ...
Image Handling in MVC4 by Naz_Firdouse
Answer 21 Apr 2013   license: CPOL
Here are some samples...http://forums.asp.net/t/1819463.aspx/1?How+to+Upload+Image+in+Mvc3[^]
Answer 21 Apr 2013   license: CPOL
Hope this helps...http://forums.asp.net/t/1526724.aspx/1[^]
Answer 21 Apr 2013   license: CPOL
you can convert the strings to date and then compare the two strings like thisvar Date1 = new Date("12/121/2012"); var Date2 = new Date("6/6/2013"); if (Date2 > Date1) { alert('found'); }
C#
Answer 21 Apr 2013   license: CPOL
you can have your image button inside the gridview like this ...asp:ImageButton runat="server" ID="ibtnDelete" Text="delete" CommandName="delete" CommandArgument=''and you can add a RowCommandprotected void...
Answer 21 Apr 2013   license: CPOL
Hope this helps...http://demos.telerik.com/aspnet-mvc/razor/grid/checkboxesajax[^]
Answer 21 Apr 2013   license: CPOL
Please check this...http://www.c-sharpcorner.com/UploadFile/8911c4/how-to-find-control-and-its-value-form-datagrid-in-wpf/[^]Here there are two DataGridTemplateColumns and accessing a control within one datatemplate from another...
Answer 21 Apr 2013   license: CPOL
On click of href, call a javascript method and there get its href....since you want to see a parameters value, serach for the parameter txtcallerid in that href and then find the value assigned to it...http://jsfiddle.net/acX4s/2/[^]
Answer 21 Apr 2013   license: CPOL
you can use Uri class as follows...Uri myUri = new Uri("http://www.contoso.com/Hello%20World.htm", UriKind.Absolute);Before converting you need to check that your string is of correct format....i.e validate your string before converting to URIfor more info, check...
C#
Answer 21 Apr 2013   license: CPOL
please check this...http://stackoverflow.com/questions/4091831/how-to-use-ternary-operator-in-razor-specifically-on-html-attributes[^]

Page 1 of 3
1 2 3


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