|
HI
can any one provide me the list of allowed html tags supported by crystal reports in visual studio 2008 ?, thankx in advance.
|
|
|
|
|
|
How to use HTML Tag in Crystal report.
already html tag is available in my database. i want to use that tag as work in HTML file.
|
|
|
|
|
i tried to load a HTML file using crystal report with the following content
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<td>column 1</td>
<td>column 2</td>
<td>column 3</td>
</tr>
<tr>
<td>value 1</td>
<td>value 2</td>
<td>value 3</td>
</tr>
<tr>
<td>value 1</td>
<td>value 2</td>
<td>value 3</td>
</tr>
</table>
but the content was shown without table formatting
How can i get in table format with cellpadding and cellspacing
pls help me
|
|
|
|
|
hi All
I have some global variable and function in cs file of a aspx page
it it possible to write c# code in aspx file to use that variable
................................
means all i need is how to write c# function and variable under a asp tag
|
|
|
|
|
Its confusing are you trying to say inline coding ?
pratik malviya wrote: means all i need is how to write c# function and variable under a asp tag
can you little bit elaborate the question ?
What are you trying to do ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
i want to use function which is written in aspx.cs file.
suppose i write a function "public string labeltext()" in aspx.cs file
now in aspx file i want to use that function to assign the text to label1
i heard that it is possible that we can use functions of aspx.cs file in aspx file by the help of <% %> i tried this but getting some error
plese any body can semd me an example of that on pratikmalviya@gmail.com
|
|
|
|
|
Label.Text="<%=labeltext()%>
or have string varaible in the class assign your function string value it
and put this string varaible in the aspx
string StringVarabile;
StringVarabile=labeltext();
Label.Text="<%=StringVarabile%>
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
I tried For Your Problem It's Working Fine Man, I think Problem with your codeing You just try this one by taking the new aspx Page. You just put the function in <% ExFunction() %>
Default2.aspx
************
]]>
<title>Untitled Page
<%
myfun();
%>
Default2.aspx.cs :
******************
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
public void myfun()
{
Response.Write("working");
}
}
|
|
|
|
|
try using like this
<%=myfunct()%>
T.Balaji
|
|
|
|
|
Hello all,
I've been searching and googling for hours now and im getting nowhere, some advice would be greatly appreciated
i have added linkbutton control dynamically to table cells for each vehicle reservation and implemented its event handler as well . i have to display reservation details inside formview control but when iam clicking on each linkbutton same record is displying inside formview on all linkbutton click .
can any body suggest me what i have to do for displaying related reservation record details inside formview on related linkbutton click .
Any Suggestion or help
best Regards
Rameez
|
|
|
|
|
This must be some logical error
Can you post your code ?
Might be you have dome someting wrong in the code implementation
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Thanks Sandeep for fast reply here is code kindly tell me where iam doing wrong
i have to display related reservation record inside formview on linkbutton click .
MyDataAdapter = New Data.SqlClient.SqlDataAdapter("select * from tablename WHERE vehicleName like '" & Current_vehicles & "')", MyConnection)
ds = New Data.DataSet()
MyDataAdapter.Fill(ds, "tablename")
Dim a As DateTime
Dim b As DateTime
Dim dt As Data.DataTable
Dim dr As Data.DataRow
dt = ds.Tables(0)
For Each dr In dt.Rows
a = (dr("StartDateTime").ToString())
Dim timeSpanDiff1 As TimeSpan = a.Subtract(start_display_datetime)
Dim mins1 As Integer = timeSpanDiff1.Hours * 60 + timeSpanDiff1.Minutes
start_cell_number = mins1 / 15
b = (dr("EndDateTime").ToString())
Dim timeSpanDiff2 As TimeSpan = b.Subtract(start_display_datetime)
Dim mins2 As Integer = timeSpanDiff2.Hours * 60 + timeSpanDiff2.Minutes
end_cell_number = mins2 / 15
For i = start_cell_number To end_cell_number
testarray(i) = (dr("User_Name").ToString())
Next
Next
Dim noOfTimes As Integer = 0
Dim CurrentName As String = Nothing
For d = 0 To 31
Dim tbcell As TableCell = New TableCell()
tbcell.Text = " "
If testarray(d) = Nothing Then
'No booking case
CurrentName = Nothing
tbcell.BackColor = Color.FromName("#FFFFFF")
Else
CurrentName = testarray(d)
Dim lnkbutton As LinkButton = New LinkButton()
lnkbutton.ID = "lnkbutton" & CurrentName.ToString()
lnkbutton.Text = CurrentName.ToString()
lnkbutton.PostBackUrl = ""
lnkbutton.ToolTip = "Click here "
AddHandler lnkbutton.Click, AddressOf OnClickLink
Dim j As Integer
For j = d To 31
If testarray(j) = CurrentName Then
'same name repeated
noOfTimes = noOfTimes + 1
Else
Response.Write(" Span of " + noOfTimes.ToString() + " " + CurrentName)
d = d + noOfTimes
Exit For
End If
Next
tbcell.Controls.Add(lnkbutton)
tbcell.BackColor = Color.FromName("#CCCCCC")
tbcell.ColumnSpan = noOfTimes
noOfTimes = 0
End If
trow.Cells.Add(tbcell)
Next
Table1.Rows.Add(trow)
Next
Here is event handler code :
Protected Sub OnClickLink(ByVal sender As Object, ByVal e As EventArgs)
FormView1.Visible = True
Dim myConnection As New SqlConnection("Server=localhost;Database=Reservation;uid=sa;pwd=xxxxx")
Dim ad As New SqlDataAdapter("SELECT * FROM name of table ", myConnection)
Dim ds As New DataSet()
ad.Fill(ds)
FormView1.DataSource = ds
FormView1.DataBind()
End Sub
Thanks and best regards
Rameez
|
|
|
|
|
How are you recognizing which link button has been clicked
rameez Raja wrote: Protected Sub OnClickLink(ByVal sender As Object, ByVal e As EventArgs) FormView1.Visible = True Dim myConnection As New SqlConnection("Server=localhost;Database=Reservation;uid=sa;pwd=xxxxx") Dim ad As New SqlDataAdapter("SELECT * FROM name of table ", myConnection) Dim ds As New DataSet() ad.Fill(ds) FormView1.DataSource = ds FormView1.DataBind() End Sub
Whenever you are going to click it will display same content.
Pass unique id, row id somwthing in the Link button command argument and take that value retriving data from server
Take a look how to pass command argument to Link button
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|
Hello..
I want to make a Geographical Information System, one of the function is searching a spot from the map. I want the system can search a spot from the map and it will automatically zoom to that spot..Is it possible to make that function?Is anybody ever made a function like that.May I get the copy of the function .Thank you for the answer..
|
|
|
|
|
Hello all,
I've been searching and googling for hours now and im getting nowhere, some advice would be greatly appreciated
i have added linkbutton control dynamically to table cells for each vehicle reservation startdatetime and enddatetime .and implemented its event handler as well . i have to display reservation details inside formview control
but when iam clicking on each linkbutton same record is displying inside formview on all linkbutton click .
can any body suggest me what i have to do for displaying related reservation record details inside formview on related linkbutton click .
Here is my code
MyDataAdapter = New Data.SqlClient.SqlDataAdapter("select * from tablename WHERE vehicleName like '" & Current_vehicles & "')", MyConnection)
ds = New Data.DataSet()
MyDataAdapter.Fill(ds, "tablename")
Dim a As DateTime
Dim b As DateTime
Dim dt As Data.DataTable
Dim dr As Data.DataRow
dt = ds.Tables(0)
For Each dr In dt.Rows
a = (dr("StartDateTime").ToString())
Dim timeSpanDiff1 As TimeSpan = a.Subtract(start_display_datetime)
Dim mins1 As Integer = timeSpanDiff1.Hours * 60 + timeSpanDiff1.Minutes
start_cell_number = mins1 / 15
b = (dr("EndDateTime").ToString())
Dim timeSpanDiff2 As TimeSpan = b.Subtract(start_display_datetime)
Dim mins2 As Integer = timeSpanDiff2.Hours * 60 + timeSpanDiff2.Minutes
end_cell_number = mins2 / 15
For i = start_cell_number To end_cell_number
testarray(i) = (dr("User_Name").ToString())
Next
Next
Dim noOfTimes As Integer = 0
Dim CurrentName As String = Nothing
For d = 0 To 31
Dim tbcell As TableCell = New TableCell()
tbcell.Text = " "
If testarray(d) = Nothing Then
'No booking case
CurrentName = Nothing
tbcell.BackColor = Color.FromName("#FFFFFF")
Else
CurrentName = testarray(d)
Dim lnkbutton As LinkButton = New LinkButton()
lnkbutton.ID = "lnkbutton" & CurrentName.ToString()
lnkbutton.Text = CurrentName.ToString()
lnkbutton.PostBackUrl = ""
lnkbutton.ToolTip = "Click here "
AddHandler lnkbutton.Click, AddressOf OnClickLink
Dim j As Integer
For j = d To 31
If testarray(j) = CurrentName Then
'same name repeated
noOfTimes = noOfTimes + 1
Else
d = d + noOfTimes
Exit For
End If
Next
tbcell.Controls.Add(lnkbutton)
tbcell.BackColor = Color.FromName("#CCCCCC")
tbcell.ColumnSpan = noOfTimes
noOfTimes = 0
End If
trow.Cells.Add(tbcell)
Next
Table1.Rows.Add(trow)
Next
Here is event handler code :
Protected Sub OnClickLink(ByVal sender As Object, ByVal e As EventArgs)
FormView1.Visible = True
Dim myConnection As New SqlConnection("Server=localhost;Database=Reservation;uid=sa;pwd=xxxxx")
Dim ad As New SqlDataAdapter("SELECT * FROM name of table ", myConnection)
Dim ds As New DataSet()
ad.Fill(ds)
FormView1.DataSource = ds
FormView1.DataBind()
End Sub
Any code suggestions or pointers to articles would be aprreciated.
Best Regards
Rameez
|
|
|
|
|
Hi All,
I have a button on page.
when user click this button it will call a server side function, which check some data in database. then there will be confirmation message like "Record already exist, Do you want to continue?". if user click (OK)Yes then it will process further in database using another server side function. otherwise it will not process further.
Please tell me how can I do this using javascript ?
I need to show confirmation message.
Thanks.
Regards,
Sunil
modified on Monday, September 8, 2008 4:27 AM
|
|
|
|
|
hi,
give this code in the button click event
onclientclick = "return confirm('Record already ....continue?);"
it will popup a window asking confirmation
if u click yes then 1ly it will invoke server side validation
if u click no it will b in the same page and no event will get fired.
T.Balaji
|
|
|
|
|
You can use ajax to call server side function by javascript.
|
|
|
|
|
hi i need a tab and i have it
but can someone help me how to make it add tabs to itself just as like as igoogle
tnx
Nika Asgari
|
|
|
|
|
which type of tab you are talking about? can you be please be more specfic ? then can we help you.
|
|
|
|
|
Be specific about tabs dear!
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
Hi,
Can abybody help me in converting the following VB statement to c#
Dim buffer(streamObj.Length) As Byte.
Thanks in Advance
|
|
|
|
|
Try this
byte[] buffer = new byte[streamObj.Length + 1];
And don't forget to vote the message
|
|
|
|
|
sumit7034 wrote: streamObj.Length + 1
WHY?
|
|
|
|