Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

rizwan afsar

@rizwan afsar
About
Posts
20
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to use windows XP remote desktop services through .net application
    R rizwan afsar

    How to use windows XP remote desktop services through .net application Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com "A winner is not the one who never fails, But one who NEVER QUITS"

    C# csharp com collaboration tutorial

  • How to communicate Between Web And Desktop Application through remoting
    R rizwan afsar

    Can any one help me out how two application can communicate with each other one is web Application and other is Desktop Application. Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com "A winner is not the one who never fails, But one who NEVER QUITS"

    C# com collaboration help tutorial

  • Number of hits on the site
    R rizwan afsar

    keep that variable in session object ex Session["Counter"]=i.ToString(); Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com "A winner is not the one who never fails, But one who NEVER QUITS"

    ASP.NET csharp asp-net help

  • not refresh
    R rizwan afsar

    use the ISPostBack Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com "A winner is not the one who never fails, But one who NEVER QUITS"

    ASP.NET csharp asp-net question

  • ASP.NET session
    R rizwan afsar

    change the session timeout in the web.config file Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com "A winner is not the one who never fails, But one who NEVER QUITS"

    ASP.NET csharp asp-net windows-admin

  • Number of hits on the site
    R rizwan afsar

    Hi yuvraj Well to count number of hits. What you can do is that you can increment a counter in global.asax's protected void Session_Start(Object sender, EventArgs e) { i++; } this will give the number of hits on ur site Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com "A winner is not the one who never fails, But one who NEVER QUITS" Hope this help's you

    ASP.NET csharp asp-net help

  • How to work with Payment gateWay
    R rizwan afsar

    Hi All, I am new to this payment processing ways. Please send me some link or example code to understand how to work with payment gateway . Thanx in Advance

    ASP.NET tutorial

  • Pankaj
    R rizwan afsar

    Mr.Vasudevan Deepak Kumar so what are u up to!!!!!!!!!!!!!!!!! it s none of ur business to interfere in the matters if u are such a knowledgable person and have got a little litracey of technology then u would have found quite helpful things for your project if u are working on , rather cribbing on some foolish things

    Web Development security

  • Pankaj
    R rizwan afsar

    Dear Sushant Mathur i hope u know the ways to send mails to people can u please specify, if not plese do not get over-confident on your abilities.:mad: Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com "A winner is not the one who never fails, But one who NEVER QUITS"

    Web Development security

  • Pankaj
    R rizwan afsar

    1)appSettings add key="strCON" value="User ID=username; Data Source=Databasename; Password=Password" appSettings 2)add key="strCON" value="User ID=username; Data Source=Databasename; Password=Password" 3)add key="strCON" value="Provider=SQLOLEDB.1;data source='Computername';Persist Security Info=False;Password=Password;User ID=Userid;Initial Catalog=DataBaseName" /> 4)add key="strCON" value="Max Pool Size=75; Min Pool Size=5;Connect Timeout=30;packet size=4096;user id=Userid;pwd=Password;data source='Computername';Initial Catalog=DataBaseName" /> "A winner is not the one who never fails, But one who NEVER QUITS" -- modified at 7:06 Thursday 27th April, 2006

    Web Development security

  • For Rizwan Afsar
    R rizwan afsar

    DateTime Fdate =Convert.ToDateTime(dateText.Trim()); string TempDate1 = string.Format("{0:yyyy/MM/dd}", Fdate); Fdate =Convert.ToDateTime(TempDate1); Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com

    Web Development

  • For Pankaj Gupta
    R rizwan afsar

    TextBox1.text= Date from test box var test=Convert.ToDateTime(TextBox1).ToString("YYYY/MM/DD") Send me reply soon if it solve ur purpose or string Test=Convert.ToDateTime(todayDate).ToString("yyyy/MM/dd"); OR DateTime Fdate =Convert.ToDateTime(dateText.Trim()); string TempDate1 = string.Format("{0:yyyy/MM/dd}", Fdate); Fdate =Convert.ToDateTime(TempDate1); Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com -- modified at 3:48 Thursday 20th April, 2006

    Web Development com collaboration

  • XML file reading
    R rizwan afsar

    sample to read all the nodes of XML file string[] sb=new string[4]{"","","",""}; XmlDocument doc = CreateDoc(XmlFile); XmlNode root = doc.SelectSingleNode("FormatModule/Leads/Contents"); XmlNode root1; string fieldname; foreach(XmlNode node in root.ChildNodes) { if(root.NodeType != XmlNodeType.Comment) { string str=node.Name; switch(str) { case "Body1": root1=doc.SelectSingleNode("FormatModule/Leads/Contents/Body1"); foreach(XmlNode n in root1.ChildNodes) { if(n.NodeType != XmlNodeType.Comment) { XmlAttribute name = n.Attributes["type"]; if(name.InnerText=="text") { sb[0]+=n.InnerText.ToString()+"\n\n"+" "; } if(name.InnerText=="Field") { fieldname=n.Attributes["FieldName"].InnerText.Trim(); sb[0]+=DataLeads(id,fieldname); } } } break; return sb; } Hope u might be knowing how to creaate XML file Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com

    C# xml tutorial question

  • how to restrict entry in address bar of browser
    R rizwan afsar

    Please tell me how can i restrict user from entering a url in address bar directly to open a web page, Or even if he enters a url he will not be allowed to view that page Thanx in advance

    ASP.NET tutorial question

  • date formats
    R rizwan afsar

    private static void SetSelected(string Date) { string[] ResultList; Regex DateSplitter = new Regex("^\\d{4,4}\\/\\d{1,2}\\/\\d{1,2}$"); if(DateSplitter.IsMatch(Date)) { char divider = '/'; ResultList = Date.Split(divider); int SelectedYear = Int32.Parse(ResultList[0]); int SelectedMonth = Int32.Parse(ResultList[1]); int SelectedDay = Int32.Parse(ResultList[2]); int CompareDay=0; if(SelectedMonth<=12 ) { CompareDay=DateTime.DaysInMonth(SelectedYear,SelectedMonth); } else { Console.WriteLine("Invalid Date"); return ; } if(SelectedDay >CompareDay) { Console.WriteLine("Invalid Date"); return ; } else if(SelectedYear>=2100 || SelectedYear <= 1900 ) { Console.WriteLine("Invalid Date"); return ; } else { Console.WriteLine("Valid"); } } else { Console.WriteLine("InValid Date"); } }

    Site Bugs / Suggestions regex

  • How to make webservices as Statefull
    R rizwan afsar

    Try this one also http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63\_gci983935,00.html Amit Sood Associate Member, Technical Team IAP Company Ltd, Gurgaon

    Web Development tutorial

  • How to make webservices as Statefull
    R rizwan afsar

    add this to every method which u want to be with state in web services [ WebMethod(EnableSession=true) ] bye sexy Amit Sood Say thanx to me

    Web Development tutorial

  • using javascript confirmation box in gridview asp.net
    R rizwan afsar

    These are the steps you need to follow Step1:In your form example(form1.aspx.cs)put this code remember it soould be protected void protected void Imagebutton10_Click(object sender, System.Web.UI.ImageClickEventArgs e) { this.Page.RegisterStartupScript("SetConfirm", "window.Form1['DisplayConfirm'].value=true;"); this.Page.RegisterStartupScript("SetConfirm", "window.Form1['DisplayConfirm'].value=false;"); ImageButton Imagebutton=(ImageButton)sender; DataGridItem dgi=(DataGridItem)Imagebutton.Parent.Parent; ViewState["BookMarkID"]=this.dg_SearchCondition.Items[dgi.DataSetIndex].Cells[5].Text; } Step2:In HTML of your page Paste this code onclick="Imagebutton10_Click" runat="server" ImageUrl="image\delete.bmp"> Step3: Declear a java script function in your HTML function displayMessage() { if(window.Form1["DisplayConfirm"].value==true || window.Form1["DisplayConfirm"].value=="true") { if(confirm(" Do you want to delete?")==true) { window.Form1["Button3"].click(); } } Step4: Call this function on form body load onload="displayMessage();" step5:Take a button named "Button3" on ur page make it small so that it sould not be visible on page load. step6:Take HTML Hidden text box with name example on your page Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon -- modified at 7:59 Tuesday 4th April, 2006

    Web Development csharp javascript asp-net question

  • How to make webservices as Statefull
    R rizwan afsar

    Hi All Can any one tell How to make webservice as statefull Rizwan Afsar -- modified at 2:36 Wednesday 5th April, 2006

    Web Development tutorial

  • question enjoy
    R rizwan afsar

    C# Sharp Dotnet Interview Questions 1) The C# keyword ‘int’ maps to which .NET type? a.System.Int16 b.System.Int32 3.System.Int64 4.System.Int128 2) Which of these string definitions will prevent escaping on backslashes in C#? a.string s = #”n Test string”; b.string s = “’n Test string”; c.string s = @”n Test string”; d.string s = “n Test string”; 3) Which of these statements correctly declares a two-dimensional array in C#? a.int[,] myArray; b.int[][] myArray; c.int[2] myArray; d.System.Array[2] myArray; 4) If a method is marked as protected internal who can access it? a.Classes that are both in the same assembly and derived from the declaring class. b.Only methods that are in the same class as the method in question. c.Internal methods can be only be called using reflection. d.Classes within the same assembly, and classes derived from the declaring class. 5) What is boxing? a) Encapsulating an object in a value type. b) Encapsulating a copy of an object in a value type. c) Encapsulating a value type in an object. d) Encapsulating a copy of a value type in an object. 6) What compiler switch creates an xml file from the xml comments in the files in an assembly? a./text b./doc c./xml d./help 7) What is a satellite Assembly? a)A peripheral assembly designed to monitor permissions requests from an application. b)Any DLL file used by an EXE file. c)An assembly containing localized resources for another assembly. d)An assembly designed to alter the appearance or ‘skin’ of an application. 8) What is a delegate? a)A strongly typed function pointer. b)A light weight thread or process that can call a single method. c)A reference to an object in a different process. d)An inter-process message channel. 9) How does assembly versioning in .NET prevent DLL Hell? a)The runtime checks to see that only one version of an assembly is on the machine at any one time. b).NET allows assemblies to specify the name AND the version of any assemblies they need to run. c)The compiler offers compile time checking for backward compatibility. d)It doesn’t. 10) Which “Gang of Four” design pattern is shown below? public class A { private A instance; private A() { } public static A Instance { get { if ( A == null ) A = new A(); return instance; } } } a)Factory b)Abstract Factory c)Singleton d)Builder 11) In the NUnit t

    C# csharp question design data-structures regex
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups