Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: multiple web.config file in on application Pin
Peace ON28-May-10 2:03
Peace ON28-May-10 2:03 
AnswerRe: multiple web.config file in on application Pin
Jamil Hallal28-May-10 3:37
professionalJamil Hallal28-May-10 3:37 
QuestionReturn List<> from user control & bind to parent page grid. Pin
zeego28-May-10 1:07
zeego28-May-10 1:07 
AnswerRe: Return List from user control & bind to parent page grid. Pin
Peace ON28-May-10 1:22
Peace ON28-May-10 1:22 
GeneralRe: Return List from user control & bind to parent page grid. [modified] Pin
zeego28-May-10 1:31
zeego28-May-10 1:31 
Questionmake website url like www.websitename.com/username Pin
sumit703428-May-10 0:54
sumit703428-May-10 0:54 
AnswerRe: make website url like www.websitename.com/username Pin
Peace ON28-May-10 1:24
Peace ON28-May-10 1:24 
Questionwhy it gives an error in crystal report? Pin
hi_everybody28-May-10 0:34
hi_everybody28-May-10 0:34 
hi to all,

i am new in asp.net,

i want to create parameterised crystal report. i did it i create parameter "Empid " using "Parameter Fields"

then i want to show the report on click event of button so code is as follows,

<br />
Protected Sub btnShow_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnShow.Click   <br />
  Dim ConnInfo As New ConnectionInfo   <br />
  With ConnInfo   <br />
    .ServerName = ".sqlexpress"  <br />
    .DatabaseName = "Northwind"  <br />
    .UserID = "sa"  <br />
    .Password = ""  <br />
End With  <br />
    <br />
  Me.CrystalReportViewer1.ParameterFieldInfo.Clear()   <br />
  If Me.txtEmployeeID.Text.Trim.Length > 0 Then  <br />
    Me.CrystalReportViewer1.ReportSource = Server.MapPath("SampleParam1.rpt")   <br />
    Dim ParamFields As ParameterFields = Me.CrystalReportViewer1.ParameterFieldInfo   <br />
    Dim p_EmpID As New ParameterField   <br />
    p_EmpID.Name = "p_EmployeeID"  <br />
    Dim p_EmpID_Value As New ParameterDiscreteValue   <br />
    p_EmpID_Value.Value = Me.txtEmployeeID.Text   <br />
    p_EmpID.CurrentValues.Add(p_EmpID_Value)   <br />
    ParamFields.Add(p_EmpID)   <br />
  Else  <br />
    Me.CrystalReportViewer1.ReportSource = Server.MapPath("SampleRpt01.rpt")   <br />
  End If  <br />
    <br />
  For Each cnInfo As TableLogOnInfo In Me.CrystalReportViewer1.LogOnInfo   <br />
    cnInfo.ConnectionInfo = ConnInfo   <br />
  Next  <br />
    Me.CrystalReportViewer1.RefreshReport()   <br />
End Sub  <br />

i am using sql2000, but after the clicking on button it will show me an error ,"Object Reference not set to an instance of an object".

why i gives me error?

is the servername is wrong? what the name should i provide? my database is on another computer and i am accessing it through networking

the name of the computer is "RS1" so should i give the servername="RS1"

if i debug the code , CrystalReportViewer1.LogOnInfo have count=0.

what is error?
Questionhow can i send parameters by post method in asp.net? Pin
buffering8327-May-10 20:51
buffering8327-May-10 20:51 
AnswerRe: how can i send parameters by post method in asp.net? Pin
Sandeep Mewara27-May-10 21:33
mveSandeep Mewara27-May-10 21:33 
AnswerRe: how can i send parameters by post method in asp.net? Pin
Peace ON27-May-10 21:37
Peace ON27-May-10 21:37 
QuestionWeb applications impacted due to upgradation of IE 6 to IE 8 Pin
Rajiya27-May-10 18:40
Rajiya27-May-10 18:40 
AnswerRe: Web applications impacted due to upgradation of IE 6 to IE 8 Pin
Anurag Gandhi27-May-10 20:26
professionalAnurag Gandhi27-May-10 20:26 
AnswerRe: Web applications impacted due to upgradation of IE 6 to IE 8 Pin
Peace ON28-May-10 0:42
Peace ON28-May-10 0:42 
Questiontransfer datas from a table into an Object [modified] Pin
nstk27-May-10 10:56
nstk27-May-10 10:56 
AnswerRe: transfer datas from a table into an Onject Pin
Not Active27-May-10 14:38
mentorNot Active27-May-10 14:38 
QuestionJavascript calendar control for first time not openning in Mozilla Pin
attalurisubbu27-May-10 5:09
attalurisubbu27-May-10 5:09 
QuestionHow to get configuration file's path Pin
Eric Vonjacson27-May-10 2:07
Eric Vonjacson27-May-10 2:07 
AnswerRe: How to get configuration file's path Pin
Andreas X27-May-10 2:16
professionalAndreas X27-May-10 2:16 
QuestionWhere is the appropriate lifecycle step we can introduce JavaScript execution in the page Pin
yadlaprasad27-May-10 1:57
yadlaprasad27-May-10 1:57 
QuestionGridView Edit Pin
Member 322226427-May-10 1:08
Member 322226427-May-10 1:08 
AnswerRe: GridView Edit Pin
Sandeep Mewara27-May-10 1:35
mveSandeep Mewara27-May-10 1:35 
AnswerRe: GridView Edit Pin
Andreas X27-May-10 2:06
professionalAndreas X27-May-10 2:06 
QuestionSimple DropdownList with javascript Ajax Pin
garfield18526-May-10 22:06
garfield18526-May-10 22:06 
Questionhow to remove browse text and decrease the size browse button of fileupload control in asp.net Pin
developerit26-May-10 22:02
developerit26-May-10 22:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.