4,588 Topics
| |
I have one custom validator, one textbox & one button..I m checking the length of data entered in textbox. VB CODE [code] <asp:CustomValidator ID="CustomValidator1" runat="server" OnServerValidate="ValidateThis" ErrorMessage="The username must be 8" ControlToValidate="TextBox4"></asp:CustomValidator></td> [/code] [code] <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script … | |
I am getting this exception when I run my code in a C# Web Server Application, but if I copy the same code to a C# console application, it works fine. [code] System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. [/code] And help would be … | |
Hi, Is it possible to embed a java applet into C#? Like WITHOUT downloading it, as if the applet is included as a resource or something. I made the applet so I do have the source ofcourse, if that makes it any easier. Thanks! Also, Is it possible that I … | |
Hi all, Here is a beginner question I am working on a ASPX webpage where I have a ASP button that triggers a serie of event (C# code behind) that takes about 10 seconds to execute. I basicly want a Label to appear on the page just after the button_click … | |
Hi, I have SQL Server on a server. I need an applet, to appear within other peoples web sites that has read and update access to my database on my server. I would like it to be written in C# as the rest of the application is C# and I … | |
Hi, Im Kiran. Can any one help me with the C# code for denying access to the local drives?? when anyone try to access a drive ( thru cmd or double clicking the drive directly) it shud nt b allowed.. for that.. So hw can we do that programattically..??? Plz … | |
I have already studied C, and C++. I googled for the best programming languages. Somewhere I found c# also. I want to know that, what type of programming language is this. I heard that C is useful in writing operating systems, C++ in gaming and i also used it in … | |
i have a tag; XXX32353.mv i need to be able to change the mv to something else, and the number of characters to the left of the . is not always constant. therefore i need to cut from the right, as the .mv is always the same, what is the … | |
Hi all, here is a simple question. How would you get a C# STRING representing the current time in the following format: YYYY-DD-MM I am currently using DateTime.Now but that gives me something like this: 8/13/2009 12:57:47 PM So I want to 1) remove the houre (I need date only) … | |
Suppose I have classes A and B, which derives from A. Suppose I have a method that operates on collections of A's. I'd like to pass it a collection of B's. How can I do that? In other words: [code=C#] class A {} class B : A {} void doAStuff(List<A> … | |
I have an xml file that looks like this for example: <money> <bank id="1"> <name>Checking Account</name> <description>John Doe account</description> </bank> <bank id="2"> <name>Savings Account</name> <description>Bob Smith account</description> </bank> <bank > ..... </bank> </money> I need to parse through, and get the attribute value of <bank>, and the node value of … | |
Hi everyone! I have a program in C#, which doesn't resize and adjust the contents of the app-window when I maximize it. I know that in Java, one can use JFrame and this problem is eliminated. Is there an equivalent in C#? | |
i want to create the xml file and add insert and delete the node , caN YOU SUGGES ME TO THE CODE OR LINK TO HELP ME , | |
how to put the combobox in that gridview.when we select the combobox then display the another combobox values in that datagridview. data retrive from the database. i want the datagridview colums is: Sno ProductsName Items Quantity Total. ProductName is one combobox and Iems is another combobox.when we select the productname … | |
I'm trying to get a user input number from text box on my GUI, then there are some calculation for that number and display it later in the same text box. Number entered is supposed to have hyphens which are then stripped to check for validity of that ISBN number. … | |
I am new to C# guys, So please suggest free e-books links for c#-for console and form app too | |
Hi I Create service using C#.I use the coding part of test to create servicee.Once I start the service it gave me message saying "Myservice on local computer started and then stoped.Some services stop automaticaly if they have no work to do,for example ,the performance logs and alerts service" below … | |
Hi Everyone, how to download the file from the mailserver of all user and maitain in my testserver and database. thanks | |
how to capture keypress or keydown in textbox using asp.net with c#.net. can any one give me some help | |
I'm trying to Post to a site using WebClient in C# but it doesn't seem to Post the values at all I try posting two strings to a testform that I have set up on my localhost. In the PostBack of the page I update a label to say "Login … | |
Ive got a class which i want to use within a c# windows application, It sounds really simple but where do i put the code which creates the class object and the code that uses the class? Ive tried it in most parts of the code but after creating the … | |
Hi everyone, I am making a windows application in which I want that when user presses enter key while textBox1 has focus then an event is generated. I tried using following but it doesn't workout:- private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.GetHashCode() == Keys.Enter.GetHashCode()) MessageBox.Show("Enter key has been … | |
I need to convert a C# code into C++. I think I have almost done it except of one line of code wich is this line. First follows the correct C# version but how will that be converted to C++ in bold wich for the moment is wrong ? (C#) … | |
Hi, I'm compiling C# code to memory and running it from there, now what I want to do is pause, resume, stop that same code running in the memory. I'm using this currently to run the code: [CODE] private void compileRunToolStripMenuItem_Click(object sender, EventArgs e) { Thread runCode = new Thread(new … | |
Yes I'm quite noobish I've been learning C# by myself reading various material I can scrounge online but I've run into a small issue while trying to write a small program. I'm simply trying to use a menuitem as a toggle between various instructions. The basic idea is simply to … | |
Hi Guys I am using C# to make an app that will read an excel file, edit the data and then generate a graph for me using said data. The program works well, but when I open the graph in excel it is incredibly slow and sometimes crashes excel. I … | |
I am Trying to use the accesschek method for authentication in the azman but i always get this error message "Value does not fall within the expected range." Here is my code Anyone can help me? I am running this application in windows xp AzAuthorizationStore store = new AzAuthorizationStoreClass(); store.Initialize(0, … | |
Hey All! I have searched around on Google and have found nothing! I want to know how to make custom controls in C#. But customly designed. For example I don't want to use the custom c# 'Button', but design my own in Photoshop, and bring it in giving it all … | |
hello every one 'm quite new to c# i have bit idea abt assembly that , it can store the version information exe,dll info but how it's work & i have to make one pro. tha contain name,version info. abt it so how to beggin it pls provide ur valuable … | |
Hi All i m reading Xml file attchment in email using pop3. but i m getting extra char in xml after xml read. [code=xml]<FinalDraft DocumentType=3D=22Script=22 Template=3D=22No=22 Version=3D=221=22> <Content> <Paragraph Type=3D=22Shot=22> <Text>=E2=80=9Clighting is everything=E2=80=9D</T= ext> </Paragraph> </Content> </FinalDraft >[/code] like -- =22 and 3D <T=ext> pls help me and give me … |
The End.