|
Hi, all,
I want to add Print functionality to crystal report how i do that i mean what i have to be done.
any idea or article where i can learn above thing
Best regards
Rameez
|
|
|
|
|
I want to use web service in my project,how to make a call.
help me..
|
|
|
|
|
|
|
jaraldumary wrote: I want to use web service in my project,how to make a call.
You Need This[^]
|
|
|
|
|
Hi
iam trying to implement a calendar control.i want to design like this.
i have 3 drop down list(for day,month,year) at the top followed by a calendar control.
and 3 link buttons(prev,today,next) at the bottom.
if i select the particular day,month and year the calendar has to display accordingly,the same
should happen with the link buttons also.
can anyone tell me how to do this.iam not using any ajax controls.iam using
asp .net calendar control.
the code goes like this....
cal.aspx...
<table id="table1" width="100%">
<tr></tr>
<tr>
<td align="center">
<asp:DropDownList ID="cboDay" runat="server" AutoPostBack="True">
<asp:ListItem Value="1"></asp:ListItem>
<asp:ListItem Value="2"></asp:ListItem>
<asp:ListItem Value="3"></asp:ListItem>
<asp:ListItem Value="4"></asp:ListItem>
<asp:ListItem Value="5"></asp:ListItem>
<asp:ListItem Value="6"></asp:ListItem>
<asp:ListItem Value="7"></asp:ListItem>
<asp:ListItem Value="8"></asp:ListItem>
<asp:ListItem Value="9"></asp:ListItem>
<asp:ListItem Value="10"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="cboMonth" runat="server" AutoPostBack="True">
<asp:ListItem Value="January"></asp:ListItem>
<asp:ListItem Value="Febraury"></asp:ListItem>
<asp:ListItem Value="March"></asp:ListItem>
<asp:ListItem Value="April"></asp:ListItem>
<asp:ListItem Value="May"></asp:ListItem>
<asp:ListItem Value="June"></asp:ListItem>
<asp:ListItem Value="July"></asp:ListItem>
<asp:ListItem Value="August"></asp:ListItem>
<asp:ListItem Value="September"></asp:ListItem>
<asp:ListItem Value="October"></asp:ListItem>
<asp:ListItem Value="November"></asp:ListItem>
<asp:ListItem Value="December"></asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="cboYear" runat="server" AutoPostBack="True">
<asp:ListItem Value="2000"></asp:ListItem>
<asp:ListItem Value="2001"></asp:ListItem>
<asp:ListItem Value="2002"></asp:ListItem>
<asp:ListItem Value="2003"></asp:ListItem>
<asp:ListItem Value="2004"></asp:ListItem>
<asp:ListItem Value="2005"></asp:ListItem>
<asp:ListItem Value="2006"></asp:ListItem>
<asp:ListItem Value="2007"></asp:ListItem>
<asp:ListItem Value="2008"></asp:ListItem>
<asp:ListItem Value="2009"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<table id = "table2" width="100%">
<tr></tr>
<tr>
<td align="center">
<asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px" OnSelectionChanged="Calendar1_SelectionChanged">
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</td>
</tr>
</table>
<table id = "table3" width="100%">
<tr></tr>
<tr>
<td align="center">
<asp:LinkButton ID="lnkPrev" runat="server" OnClick="lnkPrev_Click">< Prev</asp:LinkButton>
<asp:LinkButton ID="lnkToday" runat="server" OnClick="lnkToday_Click">Today</asp:LinkButton>
<asp:LinkButton ID="lnkNext" runat="server" OnClick="lnkNext_Click">Next ></asp:LinkButton>
<%--<asp:Label ID="lblshow" runat="server" Text="Label"></asp:Label>--%>
</td>
</tr>
</table>
</td>
</tr>
</table>
cal.aspx.cs file...
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
cboDay.SelectedValue = Calendar1.SelectedDate.Date.ToString();
cboMonth.SelectedValue = Calendar1.SelectedDate.Month.ToString();
cboYear.SelectedValue = Calendar1.SelectedDate.Year.ToString();
}
and i want the calendar to change according to the selected date,month,year in the drop down.plz help me out...
pintoo
|
|
|
|
|
If you're gong to do your own calendar with drop downs, why on earth do you also use a calendar control ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi
I need to create a page layout with three web parts embedded in it.
I'm using SharePoint Designer for this.
I'm facing problem while adding a web part which accesses HttpContext.Current.Session.
The error i'm getting is "Object reference not set to an instance of an object". It seems the Session object is not getting initialised properly.
This problem occurs only in the case of Page Layout. The web part works fine when added to a page. Can anyone provide a workaround or solution for this problem?
|
|
|
|
|
What is the best way to implement "conditional formatting" for columns in a datagrid?
I have a Datagrid Control which uses different styles (CSS classes) for header, items, items in editable state, alternating items, and footer. One of the columns in the datagrid is called "Status" and contains an integer value (0, 1, 2). Depending on the value of the Status, I would like to use a different background color in the datagrid.
Can anyone advise on how to do this? Thank you for your assistance.
Dox Girl, where are you?
|
|
|
|
|
I'd imagine you need to have styles for each color and set the css class based on the value.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Indeed. You can see it this way: rows with status=0 should be displayed in green; rows with Status=1 should be displayed in yellow, and rows with Status=2 should be shown in red.
Dox Girl, where are you?
|
|
|
|
|
Yes, you need to write a bit of code in, probably, the OnItemDataBound event of the grid to assign the appropriate style based on the value.
|
|
|
|
|
i want to send a report via FAX.. can any1 show me the way ?
|
|
|
|
|
This has nothing to do with ASP.NET. there is no fax component built in, you need to buy one.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
i am working on a project where we required recording audio/VOICE from outer source that may be through micro phone to our application.can anybody suggest me about this....if possible please give demo code.
if I have to use any third party tool please suggest me. the below asp.net code working in local system only but i need recorded file is save in webserver(iis).
1. Open C#.net web applications. And added the blow namespace.
using Microsoft.VisualBasic.Devices;
using Microsoft.VisualBasic;
using System.Runtime.InteropServices;
2. Add the below API.
[DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi, SetLastError = true, ExactSpelling = true)]
private static extern int mciSendString(string lpstrCommand, string lpstrReturnString, int uReturnLength, int hwndCallback);
3. Create three Buttons and given the below name and text for the buttons.
1. Record
2. SaveStop
3. Read
1. Under Record Button Click paste the below Code:
// record from microphone
mciSendString("open new Type waveaudio Alias recsound", "", 0, 0);
mciSendString("record recsound", "", 0, 0);
2. Under Save / Stop button Click,
// stop and save
mciSendString("save recsound c:\\record.wav", "", 0, 0);
mciSendString("close recsound ", "", 0, 0);
Computer c = new Computer();
c.Audio.Stop();
3. Under Read Button Click
Computer computer = new Computer();
computer.Audio.Play("c:\\record.wav", AudioPlayMode.Background);
Save and Execute it.
thanku&Regards,
Nagarjuna....
|
|
|
|
|
naagrjuna wrote: where we required recording audio/VOICE from outer source that may be through micro phone to our application.can anybody suggest me about this....if possible please give demo code.
It says you have absolutely no idea about how ASP.NET works. ASP.NET can't record voice. Take a book and read to learn what it can do.
|
|
|
|
|
you should tell your client that they are not free to invent any functionality and expect it to be possible and that as you know nothing about ASP.NET, you're not a good person to ask. Then you should read the sticky post at the top of the forum on how to ask questions. 'hai' is not a useful subject line.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have used an http handler in my website.This works fine on my local PC.But fails to work on IIS.
Can anyone help me solve this issue?
Thanks and Regards
ARINDAM
|
|
|
|
|
Well, you haven't provided any information about the HttpHandler or you IIS settings, version etc. Here is my thoughts
1 - Check the web.config entry.
2 - If HTTPHandler is handling any extensions that is not processed by ASP.NET, make sure the extension is added to the IIS ISAPI extension list.
3 - If in IIS7, you need to do some more changes in the settings. Let me know if you are using IIS7.
|
|
|
|
|
Hi all
Am trying to do the sorting through coding
Protected Sub GridView1_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs) Handles GridView1.Sorting
Dim sortExpression As String = e.SortExpression
If e.SortDirection = SortDirection.Ascending Then
e.SortDirection = SortDirection.Descending
GridView1.Sort(sortExpression, SortDirection.Descending)
Else
e.SortDirection = SortDirection.Ascending
GridView1.Sort(sortExpression, SortDirection.Ascending)
End If
UDF_SetMasterData()
UDF_SetGridData()
end sub
but am getting an error like this:
An unhandled exception of type 'System.StackOverflowException' occurred in System.Web.dll
and if i try to put a break point and check,the loop is continuing within the same Gridview1_sorting..
Anybody knows what acn be the reason?
|
|
|
|
|
your commandline calling GridView.Sort(.....) is the problem. If you would do a debug and would step into this line with F11, then you will notice you have created a recursive call to the method you are in. And then it reaches the point it has too many calls and then your error peeps up.
You shoud create a dataview that holds the sorted data after the users hits its request for a sort on the data.
|
|
|
|
|
ok...den can u tel me how can i do that?...
|
|
|
|
|
If you would take a look at this article: http://www.codeproject.com/KB/grid/GenericGridView.aspx[^]">. You'll see it is not that hard to build.
|
|
|
|
|
Thanks a lot...Now sorting is happening in my gridview..but the problem is if i click on same column second time sorting is not happening...
on the first click it will sort as descending...and again i click on same column it should sort as ascending...but not happening...
but if i click any other column and come back to this its working fine...
what can be the reason?
|
|
|
|
|
Is your value for ascending/descending for the column stored in a session variable?
If not, than do so. When u see the page it is in disconnected state, so the website does not memorize the local variables only the session variables.
good luck
|
|
|
|