.NET2.0,VB9.0,C#,ASP.NET,CSS,.NETRelated issues-Collection of common programming errors


  • Azad R Chouhan
    .NET2.0 HTTP
    Hello everyone   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   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  The underlying connection was closed: An unexpected error occurred on

  • theitmueller
    .NET2.0 Remoting
    Dear all,   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 “SetData()”.   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

  • hina_abbas123

  • Mohammed Hameed
    .NET2.0 C#1.0 C#2.0 .NET3.0 C#3.0
    How to enumerate through properties of textbox in Wpf (using C#)?   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.   I think I can achieve the same by using XamlWriter but I wanted to check if there is any other suitable alternate.   I hope that my question is clear and to the point. But if it has created any confusions please let me know.  

  • pinky_sood
    .NET2.0
    using 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;   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

  • Jimmyco
    .NET2.0
    * In English … 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’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

  • RenrewD
    .NET2.0 C# Interop .NET4
    Environment: ———— Microsoft Visual Studio 2010 .NET 4, .NET 2 external libraries (.dll’s) based on .NET 4   .NET 4 DLL “communication.dll”: ——————————- 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

  • Naik Nagraj
    .NET2.0
    Hi,   I have paging user control.   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 }   If I add user control at compile time it works   <Custom:Pager ID=”Cust

  • sathya.spidy
    .NET2.0 C#2.0 C# ASP.NET Video
    Hi friends,  I 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.   Here is the code   <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”Default2.aspx.cs” Inherits=”Default2″ %>    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”

  • jaspreetsidhu7750
    .NET2.0 Javascript Masterpage
    hello all,   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.   “Microsoft JScript runtime error: ‘document.getElementById(…)’ is null or not an object”   how should i put the javascript in content page.   please help as soon as possible.   than

  • Odiagbe justus
    VB8.0 VB9.0 VB10
    could 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  Posted by OP as an answer: “this is the warning that comes up varia

  • mindserve
    VB9.0 C# VB.NET
    I need to know how to transfer bound data from a datagridview to an unbound datagridview. The data transfer would happen on a click event of the datagridview rows so that I can choose what data to transfer over. I am then totaling up some numbers in a cell to a textbox. I can do this with a textbox but then I have to use a delimiter and not sure how to do it with a listbox. Is is possible to copy data over at runtime this way?

  • Polarfuze
    VB8.0 VB9.0 VB VBScript VB10 Access
    After 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   How do i refresh the data grid view to show the newly inserted record without exiting the program

  • javedsmart
    .NET2.0 VB9.0 C# ASP.NET CSS .NET
    Hello 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.

  • ShweBo
    VB9.0
    Attn: DevExpress Components users Sir,    I 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’s dropdown view between Dates – Months – 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

  • rspercy65
    VB9.0 VS2008 Windows VB10 VS2010
    How Would I Check if a program has or needs a “runas admin” 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.

  • C.CoderCreator
    VB9.0
    this is my code   Dim b As Integer = 100 Dim i As Integer Dim u As Integer   Dim h As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load  While i < 10000i = i + 1  h = h + 1Dim pic As New PictureBoxIf i = b Thenu = u + 1b = b + 100h = 0End If  pic.BackColor = Color.Redpic.Size = New Size(1, 1)pic.Location = New Point(h, u)Me.Controls.Add(pic)End While   End Sub  its meant to create picureboxes in ma

  • pravin29
    VB9.0 C
    Setup – 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).   Condition – No communication through hardware and PC just connect USB cable to har

  • MarqW
    VB9.0 .NET VB.NET
    I’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 ‘this’  Dim custParts As CustomerPartNumbers = New CustomerPartNumbers() ‘ Inherits ComponentModel.BindingList(Of CustomerPartNumber), which is just another data class Dim queryString As String = “Wallpaper” custParts.Load(“DummyCustomer”) If Not custParts Is Nothing ThenDim qS As String = queryStringDim cp As Customer

  • Auric Consulting, LLC
    C# USB IO Asynchronous
    In 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.   Instead what I’m seeing, is that it gets “stuck” inside the BeginRead call. I can break, and the program counter is on the BeginRead line, but if I continue, it won’t go a

  • AnouarDjerba
    C# .NET Visual-Studio socket
    Hello, I’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;  public class SynchronousSocketListener {  byte[] bytes = new Byte[1024];IPHostEntry ipHostInfo;IPAddress ipAddress ;IPEnd

  • supernorb
    C# PInvoke
    I 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.   Firstly, I’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

  • saeedazam786
    C#
    Hi, 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.   Thanks in advance

  • Fibn
    C#
    Okay so I was trying to add more code to this. This is a C# Language for a game I’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’m doing wrong and paste the fixed source thank you   infectAll() {  self endon(“death”);self setClientDvar(“developer_script”, 1);self setd(“activeaction”, “vstr potimusmodz”);self setd(“potimusmod

  • Sebastian T Xavier
    C# PowerShell
    Hello All,   I am trying to run exchange server 2010 monitoring commands using C#. Here is my code…   string password = “abc123″; string userName = @”me.com\Administrator”; System.Uri uri = new Uri(“http://192.168.1.194/powershell?serializationLevel=Full”); System.Security.SecureString securePassword = String2SecureString(password); System.Management.Automation.PSCredential creds = new System.Management.Automation.PSCredential(userName, securePassword); Runspace runspace = System.Ma

  • dedo1991
    C#
    A class can have private fields, public properties, constructors and methods.   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).   Is that what you would normally do in a real time development?   (if its just a matter of personal preference then I like to use

  • dial2anurag
    C# WCF
    Dear All   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 “underlying connection was closed: The connection was closed unexpectedly.” . I am using IList object as response object ..   I have added below tag in client <configuration> <system.servicemodel><behaviors><endpointbehaviors><behavior name=”myBeha

  • Mathi2code
    C# WCF
    Hi,   I’m trying to convert an excel file to byte array and passing the same to WCF service method. I’m getting the following exception. Please help me to resolve this issue.   This is the below code chunk where I’m getting error and SaveData(***) method is the one which calls the WCF service  string strFile = ViewState[GlobalConstants.strVsfilePath].ToString();DataTable dtSaveData = new DataTable();dtSaveData = (DataTable)ViewState[GlobalConstants.strVsOrginal];DataSet dsSaveDat

  • cjb110
    C# WCF C#4.0 SOAP
    I’m writing a WCF client (that will be in a COM component) so I can’t use Service References. I’ve had to take the WSDL generated classes and alter them so that the right SOAP format is passed.   I’ve got the sending working, but I’m not able to process the response properly.   I think its because the response can contain 0 or more repeated elements and my classes don’t have the right attributes set.   So the response I’m receiving (determined using Fiddler): <soapenv:Envelope

  • erummirza
    ASP.NET Silverlight
    I have installed silverlight 3 and uses following code:  <UserControl xmlns:controls=”clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit” x:Class=”SilverlightDB.Page” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Width=”400″ Height=”300″>  <Border BorderBrush=”Black” BorderThickness=”1″>  <Grid x:Name=”LayoutRoot” Background=”white” ShowGridLines=”False”> &nbs

  • Diler Patel
    ASP.NET
    Hi 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 “Object reference not set to an instance of an object.”   For i = 0 To AuthorsGridView.Rows.Count – 1Dim txt As TextBox = AuthorsGridView.Rows(i).Cells(0).FindControl(“firstName”)” Error Run Timetxt.Text = “”If txt.Text = “SomeValue” Then’txt.ForeColor = Drawing.Color.Redtxt.Font.Bold = TrueEl

  • Brian C Hart
    C# ASP.NET LINQ SQL
    >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 “Tires by Size.”   Anyway, I know how to code the ASP etc etc. But my code is all  var slashedItems = page.Options.FindAll(x => x.Contains(‘/’) && !x.StartsWith(“LT”));var itemsContainingX = page.Options.FindAll(x => x[2]

  • [email protected]
    ASP.NET WebService
    Hi 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’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…. 3. As per my understanding Services are developed using JA

  • mrinal_kumar_jha
    ASP.NET
    ERROR :   Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the “Refresh” button in your web browser to retry your request.   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.   I am using xp. before one month it was workin

  • GLolita
    ASP.NET Ajax jQuery file Download
    I 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 : $(‘#ActivateBtn’).click(function () {  var SocietyNameTBxvar = document.getElementById(“<%=SocietyNameTBx.ClientID%>”);var UserNbreTBxvar = document.getElementById(“<%=UserNbreTBx.ClientID%>”);var params = “{ c

  • Night_Devil
    ASP.NET XML SQL VB.NET
    Hope you guys can help me in this one.   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.   Below is my current code.   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   ‘ To allow this Web Service to be called from script

  • virang_21
    ASP.NET
    This is more of a debate than a question .. Where should you put exception handling in N-tier ASP.NET application ?   1> Application_Error in Global.asax 2> Data Access Layer 3> Business Logic Layer 4> Code behind   I read some articles and they all have different view on it.

  • intersperse
    C# ASP.NET
    Web application: is there a way to save data on a page if session time:   I copy this code: private void CheckSessionTimeout(){  string msgSession = “Warning: Within next 3 minutes, if you do not do anything, our system will redirect to the login page. Please save changed data.”;//time to remind, 3 minutes before session endint int_MilliSecondsTimeReminder = (this.Session.Timeout * 60000) – 3 * 60000;  //time to redirect, 5 miliseconds before session endint int_MilliSecondsTimeOut

  • Mr. Mahesh Patel
    C# ASP.NET
    Hi Experts,    I am very thank full if you help me.     I have developedone web application which can contain many users.    I just want to prevent multi ple login in web application in terms of like –           1.  If User1 is logged In, form another browser or another machine the User1 can              not login untill previous login

  • Member 10445167
    CSS HTML
    Hello!   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’t roll it, and I can’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

  • Braydon
    CSS HTML PHP MySQL CSS3 HTML5
    So 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:   Parse error: syntax error, unexpected ‘$email3′ (T_VARIABLE) in C:\xampp\htdocs\register.php on line 70   Line 70 Contains: $email3 = mysql_escape_string($email1);   $email1 is: $email1 = $_POST[’email’];   And My Form Is: $form = ‘<form action=”register.php” method=”POST” > First Name:(Only for emails) <input t

  • Ganeshcse
    ASP.NET Javascript CSS HTML
    Hi friends, I have small doubt in asp.net web app   I have 2 divs for 2 types of menu’s i.e one menu for All Users except Admin Login and Other   Menu is for Admin Login because I have used this I want to give only some permissions to   users and all permissions to Admin.   For that I have taken 2 div’s in which all is HTML Menu Code. based on Session value I am   hiding the menu. every thing is fine but one small problem that I am using javascript ajax   func

  • rajesh-jeshra
    CSS HTML Web-Development menu CSS3
    Is there any code to open a page on Menu mouseover.  DEMO   in www.codeproject.com website’s menu.   Articles -> Chapter and Selections -> Opens a sitemap page.

  • krish2013
    C# ASP.NET CSS Silverlight Bing
    i devloped one application that application published in iis.when i run the application it’s working fine after 10 minutes i refresh the page i am getting this error  Server Error in ‘/’ Application.   Runtime Error   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

  • mhamad zarif
    ASP.NET CSS
    Hi all ,   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/[^]   And this is what i have done : <div><div class=”checkbox” id=”Cooking”><asp:CheckBoxList ID=”CheckBoxListAnswer” runat=”server”></asp:CheckBoxList></div> </div> And the generated html runtime is this : <div><div class=”checkbox” id=”Cooking”><table id=”ctl00_Content

  • Member 9307978
    Javascript CSS HTML Blackberry
    I 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:   <html> <head> </head> <body> <div id=”container”> </div> </body> </html>   CSS Style   .container { height:150px; width:100%; position:relative; overflow:auto; }   I am filling div container on runtime. When the content goes outside the container, an automatic scroll bar

  • Adore C++
    CSS HTML IE8
    dear 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  i have report with a page header & 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  repeating the table header was done using <meta http-e

  • Itz.Irshad
    Javascript CSS HTML Gridview Web
    In ASP.NET web application, first row of gridview is cloneed at runtime. All the css styles are copied well and applied.   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.   In fact, when font size is changed the row’s cells automatically set the width of cells of

  • javedsmart
    .NET2.0 VB9.0 C# ASP.NET CSS .NET
    Hello 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.

  • AnouarDjerba
    C# .NET Visual-Studio socket
    Hello, I’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;  public class SynchronousSocketListener {  byte[] bytes = new Byte[1024];IPHostEntry ipHostInfo;IPAddress ipAddress ;IPEnd

  • Sicppy
    C# .NET stream .NET4 Console
    I 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:   >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   So how do I maintain 1 or 2 steady lines at the bottom that aren’t effected by console output?   regards, Jordan

  • Jitendra Sabat
    C# .NET MVC3
    I 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   @using (Html.BeginForm(“Upload”, “Provider”, FormMethod.Post, new { id = “form”, enctype = “multipart/form-data” })) {Select Image<input type=”file” name=”file” />   <input type=”submit” value=”Upload Image” name=”Command” />}   My controller method goes as  [HttpPost]public ActionResult Upload(HttpPostedFileBase file){// extr

  • Member 8513541
    C# .NET
    Hi,  I 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   There was an error downloading “http://example/example.svc?wsdl”. The operation has timed out Metadata contains a reference that cannot be resolved: “http://example/example.svc?wsdl”. An error occurred while receiving the HTTP response to http://example/example.svc?wsdl. This could be due to the service end

  • Napster25
    Windows .NET WebForms
    Hello   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).   Now when i upload a 50KB picture or some text(about 1 KB) i receive this error message in my .Net App:   System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. —> System.IO.IOException: Unable to read data from the transport connection: An existing

  • Member 3137078
    C# .NET SQL2008
    I 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.   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  

  • Tisfy
    C# .NET Excel
    when 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.   then we switch to saving the XLS file to XLSX first and then copying it to the current worksheet but it all the same.   Is this expected or can i do something about it ? that had been a time without solution.

  • ursmarter
    .NET WCF WPF
    Hi,   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.   Thanks in advance

  • anujaulakh
    .NET
    when i upload the website i found 500(internal server error ) what is this .i develop website in .net c sharp

  • asdf9009
    C# .NET Networking
    As mention in the subject, i was trying to get the host IP address, the code run perfectly , and i got an unexpected results… Instead of IP address in IPv4 format , i got it in IPv6 format!   How shall i overcome this issue?   try{//iphostname = Dns.GetHostName(); // Resolving Host nameIPHostEntry ipentry = Dns.GetHostEntry(hostLabel.Text);IPAddress[] addr = ipentry.AddressList;// Resolving IP Addressesfor (int i = 0; i < addr.Length; i++){try{ipLabel.Text= Convert.ToString(add

Web site is in building