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


Tag filtered by:  C#4.0 [x]
Answer 13 May 2013   license: CPOL
In terms of MVC, the method name might be "Say", which is accepting the parameters username, words. If you are missing this mapping then you cannot receive the posted data from client side on server side.Just for better understanding, check this : Sample
Question 13 May 2013   license: CPOL
In the client I write the code like this:static void Main(string[] args){ var url = "http://www.cnblogs.com/api/say"; var postData = new Dictionary { { "username", "test" }, { "words", "hello world" } }; var urlEncodedContent =...
Answer 13 May 2013   license: CPOL
Here is an example of a for loop creating check boxes dynamically based on a row count:for(int i = 0; i
Question 13 May 2013   license: CPOL
How can we create check box at runtime based on row count?
Answer 13 May 2013   license: CPOL
There are two issue which are possible.1) You don't have access to debug folder (unlikely but possible). Just run the dev environment as admin.2. The exe in debug is still running => Goto Task manager and kill the executable (LibrarySystem.exe).
Article 13 May 2013   license: CPOL
NY Trivia Quiz w/backend Database migration to Azure cloud
Answer 13 May 2013   license: CPOL
Try this:IF NOT OBJECT_ID(N'#tmp') IS NULL DROP TABLE #tmpCREATE TABLE #tmp(Doc_Id INT, CL_Id INT, CL_Desc NVARCHAR(30), Rev_No INT, dwg_status_code NVARCHAR(30), EMP_Name NVARCHAR(30))INSERT INTO #tmp (Doc_Id, CL_Id, CL_Desc, Rev_No, dwg_status_code, EMP_Name)VALUES(146508, 15,...
Question 13 May 2013   license: CPOL
Hi friends I have two issue in my project.1.Error143Could not copy "obj\Debug\LibrarySystem.exe" to "bin\Debug\LibrarySystem.exe". Exceeded retry count of 10. Failed.2.Error144Unable to copy file "obj\Debug\LibrarySystem.exe" to "bin\Debug\LibrarySystem.exe". The process cannot access...
Answer 13 May 2013   license: CPOL
Whilst I have never tried to directly host a page in the canvas control, I can confirm that you can host it in a Frame control sitting on the canvas control. Then set the source of the Frame control to show the Page control. Please see below: Source="ChildPageView.xaml" ...
Question 13 May 2013   license: CPOL
Please clarify whether the Canvas control can hold a Xaml page content (can we load Xaml into Canvas dynamically by reading the Xaml page?) Thanks.
Answer 13 May 2013   license: CPOL
See the following : C# Pivot Table[^]http://stackoverflow.com/questions/963491/pivot-data-using-linq[^]
Question 13 May 2013   license: CPOL
HI ,I'm using StoredProcedure to display result in myu Grid...My result set is look like thisDoc_Id CL_Id CL_Desc Rev_No dwg_status_code EMP_Name146508 15 C-BF-FT-02 R2 0 DWS000002 NULL146508 15 C-BF-FT-02 R2 0 DWS000003 NULL146508 15 C-BF-FT-02...
Answer 13 May 2013   license: CPOL
Hi, you can use this .net excel component and easily import and export DataGridView to Excel.Here is a C# excel sample code:// Export active worksheet to DataGridView.DataGridViewConverter.ExportToDataGridView( excelFile.Worksheets.ActiveWorksheet, dataGridView, new...
Question 13 May 2013   license: CPOL
Showing Interactive services detection window when trying to run .exe on Windowservice Onstart()method. Once we clcik on show message then the exe(console application) shows in a separate window and windows desktop will not appear.Below is the simple code i tried. Any idea to solve this...
Question 13 May 2013   license: CPOL
We have developed windows service to decrypt some data's which is giving error as "Common Language Runtime detected an invalid program".What could be the possible cause of this?
Question 13 May 2013   license: CPOL
i have a imagebutton and image in updatepanelbut image dosen't refrresh when i click on imagebuttonit's work fine in chrome,but don't work in FF,IE,Safari
Answer 13 May 2013   license: CPOL
StringWriter sr = new StringWriter(); HttpContext.Current.Server.Execute("Default.aspx", sr); string html = sr.ToString();
Question 13 May 2013   license: CPOL
not able to send the mail network Credentials are correct and network host is also correct what my be the problem.please help.
Question 13 May 2013   license: CPOL
Good day all!!! I have a for with a picture box on it. I want to custom draw graphics to the image based on the checked radiobutton from a list of 15 radiobuttons. The graphic could either be a shape of text. I have managed to do this but now I'm stuck at how to implement a undo button for the...
Article 12 May 2013   license: CPOL
This article presented how to use code coverage during regression tests (auto/manual).
Answer 12 May 2013   license: CPOL
Try this:SELECT t2.*FROM Table1 AS t1 INEER JOIN Table2 AS t2 ON t1.Tab1ID = t2.Tab1IDWHERE t1.Condition = 'Jan'More about joins:http://www.w3schools.com/sql/sql_join.asp[^]Visual Representation of SQL Joins[^][EDIT #1]If those are datatables, use select on first datatable to...
Answer 12 May 2013   license: CPOL
I'm not sure you can make a page a child of Canvas, but it surely could be another Canvas instance. You can read a Canvas object from the XAML file and insert the result of it.For a sample of appropriate XAML, you can use use open-source Inkscape (wonderful application, a must to have,...
Question 12 May 2013   license: CPOL
There is two datatables are exists, now basis on a condition I want to create one new datatable from the two. Here are the two tablesTab1ID Name Condition...
Question 12 May 2013   license: CPOL
Sir please give me the code to find backlinks to website in ASP.NET(C#). or Suggest me how I can find backlinks to a website in ASP.NET(C#). Thanks alot.
Answer 12 May 2013   license: CPOL
Use OnSelectedIndexChanged event of DropDownList. Try this:protected void ddlWarrenty_SelectedIndexChanged(object sender, EventArgs e){ if(ddlWarrenty.SelectedItem.Text.Trim() == "1 Year") { DateTime dtday = Convert.ToDateTime(dptPurchaseDate.Text.Trim()); ...
Question 12 May 2013   license: CPOL
In my asp.net Application there is a dropdownList named "ddlWarrenty" Where have some hard coded item such as '1 Year' '2 Year'etc.Also two textbox named 'dptPurchaseDate' and 'dptPurchaseDateEx'My expectation is that when user select '1 Year' from 'ddlWarrenty' and input a datetime...
Tip/Trick 12 May 2013   license: CPOL
A basic yet generic state machine implementation
Answer 12 May 2013   license: CPOL
To create some text boxes dynamically you can add in scope of button_click following code:private void button1_Click(object sender, EventArgs e){ TextBox tb1 = new TextBox(); tb1.ID = "textBox1"; tb1.Text = "Hi"; yourform.Controls.Add(tb1)}Also, try read the following...
Answer 12 May 2013   license: CPOL
Sounds like it is a relative path issue. This is one of the most common issue faced in a structured website.There is a method exposed to handle URL's. Have a read: ResolveUrl[^].I would suggest you to use this Tip and resolve the path correctly before setting the control/image source:...
Question 12 May 2013   license: CPOL
hi,i create link temporary download in urlmapping.xml like this: string s = ""; insertinxmlurlmap(Server.MapPath("urlmapping.xml"), s); Response.Redirect("~/Downloading/"...
Answer 11 May 2013   license: CPOL
Try:int x = 20; int y = 20; int margin = 5;for (int i = 0; i
Question 11 May 2013   license: CPOL
I will be very regretful if give me a proper solution of my question. From the following query I get the result as : "select sp.MaintenceCode, sp.MDate, sp.PDes,sp.SPCode, s.SpareParts, " + "em.EmpName as MaintainedBy, md.MachinaryName, sp.SPMCode "+ ...
Tip/Trick 11 May 2013   license: CPOL
A solution for monitoring Events called during test
Answer 11 May 2013   license: CPOL
It seems that maxSizeRollBackups is not supported when rolling by date. For more information or if anybody needs that functionality follow this http://stackoverflow.com/questions/2290552/log4net-remove-old-files-rolling-by-date[^] link
Question 11 May 2013   license: CPOL
HiI am trying to configure the log4net rolling file appender, so it would create a new log every minute. Below is my configuration.
Question 11 May 2013   license: CPOL
I working on a window application. I want that when I click on add button then it creates one by one text boxes dynamically. I store the data in the sql server database & show them in a data grid view. So can u help me for add and view the text box values.
Answer 11 May 2013   license: CPOL
Please go through the article Drag and drop GridView items for ordering, in ASP.NET 2.0[^]. This might help you.
Question 11 May 2013   license: CPOL
I have a gridview that lists rows with balance due amounts. Some of the rows have negative balance due amounts, which indicate credits. I want to be able to drag a "credit" row onto a row with a balance due and merge the rows (applying the credit to the row with the balance due and eliminating...
Answer 11 May 2013   license: CPOL
Hi Mohi Uddin,what i think you want to do is like--I have a table as table1Date Bill_no cust_name Item_name2/2/2013 234 ABC wireless mouse2/3/2013 234 ABC wireless keyboard2/4/2013 234 ABC mouse padand i want to show result as Date Bill_no ...
Question 11 May 2013   license: CPOL
Hi,Can anybody help me to suggest how to Load Xaml file in a Container (eg: Canvas or please suggest any other suitable container) in a xaml page in WPF.Solution along with code is highly appreciated.Thanks in advance.
Question 11 May 2013   license: CPOL
Hi, I am developing RDLC report say A.rdlc with 2 subreports B.rdlc and C.rdlc. Each report getting data from different Data sources, but when there are no rows/data found for the 2 subreports, report is generating but I am getting error message as Data retrieval failed for the subreport,...
Answer 10 May 2013   license: CPOL
Hi harshalYou can get the connection string follow of this sub code:string strConnectionString=ConfigurationManager.AppSettings["ConnectionString"];ConnectionString is the name of your connection string form web.config after that you can split the strConnectionString with...
Answer 10 May 2013   license: CPOL
Set the SaveFileDialog.OverwritePrompt property to false, and it will not display any further information to the user.The dialog itself does not affect files at all: even if the file exists it will not be affected in any way by the dialog, only by your code.So after the ShowDialog call,...
Answer 10 May 2013   license: CPOL
Hi AliPlease first get the file name and path with FileName property from Save dialog and after check the file if the file is exist you should change the file name and save again ;)private void Save_Click(object sender, EventArgs e) { Random rnd = new Random(0); ...
Question 10 May 2013   license: CPOL
Hi All;in my windows form app user can add image in a folder in hard drive with saveFileDialog. How can I change the name of image instead of OverwritePrompt alert with adding a variable integer to the name of image?I mean how can I automatically change the name (by adding a number)...
Question 10 May 2013   license: CPOL
i am doing a project on ASP.Net MVC3 using C#and for database connection Entity data model is used, i Want to split connection string but i am unable to do that.Here is my connection string in web.config
Answer 10 May 2013   license: CPOL
ListView is somewhat lightweight as compared to other controls most of the time.Anyhow direct comparison is not possible between them because each one have some functionality in common & some unique.So, it depends on your requirement & usage & other factors like 'How many records you bind',...
Question 10 May 2013   license: CPOL
Which is the fast control in asp.net c# 4.0 for bind data and display data.?1.GridView2.ListView3.Repeater4.DetailsView5.DataListthanks.

Page 1 of 439
1 2 3 4 5 6 7 8 9 10


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