|
yes I noticed that it and worked I just hope that my application will remain around the same size as using .NET 4 as it was using .NET 4 client profile.
|
|
|
|
|
AFAIK it doesn't change the size or even the code of the app itself, it just binds it to another .NET instance, one that is different in size. The smaller one could make sense on resource limited devices, provided it happens to include everything you need.
|
|
|
|
|
Your application, on disk, won't grow. What will change is the memory profile of your application.
|
|
|
|
|
hi, using c#, to export crystal report into excel; how to protect the excel with password?
below is my code for exporting all pages
ReportDocument objRDoc = new ReportDocument();
objRDoc.Load("rpt path");
ExportOptions CrExportOptions ;
DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();
ExcelFormatOptions CrFormatTypeOptions = new ExcelFormatOptions();
CrDiskFileDestinationOptions.DiskFileName = "c:\\1111.xls";
CrExportOptions = objRDoc.ExportOptions;
CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
CrExportOptions.ExportFormatType = ExportFormatType.Excel;
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions.DiskFileName;
CrExportOptions.FormatOptions = CrFormatTypeOptions;
objRDoc.Export();
|
|
|
|
|
this question is deserving of lmgtfy[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
which is the best language to learn
|
|
|
|
|
KAFIL AHMED TAJAMUL DIVEKAR wrote: which is the best language to learn What are your goals ? What do you wish to be able to do in three months, six months, one year, longer ?
Get a job of some kind as soon as possible ?
Create simple (static, content-only) websites that work in all browsers ?
Create richly interactive websites for e-commece, or social networking, etc. ?
Create complex business solutions that involve Databases, multiple users ?
Create an application that runs on a specific platform (Mac, Windows) ?
Create an application that will work on both full-screen PC's and small-form-factor devices, like Tablets, Slates, Mobile Phones, etc. ?
best, Bill
"The first principle is that you must not fool yourself, and you are the easiest person to fool." Richard Feynman
|
|
|
|
|
Statistically English, Spanish and Chinese, I think.
V.
|
|
|
|
|
Very hard to say without more info but what follows is my very vague and generalized impression of various languages (which is likely to spark some debate, i'm sure)
JAVA - Very portable, good for both apps and web, fairly easy to pick up, fairly hard to master
C# - Almost identical to java with a few gotchas thrown in and some very nice 'syntactic sugar' from which (imo) java would benefit greatly (properties, the event system, etc). Supposedly portable but, mono project aside, no-one has bothered to do the work to make it run on anything besides MS OSs. Can make use of any .Net assembly so allows close collaboration with VB coders (if you like that sorta thing ). Good for apps or, with the addition of ASP or WPF/Silverlight, web
VB - very easy to pick up. less 'rigid' in terms of code parsing allowing you to do things you probably shouldn't (has a bad reputation in some circles due to people doing things they shouldn't but, if you are strict with yourself and do things properly, its a perfectly fine language .... doesn't pay as much though ). Benefits of .Net framework same as for c#
C++ - harder to pick up than the others but gives you greater control over things like memory management. Doesn't hold your hand though and you will need to quickly figure out what you are doing or you will have memory leaks all over the place and no garbage collector to scurry around after you sweeping it all under the rug
Pedis ex oris
Quidquid latine dictum sit, altum sonatur
|
|
|
|
|
Stupid question. All of them. What could it possibly hurt??
|
|
|
|
|
Dave Kreskowiak wrote: All of them. What could it possibly hurt??
Guess that depends on how you define "all". The Tiobe report lists 50 languages. That of course isn't a complete list. There is going to be a time constraint involved in learning even 50.
|
|
|
|
|
Esperanto
Failure is not an option; it's the default selection.
|
|
|
|
|
KAFIL AHMED TAJAMUL DIVEKAR wrote: which is the best language to learn
Depends on what you mean by "best".
Learning C++ is going to teach you more about computer fundamentals.
Java has the most market share (excluding C++/C combined) but C# is up there.
Java and Objective-C are better for cells/mobiles.
Java, C# and C++ are are similar in syntax at the language level but differ significantly on libraries and that knowledge has more impact on real output. However with experience one can pick up libraries fairly quickly.
SQL and a vendor specific programmatic variation provides a foundation in databases. SQL is fundamentally different than other popular languages as such it is harder to start with a different language and learn it. However a developer who knows nothing but SQL (+ vendor variant) isn't going to do as well as one that knows at least something about another language.
|
|
|
|
|
Well, It depends. You didn't provide enough details in your question.
Anyway I prefer C#
thatrajaNobody remains a virgin, Life screws everyone
|
|
|
|
|
I am using a Telerik RadGrid Control.
I am using Entity access to backend SQL Server
I get the data from the DB Table just fine.
THe onClickedChanged event is firing.
The problem is I don't have a clue which of the 10 possible rows the checkbox event was envoked. The Chick is changing the visual presentation of the CheckBox (On/Off) but db.SaveChanges() is not writing the change back to the database.
ASP Code follows --- then C# ----
<asp:Content ID="Content1" ContentPlaceHolderID="placeholderMain" Runat="Server">
<div>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="grdDepartments">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="grdDepartments" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadGrid ID="grdDepartments" runat="server" AutoGenerateColumns="False"
CellSpacing="2" GridLines="None" Width="60px" AllowAutomaticInserts="true"
AllowAutomaticUpdates="true" OnItemUpdated="RadGrid1_ItemUpdated"
OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted" >
<MasterTableView DataKeyNames="DepartmentID" >
<Columns>
<telerik:GridBoundColumn DataField="DepartmentID" HeaderText="Department ID" ReadOnly="True"
UniqueName="DepartmentID" Visible="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Department1" HeaderText="Department" ReadOnly="True"
UniqueName="Department1">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Active" UniqueName="Active" DataField="Active"
AutoPostBackOnFilter="false">
<ItemTemplate >
<asp:CheckBox runat="server" ID="chkActive" Enabled="true" onCheckedChanged="chkActive_Click"
AutoPostBack="true" Checked='<%# DataBinder.Eval(Container.DataItem, "Active") %>' >
</asp:CheckBox >
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings EditColumn-EditFormColumnIndex="2"/>
</MasterTableView>
</telerik:RadGrid>
<telerik:RadButton ID="btnSave" runat="server" Text="Save"
onclick="btnSave_Click">
</telerik:RadButton>
<telerik:RadButton ID="btnCancel" runat="server" Text="Cancel"
onclick="btnCancel_Click">
</telerik:RadButton>
</div>
</asp:Content>
------
{
public DataAccess.Dev_SiteEntities db = new DataAccess.Dev_SiteEntities();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
var GrdDepartmentsData = (from p in db.Departments
select new { p.DepartmentID, p.Department1, p.Active });
grdDepartments.DataSource = GrdDepartmentsData;
grdDepartments.DataBind();
}
}
protected void btnSave_Click(object sender, EventArgs e)
{
bool blnStatus = false;
int intCount = 0;
int intRows = 0;
string strItem = "";
intCount = grdDepartments.Columns.Count;
strItem = grdDepartments.Items[0].KeyValues;
strItem = grdDepartments.Items[2].KeyValues;
db.SaveChanges();
}
protected void chkActive_Click(object sender, EventArgs e)
{
bool blnStatus = false;
int intCount = 0;
int intRows = 0;
string strItem = "";
blnStatus = (bool)grdDepartments.Columns[2];
strItem = grdDepartments.Items[0].KeyValues;
strItem = grdDepartments.Items[2].KeyValues;
db.SaveChanges();
}
-----
|
|
|
|
|
Please post your question on Telerik forums, there you may get the correct answer.
|
|
|
|
|
Voted +5 to "neutralize" the stupid univote.
best, Bill
"The first principle is that you must not fool yourself, and you are the easiest person to fool." Richard Feynman
|
|
|
|
|
Thank you Bill for your upvote.
|
|
|
|
|
The comment from ProEnggSoft is absolutely right: you paid big $ for Telerik's tools: they have a good reputation for support (or so I have read on CP: I personally do not use their tools).
Your question belongs on the Telerik forums.
best, Bill
"The first principle is that you must not fool yourself, and you are the easiest person to fool." Richard Feynman
|
|
|
|
|
The do indeed have EXCELLENT support....every question I've asked them in the past is responded to (in their public forum no less - no direct emailing required!) inside of half a day, and in 90% of cases, the support engineer will also attach a demo project..
Telerik Rock...wonder if they have any jobs going!?!?!
C# has already designed away most of the tedium of C++.
|
|
|
|
|
Hello, I was making many programs where I used ProgressBar in C#. But many of those progressBars was horisontal. So, I was wondering how to make it vertical and I didn't find a clear answer. If any1 knows how to do that please let me know?
|
|
|
|
|
|
|
Another technique to take the existing ProgressBar Control and make it appear vertical as shown here on MSDN: [^].
The discussion here starts a long time ago, but there's a post from 2009 indicating the technique still works.
I have not tried this myself under .NET 4.0, but may do so.
good luck, Bill
"The first principle is that you must not fool yourself, and you are the easiest person to fool." Richard Feynman
modified 20-Feb-12 2:19am.
|
|
|
|
|
I have a problem that I compile a program written in Visual Studio 2010 C # gives me an error: "You must have a license to use this ActiveX control." The reason for this is based on the use of ActiveX controls. Does anyone know how I can get rid of this error.
|
|
|
|