{"id":3477,"date":"2014-03-25T15:33:05","date_gmt":"2014-03-25T15:33:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/25\/net2-0vb9-0casp-netcss-netrelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-03-25T15:33:05","modified_gmt":"2014-03-25T15:33:05","slug":"net2-0vb9-0casp-netcss-netrelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/25\/net2-0vb9-0casp-netcss-netrelated-issues-collection-of-common-programming-errors\/","title":{"rendered":".NET2.0,VB9.0,C#,ASP.NET,CSS,.NETRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nAzad R Chouhan<br \/>\n.NET2.0 HTTP<br \/>\nHello everyone \u00a0 I am posting the same question again. Because i did not get any reply from my previous question. I am working on an application. Its a window application which developed in .net 2.0 \u00a0 Now the problem is this that when ever i run my application and i send a request to another application its send successfully but i get the problem when i get the response its show me the error and the error is \u00a0The underlying connection was closed: An unexpected error occurred on<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\ntheitmueller<br \/>\n.NET2.0 Remoting<br \/>\nDear all, \u00a0 I have an application (VB.Net 2.0) with a client and a remoteing server. Once the clients starts his work, he registers with the server and receives a session-ID. The session data is stored on the server and the client receives the session id. Once registered, the client stores the session id in the CallContext using &#8220;SetData()&#8221;. \u00a0 Everything works fine until the session id gets lost (e.g. due to a server restart). The client checks for a valid session id and if his id is<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nhina_abbas123<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMohammed Hameed<br \/>\n.NET2.0 C#1.0 C#2.0 .NET3.0 C#3.0<br \/>\nHow to enumerate through properties of textbox in Wpf (using C#)? \u00a0 Actually I wanted to create a clone of textbox by copying all properties same to this cloned textbox except the Id\/Name of the textbox so that they both would be different textboxes. \u00a0 I think I can achieve the same by using XamlWriter but I wanted to check if there is any other suitable alternate. \u00a0 I hope that my question is clear and to the point. But if it has created any confusions please let me know. \u00a0<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\npinky_sood<br \/>\n.NET2.0<br \/>\nusing System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; \u00a0 internal class TranslaterClass {string mstrText;string mstrOriginal;\/\/Control access to class-level variables. public string Text {get{return mstrText ;}set{ mstrText = value; \/\/ keep a copy of the original Restore . mstrOriginal = value; } } \/\/Restores tra<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nJimmyco<br \/>\n.NET2.0<br \/>\n* In English &#8230; First of all I apologize for my English is not good and I hope to be as clear as possible. I am a student of systems and have little experience in Vb.Net and I&#8217;ve been doing a small project which implements the control functionality exelentes ExpTree which have been very helpful, but I encounter a unique problem which I would like to share in case someone I can work as possible to deplete the resources to find a solution. Make the program without any problems, no warnings or err<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nRenrewD<br \/>\n.NET2.0 C# Interop .NET4<br \/>\nEnvironment: &#8212;&#8212;&#8212;&#8212; Microsoft Visual Studio 2010 .NET 4, .NET 2 external libraries (.dll&#8217;s) based on .NET 4 \u00a0 .NET 4 DLL &#8220;communication.dll&#8221;: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- I have implemented a .NET 4 library which wraps technical information how to carry out and control communication between PC and individual microprocessor based devices. Different communication protocols are supported. My library uses external libraries to supoort these protocols. The external libraries a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nNaik Nagraj<br \/>\n.NET2.0<br \/>\nHi, \u00a0 I have paging user control. \u00a0 pager.ascx code public delegate void PageChangedEventHandler(object sender, CustomPageChangeArgs e); public event PageChangedEventHandler PageChanged; protected void lnkPageNumbers_Click(object sender, EventArgs e) {SetCurrentPage(Convert.ToInt32(((LinkButton)sender).Text)); } private void SetCurrentPage(int currentPage) {Pager_PageChanged(this, args);\/\/Some code } \u00a0 If I add user control at compile time it works \u00a0 &lt;Custom:Pager ID=&#8221;Cust<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nsathya.spidy<br \/>\n.NET2.0 C#2.0 C# ASP.NET Video<br \/>\nHi friends, \u00a0I download the jw player. i want to know how to give the video url at the run time for the java script given by jw player. if anyone know the solution help me. \u00a0 Here is the code \u00a0 &lt;%@ Page Language=&#8221;C#&#8221; AutoEventWireup=&#8221;true&#8221; CodeFile=&#8221;Default2.aspx.cs&#8221; Inherits=&#8221;Default2&#8243; %&gt; \u00a0\u00a0 &lt;!DOCTYPE html PUBLIC &#8220;-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN&#8221; &#8220;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd&#8221;&gt; &lt;html xmlns=&#8221;http:\/\/www.w3.org\/1999\/xhtml&#8221;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\njaspreetsidhu7750<br \/>\n.NET2.0 Javascript Masterpage<br \/>\nhello all, \u00a0 i am having a problem.When i was working in an application without master page and content page, javascript was working finely.But later i needed to use mastr paga in my project.After using master page, javascripts is giving error on call of the function. error is like below. \u00a0 &#8220;Microsoft JScript runtime error: &#8216;document.getElementById(&#8230;)&#8217; is null or not an object&#8221; \u00a0 how should i put the javascript in content page. \u00a0 please help as soon as possible. \u00a0 than<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nOdiagbe justus<br \/>\nVB8.0 VB9.0 VB10<br \/>\ncould you help with dataarrival event on vb 2008, i am trying to develop a chat application but it gives me warning each time i have something like dim recievedData as string sckClient.GetData(recievedata) please i need complete this fast. also working on a chat the speaks written messages and it gives error in my declaration dim listener As New TCPlistener Please, i have been on these for weeks now. Thanks in anticipation \u00a0Posted by OP as an answer: &#8220;this is the warning that comes up varia<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nmindserve<br \/>\nVB9.0 C# VB.NET<br \/>\nI need to know how to transfer bound data from a datagridview to an unbound datagridview.\u00a0The data transfer would happen on a click event of the datagridview rows so that I can choose what data to transfer over.\u00a0I am then totaling up some numbers in a cell to a textbox.\u00a0I can do this with a textbox but then I have to use a delimiter and not sure how to do it with a listbox.\u00a0Is is possible to copy data over at runtime this way?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nPolarfuze<br \/>\nVB8.0 VB9.0 VB VBScript VB10 Access<br \/>\nAfter inputting data to the database ,what coding should i use to see the changes in the datagridview at runtime .I am using Vb8 with access2003 \u00a0 How do i refresh the data grid view to show the newly inserted record without exiting the program<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\njavedsmart<br \/>\n.NET2.0 VB9.0 C# ASP.NET CSS .NET<br \/>\nHello friends,I am creating one website for which i want to change css element value dynamically through c# or vb. how do i change it? ex. i want to change header back-color through c# or vb.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nShweBo<br \/>\nVB9.0<br \/>\nAttn: DevExpress Components users\u00a0Sir,\u00a0\u00a0\u00a0\u00a0I just want to know is there similar functionality in DevExpress DateEdit Control like M$ DataTimePicker Control?When in runtime, A M$ Datetimepicker has special shortcut-keys (automatically) like Ctrl + Arrows keys (or Ctrl + Plus\/Minus keys) to change it&#8217;s dropdown view between Dates &#8211; Months &#8211; Years and it is very useful to pickup a date quickly.I tried similar keys combination on DateEdit Control at runtime but no luck.Is the<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nrspercy65<br \/>\nVB9.0 VS2008 Windows VB10 VS2010<br \/>\nHow Would I Check if a program has or needs a &#8220;runas admin&#8221; permission during runtime? using vb9, VB10, or VB11 beta. Thanks in advance for any answers, or (directions to an article), that could possibly resolve this little problem.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nC.CoderCreator<br \/>\nVB9.0<br \/>\nthis is my code \u00a0 Dim b As Integer = 100 Dim i As Integer Dim u As Integer \u00a0 Dim h As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load \u00a0While i &lt; 10000i = i + 1 \u00a0h = h + 1Dim pic As New PictureBoxIf i = b Thenu = u + 1b = b + 100h = 0End If \u00a0pic.BackColor = Color.Redpic.Size = New Size(1, 1)pic.Location = New Point(h, u)Me.Controls.Add(pic)End While \u00a0 End Sub \u00a0its meant to create picureboxes in ma<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\npravin29<br \/>\nVB9.0 C<br \/>\nSetup &#8211; Hardware have USB device connected to PC host. Some Data trasfer (send and receive) between PC and Hardware can be done through application software using USB communication. No problem occured at table test (means without any nosiy envoirnment i.e. in ideal condition) but problem occured in noisy envoirnment (for testing purpose forcefully create the noise through USB cable to hardware and PC). \u00a0 Condition &#8211; No communication through hardware and PC just connect USB cable to har<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMarqW<br \/>\nVB9.0 .NET VB.NET<br \/>\nI&#8217;ve got a weird problem with some code. If I use this code, it crashes on there custParts.Where(Function(cv), with the error: Delegate to an instance method cannot have null &#8216;this&#8217; \u00a0Dim custParts As CustomerPartNumbers = New CustomerPartNumbers() &#8216; Inherits ComponentModel.BindingList(Of CustomerPartNumber), which is just another data class Dim queryString As String = &#8220;Wallpaper&#8221; custParts.Load(&#8220;DummyCustomer&#8221;) If Not custParts Is Nothing ThenDim qS As String = queryStringDim cp As Customer<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nAuric Consulting, LLC<br \/>\nC# USB IO Asynchronous<br \/>\nIn the code below, there is a BeginRead call which I want to use in an async manner. (warning, code is cobbled together using a variety of code samples found lying around on the internet!) With this sample, I expect the BeginRead to return immediately, and then the callback to be hit later on when data finally shows up. \u00a0 Instead what I&#8217;m seeing, is that it gets &#8220;stuck&#8221; inside the BeginRead call. I can break, and the program counter is on the BeginRead line, but if I continue, it won&#8217;t go a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nAnouarDjerba<br \/>\nC# .NET Visual-Studio socket<br \/>\nHello, I&#8217;m using .NET synchronous socket to send data from a client to server. I need to get the data from the StartListening() method to use it in the Main() but the variable data is inside an infinite loop ( while(true)). Any help please? This is the server code :using System; using System.Threading; using System.Net; using System.Net.Sockets; using System.Text; \u00a0public class SynchronousSocketListener { \u00a0byte[] bytes = new Byte[1024];IPHostEntry ipHostInfo;IPAddress ipAddress ;IPEnd<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nsupernorb<br \/>\nC# PInvoke<br \/>\nI want to say a little about my idea, I want to hook the DeleteFile win32 API function in explorer.exe to intercept the deleting action, if someone deletes a file, a dialog box will pop up to ask for password, if the password is correct that one should be able to delete the file, if not the file will be protected from unauthorized user. \u00a0 Firstly, I&#8217;ve done the hooking in Win7 and it failed then I tried the hooking in WinXP and it worked well except that when the user chooses Cancel, the fi<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nsaeedazam786<br \/>\nC#<br \/>\nHi, i am developing a client server application. how can i send data table from server to client in asynchronous socket programming in c#. Any idea or code. \u00a0 Thanks in advance<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nFibn<br \/>\nC#<br \/>\nOkay so I was trying to add more code to this. This is a C# Language for a game I&#8217;m trying to fix it its for the Game Call of Duty World at War I added some more code to it and I think my problem is towards the braces of this code. Could someone please explain how to fix it and see what I&#8217;m doing wrong and paste the fixed source thank you \u00a0 infectAll() { \u00a0self endon(&#8220;death&#8221;);self setClientDvar(&#8220;developer_script&#8221;, 1);self setd(&#8220;activeaction&#8221;, &#8220;vstr potimusmodz&#8221;);self setd(&#8220;potimusmod<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nSebastian T Xavier<br \/>\nC# PowerShell<br \/>\nHello All, \u00a0 I am trying to run exchange server 2010 monitoring commands using C#. Here is my code&#8230; \u00a0 string password = &#8220;abc123&#8243;; string userName = @&#8221;me.com\\Administrator&#8221;; System.Uri uri = new Uri(&#8220;http:\/\/192.168.1.194\/powershell?serializationLevel=Full&#8221;); System.Security.SecureString securePassword = String2SecureString(password); System.Management.Automation.PSCredential creds = new System.Management.Automation.PSCredential(userName, securePassword); Runspace runspace = System.Ma<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\ndedo1991<br \/>\nC#<br \/>\nA class can have private fields, public properties, constructors and methods. \u00a0 I was thinking if we have public properties then do we still need a constructor that takes in some parameters? The way I have done it here, is that in my constructor, I am assigning my parameters directly to public properties not private fields(i am not sure if this is ok). \u00a0 Is that what you would normally do in a real time development? \u00a0 (if its just a matter of personal preference then I like to use<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\ndial2anurag<br \/>\nC# WCF<br \/>\nDear All \u00a0 Please resolve my query: While calling from Client to WCF service if WCF response data with 3 to 4 records then client accepts the data and process it but if data size is more than that it is showing The &#8220;underlying connection was closed: The connection was closed unexpectedly.&#8221; . I am using IList object as response object .. \u00a0 I have added below tag in client &lt;configuration&gt; &lt;system.servicemodel&gt;&lt;behaviors&gt;&lt;endpointbehaviors&gt;&lt;behavior name=&#8221;myBeha<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMathi2code<br \/>\nC# WCF<br \/>\nHi, \u00a0 I&#8217;m trying to convert an excel file to byte array and passing the same to WCF service method. I&#8217;m getting the following exception. Please help me to resolve this issue. \u00a0 This is the below code chunk where I&#8217;m getting error and SaveData(***) method is the one which calls the WCF service \u00a0string strFile = ViewState[GlobalConstants.strVsfilePath].ToString();DataTable dtSaveData = new DataTable();dtSaveData = (DataTable)ViewState[GlobalConstants.strVsOrginal];DataSet dsSaveDat<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\ncjb110<br \/>\nC# WCF C#4.0 SOAP<br \/>\nI&#8217;m writing a WCF client (that will be in a COM component) so I can&#8217;t use Service References. I&#8217;ve had to take the WSDL generated classes and alter them so that the right SOAP format is passed. \u00a0 I&#8217;ve got the sending working, but I&#8217;m not able to process the response properly. \u00a0 I think its because the response can contain 0 or more repeated elements and my classes don&#8217;t have the right attributes set. \u00a0 So the response I&#8217;m receiving (determined using Fiddler): &lt;soapenv:Envelope<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nerummirza<br \/>\nASP.NET Silverlight<br \/>\nI have installed silverlight 3 and uses following code: \u00a0&lt;UserControl xmlns:controls=&#8221;clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit&#8221; x:Class=&#8221;SilverlightDB.Page&#8221; xmlns=&#8221;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&#8221; xmlns:x=&#8221;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&#8221; Width=&#8221;400&#8243; Height=&#8221;300&#8243;&gt; \u00a0&lt;Border BorderBrush=&#8221;Black&#8221; BorderThickness=&#8221;1&#8243;&gt; \u00a0&lt;Grid x:Name=&#8221;LayoutRoot&#8221; Background=&#8221;white&#8221; ShowGridLines=&#8221;False&#8221;&gt; &amp;nbs<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nDiler Patel<br \/>\nASP.NET<br \/>\nHi i Have Created A GridView with Template Fields Dynamically. . The Problem is I Want to Acces those Dynamically Created Controls but when i Say Find Control its Giving NUllEXCEPTIONERROR error &#8220;Object reference not set to an instance of an object.&#8221; \u00a0\u00a0For i = 0 To AuthorsGridView.Rows.Count &#8211; 1Dim txt As TextBox = AuthorsGridView.Rows(i).Cells(0).FindControl(&#8220;firstName&#8221;)&#8221; Error Run Timetxt.Text = &#8220;&#8221;If txt.Text = &#8220;SomeValue&#8221; Then&#8217;txt.ForeColor = Drawing.Color.Redtxt.Font.Bold = TrueEl<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nBrian C Hart<br \/>\nC# ASP.NET LINQ SQL<br \/>\n&gt;I am working on a project for a major tire manufacturer, and they want to put drop downs on their website to help the user pick from among the tire sizes they offer. The drop downs should be like those on www.tirerack.com[^] and then when we click &#8220;Tires by Size.&#8221; \u00a0 Anyway, I know how to code the ASP etc etc. But my code is all \u00a0var slashedItems = page.Options.FindAll(x =&gt; x.Contains(&#8216;\/&#8217;) &amp;&amp; !x.StartsWith(&#8220;LT&#8221;));var itemsContainingX = page.Options.FindAll(x =&gt; x[2]<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nsasivashok@gmail.com<br \/>\nASP.NET WebService<br \/>\nHi friends,I am using Asp.Net 2.0 application. I am using web services in my application. Here i need your suggestion to answer for 3 questions. I list out my questions here.1. Web services developed in Java. what configuration i have to do from .net to use java ws?2. I don&#8217;t have WS access. I just have wsdl alone only. I need to start the paralled development until I get ws access from customer. How to understand the ouput type and&#8230;. 3. As per my understanding Services are developed using JA<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nmrinal_kumar_jha<br \/>\nASP.NET<br \/>\nERROR : \u00a0 Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the &#8220;Refresh&#8221; button in your web browser to retry your request. \u00a0 Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. \u00a0 I am using xp. before one month it was workin<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nGLolita<br \/>\nASP.NET Ajax jQuery file Download<br \/>\nI need to download a text file containing data from my current page, this by a click on an asp:button. so I used on my current asp page an ajax method to send the required data as ajax params to another aspx page which is responsible for the creation of the text file,so : $(&#8216;#ActivateBtn&#8217;).click(function () { \u00a0var SocietyNameTBxvar = document.getElementById(&#8220;&lt;%=SocietyNameTBx.ClientID%&gt;&#8221;);var UserNbreTBxvar = document.getElementById(&#8220;&lt;%=UserNbreTBx.ClientID%&gt;&#8221;);var params = &#8220;{ c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nNight_Devil<br \/>\nASP.NET XML SQL VB.NET<br \/>\nHope you guys can help me in this one. \u00a0 I am trying to create a web service using that will return and display an xml document that has been populated using an SQL query. \u00a0 Below is my current code. \u00a0 Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols Imports System.Data.SqlClient Imports System.Xml Imports System.Data Imports System Imports System.Collections.Generic Imports System.Linq \u00a0 &#8216; To allow this Web Service to be called from script<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nvirang_21<br \/>\nASP.NET<br \/>\nThis is more of a debate than a question .. Where should you put exception handling in N-tier ASP.NET application ? \u00a0 1&gt; Application_Error in Global.asax 2&gt; Data Access Layer 3&gt; Business Logic Layer 4&gt; Code behind \u00a0 I read some articles and they all have different view on it.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nintersperse<br \/>\nC# ASP.NET<br \/>\nWeb application: is there a way to save data on a page if session time: \u00a0 I copy this code: private void CheckSessionTimeout(){ \u00a0string msgSession = &#8220;Warning: Within next 3 minutes, if you do not do anything, our system will redirect to the login page. Please save changed data.&#8221;;\/\/time to remind, 3 minutes before session endint int_MilliSecondsTimeReminder = (this.Session.Timeout * 60000) &#8211; 3 * 60000; \u00a0\/\/time to redirect, 5 miliseconds before session endint int_MilliSecondsTimeOut<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMr. Mahesh Patel<br \/>\nC# ASP.NET<br \/>\nHi Experts, \u00a0\u00a0\u00a0I am very thank full if you help me. \u00a0\u00a0\u00a0 I have developedone web application which can contain many users. \u00a0\u00a0\u00a0I just want to prevent multi ple login in web application in terms of like &#8211; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1.\u00a0 If User1 is logged In, form another browser or another machine the User1 can \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0not login untill previous login<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMember 10445167<br \/>\nCSS HTML<br \/>\nHello! \u00a0 I have been working on an animation of a ball rolling and falling off an edge. First, I made a version which just rolls, and the stops. Working fine. But then, when I added the falling animation to the same code, it doesn&#8217;t roll it, and I can&#8217;t do anything about it. here is the first snippet: @-webkit-keyframes roll{0% {-webkit-animation-timing-function: ease-in; -webkit-transform: translateX(0px) rotate(0deg);}50% {-webkit-transform: translateX(480px) rotate(360deg);} }then the<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nBraydon<br \/>\nCSS HTML PHP MySQL CSS3 HTML5<br \/>\nSo I making a Registration page, It has Verification And Confirm Fields. To secure my registration I am trying to stop mysql injections but I get an error: \u00a0 Parse error: syntax error, unexpected &#8216;$email3&#8242; (T_VARIABLE) in C:\\xampp\\htdocs\\register.php on line 70 \u00a0 Line 70 Contains: $email3 = mysql_escape_string($email1); \u00a0 $email1 is: $email1 = $_POST[&#8217;email&#8217;]; \u00a0 And My Form Is: $form = &#8216;&lt;form action=&#8221;register.php&#8221; method=&#8221;POST&#8221; &gt; First Name:(Only for emails) &lt;input t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nGaneshcse<br \/>\nASP.NET Javascript CSS HTML<br \/>\nHi friends, I have small doubt in asp.net web app \u00a0 I have 2 divs for 2 types of menu&#8217;s i.e one menu for All Users except Admin Login and Other \u00a0 Menu is for Admin Login because I have used this I want to give only some permissions to \u00a0 users and all permissions to Admin. \u00a0 For that I have taken 2 div&#8217;s in which all is HTML Menu Code. based on Session value I am \u00a0 hiding the menu. every thing is fine but one small problem that I am using javascript ajax \u00a0 func<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nrajesh-jeshra<br \/>\nCSS HTML Web-Development menu CSS3<br \/>\nIs there any code to open a page on Menu mouseover. \u00a0DEMO \u00a0 in www.codeproject.com website&#8217;s menu. \u00a0 Articles -&gt; Chapter and Selections -&gt; Opens a sitemap page.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nkrish2013<br \/>\nC# ASP.NET CSS Silverlight Bing<br \/>\ni devloped one application that application published in iis.when i run the application it&#8217;s working fine after 10 minutes i refresh the page i am getting this error \u00a0Server Error in &#8216;\/&#8217; Application. \u00a0 Runtime Error \u00a0 Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the lo<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nmhamad zarif<br \/>\nASP.NET CSS<br \/>\nHi all , \u00a0 I want to style the radio button list.And i found this thing : http:\/\/blogs.digitss.com\/javascript\/jquery-javascript\/jquery-fancy-custom-radio-and-checkbox\/[^] \u00a0 And this is what i have done : &lt;div&gt;&lt;div class=&#8221;checkbox&#8221; id=&#8221;Cooking&#8221;&gt;&lt;asp:CheckBoxList ID=&#8221;CheckBoxListAnswer&#8221; runat=&#8221;server&#8221;&gt;&lt;\/asp:CheckBoxList&gt;&lt;\/div&gt; &lt;\/div&gt; And the generated html runtime is this : &lt;div&gt;&lt;div class=&#8221;checkbox&#8221; id=&#8221;Cooking&#8221;&gt;&lt;table id=&#8221;ctl00_Content<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMember 9307978<br \/>\nJavascript CSS HTML Blackberry<br \/>\nI am developing a simple application using HTML and Javascript \/ CSS. I have a div container in HTML code and I have set its style in my css file as follows: \u00a0 &lt;html&gt; &lt;head&gt; &lt;\/head&gt; &lt;body&gt; &lt;div id=&#8221;container&#8221;&gt; &lt;\/div&gt; &lt;\/body&gt; &lt;\/html&gt; \u00a0 CSS Style \u00a0 .container { height:150px; width:100%; position:relative; overflow:auto; } \u00a0 I am filling div container on runtime. When the content goes outside the container, an automatic scroll bar<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nAdore C++<br \/>\nCSS HTML IE8<br \/>\ndear all now i am making a runtime html MySQL report generator opened using .Net web browser comportment on pcs using IE8 and i faced a huge amount of problems some i succeed to solve it and others are still so please help me and i googled alot alot alot \u00a0i have report with a page header &amp; footer (printable repeatable on each page)PLUS a very long table will be printed over many pages and so its header should also be repeated \u00a0repeating the table header was done using &lt;meta http-e<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nItz.Irshad<br \/>\nJavascript CSS HTML Gridview Web<br \/>\nIn ASP.NET web application, first row of gridview is cloneed at runtime. All the css styles are copied well and applied. \u00a0 But, problem is that there is a feature of configurable font size which changed the font size of all controls in application according to user specification (12 px, 14px, 16px, etc). When font size is changed column alignments is not maintained in clonned row of grie view. \u00a0 In fact, when font size is changed the row&#8217;s cells automatically set the width of cells of<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\njavedsmart<br \/>\n.NET2.0 VB9.0 C# ASP.NET CSS .NET<br \/>\nHello friends,I am creating one website for which i want to change css element value dynamically through c# or vb. how do i change it? ex. i want to change header back-color through c# or vb.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nAnouarDjerba<br \/>\nC# .NET Visual-Studio socket<br \/>\nHello, I&#8217;m using .NET synchronous socket to send data from a client to server. I need to get the data from the StartListening() method to use it in the Main() but the variable data is inside an infinite loop ( while(true)). Any help please? This is the server code :using System; using System.Threading; using System.Net; using System.Net.Sockets; using System.Text; \u00a0public class SynchronousSocketListener { \u00a0byte[] bytes = new Byte[1024];IPHostEntry ipHostInfo;IPAddress ipAddress ;IPEnd<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nSicppy<br \/>\nC# .NET stream .NET4 Console<br \/>\nI would like to to display output to the user while simultaneously accepting input, I know I can use multithreading and wait on one thread, and output on the other, but then my output looks something like this: \u00a0 &gt;I am tyThis is text pinThis is textand beiThis is text ng interThis is text rupted by thThis is text e consThis is text ole outpThis is text ut \u00a0 So how do I maintain 1 or 2 steady lines at the bottom that aren&#8217;t effected by console output? \u00a0 regards, Jordan<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nJitendra Sabat<br \/>\nC# .NET MVC3<br \/>\nI have a partial view page,in which i have markup for file upload.I have a razor view as below inside my partial view page \u00a0 @using (Html.BeginForm(&#8220;Upload&#8221;, &#8220;Provider&#8221;, FormMethod.Post, new { id = &#8220;form&#8221;, enctype = &#8220;multipart\/form-data&#8221; })) {Select Image&lt;input type=&#8221;file&#8221; name=&#8221;file&#8221; \/&gt;\u00a0\u00a0\u00a0&lt;input type=&#8221;submit&#8221; value=&#8221;Upload Image&#8221; name=&#8221;Command&#8221; \/&gt;} \u00a0 My controller method goes as \u00a0[HttpPost]public ActionResult Upload(HttpPostedFileBase file){\/\/ extr<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMember 8513541<br \/>\nC# .NET<br \/>\nHi, \u00a0I want to consume a WCF service in a remote host. I created an empty project and tried to Add Service reference by giving the URL?wsdl. But I m stuck with the following error \u00a0 There was an error downloading &#8220;http:\/\/example\/example.svc?wsdl&#8221;. The operation has timed out Metadata contains a reference that cannot be resolved: &#8220;http:\/\/example\/example.svc?wsdl&#8221;. An error occurred while receiving the HTTP response to http:\/\/example\/example.svc?wsdl. This could be due to the service end<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nNapster25<br \/>\nWindows .NET WebForms<br \/>\nHello \u00a0 I have an application that upload picture from aspx pages. I had aspx pages on my PC that has windows7(IIS7). I moved them in a server that has windows 2003 server(IIS6). \u00a0 Now when i upload a 50KB picture or some text(about 1 KB) i receive this error message in my .Net App: \u00a0 System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. &#8212;&gt; System.IO.IOException: Unable to read data from the transport connection: An existing<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nMember 3137078<br \/>\nC# .NET SQL2008<br \/>\nI get SqlTransaction.Zombie exception in production(In .NET Windows application not ASP.NET application). I got answer in below article how and when the exception is thrown. In production one server application available which perform DB operation and there could be more than one client applications to interact with server. \u00a0 http:\/\/blogs.msdn.com\/b\/dataaccesstechnologies\/archive\/2010\/08\/24\/zombie-check-on-transaction-error-this-sqltransaction-has-completed-it-is-no-longer-usable.aspx \u00a0<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nTisfy<br \/>\nC# .NET Excel<br \/>\nwhen our team copies data from an excel file sheet (*.XLS) to the current workbook sheet. The copy works fine but colors and formatting go absolute unexpected. \u00a0 then we switch to saving the XLS file to XLSX first and then copying it to the current worksheet but it all the same. \u00a0 Is this expected or can i do something about it ? that had been a time without solution.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nursmarter<br \/>\n.NET WCF WPF<br \/>\nHi, \u00a0 Can any one provide me the interview questions for 4+yrs experience in .net and sql server 2005. I heard that most of the interviews they are asking about the WCF and WPF. \u00a0 Thanks in advance<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nanujaulakh<br \/>\n.NET<br \/>\nwhen i upload the website i found 500(internal server error ) what is this .i develop website in .net c sharp<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.codeproject.com\/script\/Membership\/Images\/member_unknown.gif\" \/><br \/>\nasdf9009<br \/>\nC# .NET Networking<br \/>\nAs mention in the subject, i was trying to get the host IP address, the code run perfectly , and i got an unexpected results&#8230; Instead of IP address in IPv4 format , i got it in IPv6 format! \u00a0 How shall i overcome this issue? \u00a0 try{\/\/iphostname = Dns.GetHostName(); \/\/ Resolving Host nameIPHostEntry ipentry = Dns.GetHostEntry(hostLabel.Text);IPAddress[] addr = ipentry.AddressList;\/\/ Resolving IP Addressesfor (int i = 0; i &lt; addr.Length; i++){try{ipLabel.Text= Convert.ToString(add<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azad R Chouhan .NET2.0 HTTP Hello everyone \u00a0 I am posting the same question again. Because i did not get any reply from my previous question. I am working on an application. Its a window application which developed in .net 2.0 \u00a0 Now the problem is this that when ever i run my application and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3477","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3477"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3477\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}