|
i want to display firstname or lastname or both (username) in inbox when i received mail. like gmail.com inbox.
this is very urgent
plz anyboby give solution
by
siva
dd
|
|
|
|
|
Hi Sandeep
I am having the xml file
<class>
and i want to add nodes <name>
eg
<class>
<name>test1
<name>test2
karan
|
|
|
|
|
Don't post new threads only reply the post
<l>Thanks and Regards
Sandeep
|
|
|
|
|
How can make a reminder messagebox with griview,buttons like "dismiss","remind me later" and others and also some textbox
nzibi
|
|
|
|
|
When i code an if statement in asp.net it doesn't execute the the statement properly, it always execute the else statement and sometimes it looses variables and declare the empty while they have values
nzibi
|
|
|
|
|
Paste your code snippet here
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
num is declared in the page_load function and set to 1
this if statement is inside a button_click
String name As String
if num = 1 then
name = DropDownList1.SelectedItem.Text
num = num + 1
else
name = name & ";" & DropDownList1.SelectedItem.Text
endif
nzibi
|
|
|
|
|
Are you checking Page.isPostBack or anything ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
You have declared the num in class but i think assigned value in Page load
after button click the page gets loaded again and num can't persist its value
Use session to store value of num or
add this in page load event
if(this.Page.IsPostBack)
a = 1;
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Session is not advisable use ViewState
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
how we fiend childnode id of tree in asp.net
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
|
thanks for reply
i have done my work:-
Dim Cnn As OleDbConnection
Dim Cmd As OleDbCommand
Dim Str As String = "Data Source=C:\Documents and Settings\f\My Documents\treetest.mdb;Provider=Microsoft.Jet.OLEDB.4.0"
Dim Str1 As String = "select placename from table1"
Cnn = New OleDbConnection(Str)
Cmd = New OleDbCommand(Str1, Cnn)
Cnn.Open()
Dim Dtr As OleDbDataReader = Cmd.ExecuteReader
While Dtr.Read
Dim NewNode As New TreeNode
NewNode.PopulateOnDemand = True
NewNode.Text = Dtr("Placename").ToString
NewNode.Value = Dtr("placename").ToString()
NewNode.NavigateUrl = "test.aspx?name=" & NewNode.Value
Me.TreeView1.Nodes(0).ChildNodes(0).ChildNodes(0).ChildNodes.Add(NewNode)
End While
Cnn.Close()
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
e.Node where e is the second argument of the event
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
How to call more than one report in a webfrom.
For single report i am calling like the below code
CrystalReportViewer1.ReportSource = Server.MapPath("HOReport\rptEmployee.rpt")(Single report)
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.DataBind()
Like above how to call more than one report???
What are the properties i have to give for the crystalreportviewer to display one after the another.
Thanls in advance
kissy
|
|
|
|
|
Add one more crystal report viewer and do the same
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
THnaks for ur reply but it is giving the recebt one report details only,not the first report details,I have tried like that also.
CrystalReportViewer1.ReportSource = Server.MapPath("HOReport\rptEmployee.rpt")
CrystalReportViewer1.ReportSource = Server.MapPath("HOReport\rptEmployeeGradation.rpt")
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.DataBind()
In this case it is displayin only rptEmployeegradation report details only.
To display both am i need to set any Crystalreportviewer propertied in between????
This is my problem while using two reports.
Thanks once again.Give me a solution.
kissy
|
|
|
|
|
No man,
It should be like this
CrystalReportViewer1.ReportSource = Server.MapPath("HOReport\rptEmployee.rpt")
CrystalReportViewer1.DisplayGroupTree = False
CrystalReportViewer1.DataBind()
CrystalReportViewer2.ReportSource = Server.MapPath("HOReport\rptEmployeeGradation.rpt")
CrystalReportViewer2.DisplayGroupTree = False
CrystalReportViewer2.DataBind()
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
From the toolbox i have placed two crystalreportviewers on my webform.
Then i have given the code like u suggested.
When i take two CrystalReportviewers data is overlapping (bcz,both the reports are dispalying at a time),and with a single viewer we can display only one report's data.
What i have to do???Please give me a solution.
kissy
|
|
|
|
|
put a table there and put these two viewers in two rows and try it out
OR
Anyway this is not the right way to do this.
What you have to do is, while creating crystal report, add two subreports and set the reports in each subreport.
and call thru only one crystal report viewer
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
I will try as u told,but is it possible to refresh the reports in frontend itself,While i am clicking on the refresh button which i have given as
CrystalReportViewer1.HasRefreshButton=true
and when i am clicking on it it is giving an error like
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Is it not possible to refresh the data when we are displaying the reports???
kissy
|
|
|
|
|
yes
CrystalReportViewer1.RefreshReport();
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
When i used the below code,
CrystalReportViewer1.RefreshReport()
It is giving the same Exception,Means in both the conditions it is giving same error.
I have checked both my code and dbconnection.
Why it is still arising same Exception.
Bcz the end user must able to refresh the data from frontend only.How to solve.
Thanks for ur responses once again.
kissy
|
|
|
|
|
provide your database info
//set the database loggon information.
//**Note that the third parameter is the DSN name
// and not the Database or System name
reportDocument.SetDatabaseLogon("pchitriv", "Windows2000",
"TestDB_DSN", "testDB", false);
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
Hello,
I think I am posting this question again but I'm quite frustrated as I haven't found any way around.
I have a databound datagrid in which New/Blank rows are added to this datagrid on a button click event. This button is outside the datagrid and not in the footer. The datagrid populates well and I can do the edit/update to the already created records. I recently had to add a new checkbox field to my data table. This chekcbox field is to be included in this datagrid. The chkbox works fine for previously created records but as soon as I hit the 'Add New Row' button I get the following error :
Exception Details: System.InvalidCastException: Conversion from type 'DBNull' to type 'Boolean' is not valid.
Source Error:
asp:checkbox id="cbcurrentdriver" runat="server" autopostback="true" enabled ="false" checked='<%# DataBinder.Eval(Container.DataItem,"currentdriver") %>' />
My code for adding a new/blank row (on button click event) is as below:
RefreshGrid()
Dim ds as DataSet = DataGrid.datasource
Dim blank as DataRow = ds.tables(0).NewRow()
ds.tables(0).Rows.insertAt(blank, ds.tables(0).Rows.Count)
DataGrid.EditItemIndex = ds.tables(0).Rows.Count-1
DataGrid.DataBind()
and my checkbox template column is as below:
asp:templatecolumn headertext="Current Driver?">
itemTemplate>
asp:checkbox id="cbcurrentdriver" runat="server" autopostback="true" enabled ="false" checked='<%# DataBinder.Eval(Container.DataItem,"currentdriver") %>' />
I really am clueless on this one. everything seems fine. Nulls are allowed on this field in my datatable.Please help!
Thanks.
-- modified at 23:58 Monday 26th February, 2007
Aartee.
...HE is watching Us All!
|
|
|
|