5,346 Posted Topics
Re: I don't think your work is [b]wpf/b] related. Please take a look at this article - [URL="http://www.c-sharpcorner.com/UploadFile/prathore/TabControl01292009003152AM/TabControl.aspx"]http://www.c-sharpcorner.com/UploadFile/prathore/TabControl01292009003152AM/TabControl.aspx[/URL] | |
Re: Use [b]System.Diagnostics.Process[/b] class. You may find [b]StandardInput[/b] and [b]StandardOutput[/b] methods. | |
Re: Good suggestion, Indeed. The [B]'Read Me' [/B]thread has great value and adding some sticky threads (as suggested by Peter) to the Java web development will helps the community. | |
Re: Please check your stored-procedue. [code] Public Function UpdateDap(ByVal ScanLog As Integer, ByVal WFID As Integer) As String Dim myOdbcConnection As OdbcConnection Dim myOdbcCommand As OdbcCommand Dim ra As Integer myOdbcConnection = New OdbcConnection() If WFID <> -1 Then Try myOdbcConnection.Open() myOdbcCommand = New OdbcCommand("sp_set_ew_workflowid", myOdbcConnection) myOdbcCommand.CommandType = CommandType.StoredProcedure myOdbcCommand.Parameters.AddWithValue("@transId", ScanLog) … | |
Re: mnewsome, [b]Beginning Object-Oriented Programming with VB 2005[/b]: From Novice to Professional by Apress is a very good book. Actually had it sitting right here on my desk when I saw this question. You may be able to find a more up to date edition. | |
Re: LoginView control displays the appropriate content template for a given user, based on the user's authentication status and role membership. Read this article - [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.loginview.aspx"]http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.loginview.aspx[/URL] | |
Re: Use Crystal or Microsoft Report writer tool. | |
Re: [code] ListView1.View = View.Details ListView1.HideSelection = False ListView1.FullRowSelect = True Dim lCount As Integer ListView1.Columns.Add("No", 100) For lCount = 1 To 5 ListView1.Items.Add(lCount.ToString) Next If ListView1.Items.Count > 0 Then ListView1.Items(0).Selected = True End If [/code] | |
Re: Handle [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellclick.aspx"]CellClick[/URL] event. | |
Re: Verify data type of fields. [code] sql = "update Tbl_Pat_Registration set Pat_name='" & Trim(txt_name.Text) & "', pat_id='" & Trim(Txt_id.Text) & "' where id='" & id & "'" [/code] Note: Non-numeric fields (date, text) must be surrounded with single quotes. Use [b]Parameterised query[/b] instead of forming sql string. [code] cmd.CommandText="Update TABLE … | |
Re: Turbo C++, Visual C++ are [URL="http://en.wikipedia.org/wiki/List_of_compilers"]C++ compilers[/URL]. I think you will get more ideas from this article - [URL="http://en.wikipedia.org/wiki/Substitution_cipher"]http://en.wikipedia.org/wiki/Substitution_cipher[/URL]. | |
Re: In order to write against an external component/control, your project must first contain a reference to it. | |
Re: Set [b]FormBorderStyle[/b] [code] Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None [/code] | |
Re: Read the pages of online book - [URL="http://books.google.com/books?id=aL3P3eJdiREC&pg=PA59&lpg=PA59&dq=c%2B%2B%2Bfile%2Block%2Bwindows&source=bl&ots=SRnwwluNIn&sig=LnWMJOo-RWUKuErSuKiNTL87nls&hl=en&ei=%5FawJSputOJ%5FwswOQzo3XCA&sa=X&oi=book%5Fresult&ct=result&resnum=8#v=onepage&q=&f=false"]Secure programming cookbook for C and C++ [/URL]. | |
Re: [URL="http://msdn.microsoft.com/en-us/library/9yb8xew9.aspx"]IEnumerable[/URL], which supports a simple iteration over a collection of a specified type. [code] protected int GetSpecifiedIndexByName<T>(T collection, string itemName) { int count = 0; foreach (MyElement claim in collection as IEnumerable<MyElement>){ if (itemName.Equals(claim.Name)){ return count; } count++; } return count; } [/code] | |
Re: Use [b]CompareValidator[/b] validation control. (set the value for properties - Operator=DataTypeCheck and Type=DateTime) | |
Re: Take a look at this MSDN article - [URL="http://msdn.microsoft.com/en-us/library/ms971481.aspx"]http://msdn.microsoft.com/en-us/library/ms971481.aspx[/URL] | |
Re: Here is an article from MSDN - [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartverb.aspx"]WebPartVerb Class[/URL] [QUOTE]Provides an interactive user interface (UI) element that enables users to perform actions on a Web Parts page.[/QUOTE] | |
Re: ASP.NET is an extended class library of .net framework. You may use same set of ADO.NET classes you used in c#. | |
Re: Yes, there are number of ways. Take a look at this tutorial - [URL="http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET3.htm"]http://livedocs.adobe.com/flashremoting/mx/Using_Flash_Remoting_MX/usingFRNET3.htm[/URL] and a very good book [URL="http://www.springerlink.com/content/q6h742g3h45046m4/"]Two-way ASP.NET/Flash Communication[/URL] | |
Re: Take a look at the book - Thinking in java [URL="http://www.codeguru.com/java/tij/tij0018.shtml"]http://www.codeguru.com/java/tij/tij0018.shtml[/URL] | |
Re: Take a look at this article - [URL="http://msdn.microsoft.com/en-us/library/w67sdsex.aspx"]http://msdn.microsoft.com/en-us/library/w67sdsex.aspx[/URL] [code] ... var q = from c in db.TableName select c.Column1 comboBox1.DataSource = q.ToList() ... [/code] | |
Re: Read this [URL="http://wvware.sourceforge.net/caolan/index.html"]wmf[/URL] documentation. | |
Re: Please verify your code. Use bb code-tags to post source code. Public Class Form1 Inherits System.Windows.Forms.Form Dim DBConnection As SqlConnection() Dim DBCommand As SqlCommand Dim DBReader As SqlDataReader Dim SQLString As String Private Sub form1_load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load DBConnection = New SqlConnection() DBCommand = … | |
![]() | Re: Take a look at this article - [URL="http://www.codeproject.com/KB/cpp/custompanel.aspx?msg=1333352"]http://www.codeproject.com/KB/cpp/custompanel.aspx?msg=1333352[/URL] |
Re: If your are working with asp.net web application then it is easy and fast in asp.net using httpmodule. Read this article - [URL="http://www.hanselman.com/blog/AnIPAddressBlockingHttpModuleForASPNETIn9Minutes.aspx"]http://www.hanselman.com/blog/AnIPAddressBlockingHttpModuleForASPNETIn9Minutes.aspx[/URL] [URL="http://msdn.microsoft.com/en-us/library/zec9k340(VS.85).aspx"]Extending ASP.NET Processing with HTTP Modules[/URL] | |
Re: How much are you grateful if I send complete code? First of all, your question must be moved... Post your problems in ASP.NET forum. | |
Re: Use directory functions - [URL="http://us2.php.net/manual/en/function.readdir.php"]http://us2.php.net/manual/en/function.readdir.php[/URL] [code] <?php $dirsource = "D:/files/images"; $dirdest = "D:/files/dest"; recursive_copy($dirsource, $dirdest); function recursive_copy($dirsource, $dirdest) { // recursive function to copy all subdirectories and contents: if(is_dir($dirsource))$dir_handle=opendir($dirsource); $dirname = substr($dirsource,strrpos($dirsource,"/")+1); mkdir($dirdest."/".$dirname, 0750); while($file=readdir($dir_handle)) { if($file!="." && $file!="..") { if(!is_dir($dirsource."/".$file)) copy ($dirsource."/".$file, $dirdest."/".$dirname."/".$file); else { $dirdest1 = $dirdest."/".$dirname; recursive_copy($dirsource."/".$file, … | |
Re: Try it, [code] template<class T> T my_vector<T>::show_vector(unsigned int siz){ if(siz!=0){ show_vector(siz-1); } cout<<numbers[siz-1]<<"\n"; return 0; } [/code] | |
Re: Close the current file and reopen it or use [URL="http://www.cplusplus.com/reference/iostream/istream/seekg/"]seekg[/URL] method. | |
Re: Use [URL="http://www.cplusplus.com/reference/clibrary/cmath/fmod/"]fmod[/URL] - (<cmath> header file). [code] .... lon=fmod(lon1-dlon +pi,2*pi )-pi; ... [/code] | |
Re: Take a look at this FAQ - [URL="http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/83c31ac8-4946-49be-8a34-c7a7592fb906/"]http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/83c31ac8-4946-49be-8a34-c7a7592fb906/[/URL] | |
Re: @gretty: I have never seen this before class Y : public X. What does that mean? [b]Reusability[/b] is important feature of object-oriented programming. C++ strongly supports the concept of reusability. The C++ classes can be reused in two ways: [u][b]Creating an object[/b][/u] Once a class has been created and tested, … | |
Re: Read - [URL="http://msdn.microsoft.com/en-us/library/system.security.cryptography.tripledes.aspx"]http://msdn.microsoft.com/en-us/library/system.security.cryptography.tripledes.aspx[/URL] Here is a sample, [code] Dim ts As New TripleDESCryptoServiceProvider() Dim trans As ICryptoTransform Dim plainText As String = "Hello" Dim bArry() As Byte = System.Text.Encoding.UTF8.GetBytes(plainText) Dim eArry() As Byte trans = ts.CreateEncryptor eArry = trans.TransformFinalBlock(bArry, 0, bArry.Length) Dim EncText As String = System.Convert.ToBase64String(eArry) Console.WriteLine(EncText) 'Decrypt eArry … | |
| |
Re: Take a look at [URL="http://www.asp.net/"]http://www.asp.net/[/URL] (Microsoft portal site for the ASP.NET development community) | |
Re: Your code has some bugs. Have a look, 1. Variable [b]var xmlhttp;[/b] must be placed outside the function. 2. Callback method, [b]xmlhttp.onreadystatechange=XLNAME;[/b] [code] <html> <head> <title></title> </head> <body bgcolor="#008000"> <centre> ENTER THE WORLD </centre> <script type="text/javascript"> var xmlhttp; function ajaxFunction1(){ if (window.XMLHttpRequest){ // code for IE7+, Firefox, Chrome, Opera, Safari … | |
Re: krajad, You can't export a function from a .NET dll. This is not supported. If you need to expose your .NET objects to non-.NET languages, the your best bet is to expose your classes via COM. Take a look at : 1. [URL="http://www.dotnet247.com/247reference/a.aspx?u=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vcconMixedDLLLoadingProblem.asp"]http://www.dotnet247.com/247reference/a.aspx?u=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vcconMixedDLLLoadingProblem.asp[/URL] [URL="http://tom-shelton.net/?p=40"]http://tom-shelton.net/?p=40[/URL] | |
Re: [code] Imports System.Net.Mail Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ..... End Sub End Class [/code] | |
Re: Use [b]Using ... End Using[/B] [code] Dim file As String = MapPath("~/Test.txt") Using vcf = System.IO.File.AppendText(file) vcf.WriteLine("Hi") vcf.Flush() vcf.Close() End Using System.IO.File.Delete(file) [/code] | |
Re: Write Response headers, [code] Response.Clear(); Response.ClearHeaders(); Response.AddHeader("Pragma", "public"); Response.AddHeader("Expires", "0"); Response.AddHeader("Content-Type", "application/word"); Response.AddHeader("Content-Disposition", "inline; filename=sample.doc"); Response.Write("<table><tr><td><h1>No</h1></td></tr></table>"); Response.Flush(); Response.End(); [/code] | |
Re: [b][URL="http://msdn.microsoft.com/en-us/library/x6c1kb0s(VS.71).aspx"]XSD[/URL][/b] tool. The XML Schema Definition tool generates XML schema or common language runtime classes from XDR, XML, and XSD files, or from classes in a runtime assembly. To read XML data into the object, use the [URL="http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.deserialize(VS.71).aspx"]http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.deserialize(VS.71).aspx[/URL] | |
Re: Rows and Cells collection of DataGridView control. [CODE=C#] // First Row and first column DataGridView1.Rows[0].Cells[0].Value DataGridView1.Rows[0].Cells[1].Value // 2nd column ... [/CODE] | |
Re: You have to use [b]Template Field[/b]. Read MSDN document - [URL="http://msdn.microsoft.com/en-us/library/ms228046.aspx"]Creating a Custom Column in a GridView Web Server Control [/URL] | |
Re: It's a sticky footer. [code] <html> <head> <style> * {margin: 0; padding: 0} html, body, #wrap {height: 100%} body > #wrap {height: auto; min-height: 100%} #main {padding-bottom: 100px} /* must be same height as the footer */ #footer {position: relative; margin-top: -100px; /* negative value of footer height */ height: … | |
Re: Merovingian, Can you be more specific? Show us your code if any. | |
Re: Missing typename of argument in method definition, [code] int stringClass::wordCount(string line){ ..... //(n+1) = total; // <---------------Remove this .... } [/code] | |
Re: I think here is the best answer - [URL="http://p2p.wrox.com/xslt/76405-xslt-header-footer-word.html"]http://p2p.wrox.com/xslt/76405-xslt-header-footer-word.html[/URL] | |
Re: Create user-control. Take a look at [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.usercontrol.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.forms.usercontrol.aspx[/URL] | |
Re: Resolve the entity reference issue - Use [b]&[/b] instead of [b]&[/b]. |
The End.