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
S

Shivendra Pandey

@Shivendra Pandey
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Rendering standard HTML in TextArea
    S Shivendra Pandey

    textEditor.document.designMode="on";

    ASP.NET html help

  • dropdown
    S Shivendra Pandey

    ListItem item=DropDownList1.Items[DropDownList1.SelectedIndex]; DropDownList1.Items.Remove(item); DropDownList1.Items.Insert(0, item);

    ASP.NET database help tutorial question

  • Counter Website C#
    S Shivendra Pandey

    create table in database CREATE TABLE [ApplicationCount1] ( [HitID] [bigint] IDENTITY (1, 1) NOT NULL , [AddedDate] [datetime] NULL , [HitCount] [bigint] NULL , ) ON [PRIMARY] GO Create Procedure to Add Hit alter procedure usp_Hit1 as declare @CurrentID bigint declare @AddedDate datetime set @CurrentID=0 set @AddedDate=CONVERT(char(12), GETDATE(), 101) Select @CurrentID=HitID from ApplicationCount1 where Addeddate=@AddedDate if @CurrentID>0 update ApplicationCount1 Set HitCount=HitCount+1 where HitId=@CurrentID else insert into ApplicationCount1 values(CONVERT(char(12), GETDATE(), 101),1) Now on Session Start Call This Procedure now in database u have datewise count now u can use it to display number of hit for any day

    ASP.NET csharp asp-net com help

  • Credit card processing (.cgi)
    S Shivendra Pandey

    \\Create A Class using System; using System.Collections.Generic; using System.Text; namespace Shivam { public class RemotePost { private System.Collections.Specialized.NameValueCollection Inputs = new System.Collections.Specialized.NameValueCollection(); public string Url = ""; public string Method = "post"; public string FormName = "form1"; public void Add(string name, string value) { Inputs.Add(name, value); } public void Post() { System.Web.HttpContext.Current.Response.Clear(); System.Web.HttpContext.Current.Response.Write("<html><head>"); System.Web.HttpContext.Current.Response.Write(string.Format("</head><body onload=\"document.{0}.submit()\">", FormName)); System.Web.HttpContext.Current.Response.Write(string.Format("<form name=\"{0}\" method=\"{1}\" action=\"{2}\" >", FormName, Method, Url)); for (int i = 0; i < Inputs.Keys.Count; i++) { System.Web.HttpContext.Current.Response.Write(string.Format("<input name=\"{0}\" type=\"hidden\" value=\"{1}\">", Inputs.Keys[i], Inputs[Inputs.Keys[i]])); } System.Web.HttpContext.Current.Response.Write("</form>"); System.Web.HttpContext.Current.Response.Write("</body></html>"); System.Web.HttpContext.Current.Response.End(); } } } //Class End \\On Button Click Write Following Line of Code \\Change Key Value as well as payment provider Based on ur field RemotePost myremotepost = new RemotePost(); myremotepost.Url = "https://www.myvirtualmerchant.com/VirtualMerchant/process.do"; myremotepost.Add("ssl_amount",ssl_amount.Value); myremotepost.Add("ssl_merchant_id",ssl_merchant_id.Value); myremotepost.Add("ssl_pin",ssl_pin.Value); myremotepost.Add("ssl_show_form",ssl_show_form.Value); myremotepost.Add("ssl_transaction_type", ssl_transaction_type.Value); myremotepost.Add("ssl_result_format", ssl_result_format.Value); myremotepost.Add("ssl_receipt_decl_method", ssl_receipt_decl_method.Value); myremotepost.Add("ssl_receipt_decl_get_url", ssl_receipt_decl_get_url.Value); myremotepost.Add("ssl_receipt_apprvl_method", ssl_receipt_apprvl_method.Value); myremotepost.Add("ssl_receipt_apprvl_get_url", ssl_receipt_apprvl_get_url.Value); myremotepost.Post();

    ASP.NET sales tutorial

  • One database Connection [modified]
    S Shivendra Pandey

    my application is Port Listener(window service) a lot of client will send data to this port in order to handle it i have used mutithreading. After receiving data from port i have to save it in database now i m using classical way to save in database like open connection save data and then close connection and dispose connection. as we know every time opening and closing connection take time . Because within a second 30 or more than 30 client is sending data to this port to this port every time opening closing connection is not idea. so please suggest how to use one connection for all request first time only it open connection and from next time my app use the open connection.

    modified on Tuesday, December 22, 2009 8:05 AM

    C# database tutorial

  • Create an Insert SQL - Statement for insert a date
    S Shivendra Pandey

    the problem is format. if u simply want to store datatime do in in db side example Insert INTO table1 (Text,Datum) VALUES ("Info",getdate())

    C# database csharp tutorial help question

  • problem receiving data from
    S Shivendra Pandey

    i got assignment to write a program(Server) for port listner the client program is written in java. the client will send 69 byte that will be received by server and then processed. i have written a simple TCP listner progam in c# but it always read upto 52 bytes and next 17 bytes are always 0

    C# csharp java sysadmin help
  • Login

  • Don't have an account? Register

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