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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

Darsh_3

@Darsh_3
About
Posts
7
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Crystel Report ..Change Database Location at runtime
    D Darsh_3

    Imports System.Data Imports System.Io Imports System.Data.OleDb Imports CrystalDecisions.Shared Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.CrystalReports.Engine.ReportDocument Imports CrystalDecisions.Web Partial Class Test_rpt Inherits System.Web.UI.Page Dim cn As New ConnectionInfo Dim con As New OleDbConnection Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\Website1\App_Data\Database_Name.mdb;Persist Security Info=True" Call showreport() End Sub Sub showreport() With cn .DatabaseName ="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\Website1\App_Data\Database_Name.mdb;Persist Security Info=True" or .DatabaseName ="Database_Name.mdb" End With Dim rpt As New ReportDocument rpt.Load(Server.MapPath("report_name.rpt")) Dim ParamFields As ParameterFields = Me.CrystalReportViewer1.ParameterFieldInfo() Dim ParamField As New ParameterField Dim ParamField_Value As New ParameterDiscreteValue ParamField.Name = "prj" ParamField_Value.Value = Session("prjnm") ParamField.CurrentValues.Add(ParamField_Value) rpt.ParameterFields("prj").CurrentValues.Add(ParamField_Value) ParamFields.Add(ParamField) ParamField = New ParameterField ParamField_Value = New ParameterDiscreteValue ParamField.Name = "dt" ParamField_Value.Value = Session("dt") ParamField.CurrentValues.Add(ParamField_Value) rpt.ParameterFields("dt").CurrentValues.Add(ParamField_Value) ParamFields.Add(ParamField) ParamField = New ParameterField ParamField_Value = New ParameterDiscreteValue ParamField.Name = "sno" ParamField_Value.Value = Session("maxsrno") ParamField.CurrentValues.Add(ParamField_Value) rpt.ParameterFields("sno").CurrentValues.Add(ParamField_Value) ParamFields.Add(ParamField) Me.CrystalReportViewer1.ParameterFieldInfo = ParamFields Me.CrystalReportViewer1.HasRefreshButton = False Me.CrystalReportViewer1.HasPageNavigationButtons = False Me.CrystalReportViewer1.HasGotoPageButton = False Me.CrystalReportViewer1.HasToggleGroupTreeButton = False For Each cnInfo As TableLogOnInfo In Me.CrystalReportViewer1.Log

    ASP.NET csharp asp-net database visual-studio sysadmin

  • Dates Problem
    D Darsh_3

    first check txt1 means the textbox having Date Value. if txt1.text="" then in query pass null keyword for that Date Field. i.e. here abc is the table with 2 columns frmdt(Date)& name(Text) insert into abc values(null,'"& txt2.text &"')

    ASP.NET help

  • Unable to get text from textbox
    D Darsh_3

    put your date textbox in UpdatePanel(Ajax Control) and button outside the UpdatePanel bcoz it will not work inside UpdatePanel. UpdatePanel will stop refreshing u r page.

    ASP.NET javascript help tutorial

  • Unable to get text from textbox
    D Darsh_3

    put the dropdown control in UpdatePanel of Ajax so it will not refresh u r page.But dont keep any button inside UpdatePanel it will not work

    ASP.NET javascript help tutorial

  • listbox values
    D Darsh_3

    u can take another listbox and bind it with previous listbox's datavaluefield. but u cant display both DataTextField & DataValueField in same ListBox

    ASP.NET database question

  • Question
    D Darsh_3

    copy and paste u r .pdf file in u r wesite folder and write on button_click event server.transfer("test.pdf") and if u have pasted u r document in a folder then server.transfer("folder_name\test.pdf")It will take the Path automatically upto your main website folder i.e. "C:\Inetpub\wwwroot\Website1\" (can open any kind of documents e.g.*.doc,*.csv,*.pdf,*.txt,*.xls,*.mdb,*.ppt,*.pps etc) it will directly open your file.

    modified on Friday, April 11, 2008 7:59 AM

    ASP.NET csharp question

  • Server application unavailable
    D Darsh_3

    Please check in IIS that u r Website is Stopped or Start. If u r having Oracle installed on u r machine then it will not start u r website so for that u have to manually stop all oracle services.and then go to IIS and right click on your virtual directory i.e your website and start, and if oracle is not installed then go to IIS and right click on your virtual directory i.e your website and start.

    ASP.NET help csharp sysadmin windows-admin question
  • Login

  • Don't have an account? Register

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