|
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.
|
|
|
|
|
Buy it?
Which ActiveX control is giving trouble? Do you have the name of a component or a vendor?
Bastard Programmer from Hell
|
|
|
|
|
AxAVTACTIVECAMLib this is the name of the component
|
|
|
|
|
Certain ActiveX controls require that you have a license if you wish to use it for development. This happens only during design time. Compiled apps that use these controls work just fine. There's nothing much you can do about it.
|
|
|
|
|
Contact the manufacturer of the control and buy a design-time license for it, it it's even offered.
You cannot just reuse any control you want on your own apps. Some, you really have to pay for to use.
|
|
|
|
|
I suggest you buy a license and read the manual[^], like everyone does.
|
|
|
|
|
Hi every one !
I have two form : First Form for enter username and pass and Form2(Main Form). I want to save or register password and username if the user enter a valid pass . And for the next time , if the user execute this app , go to the main form directly.
(because for the first time he enter a valid pass).
thanks for any help !
|
|
|
|
|
nassimnastaran wrote: thanks for any help !
Help with what exactly?
Bastard Programmer from Hell
|
|
|
|
|
You can store user's pwd in registry by using Microsoft.Win32.RegistryKey class.
|
|
|
|
|
thanks, for ur guide!
here is my code :
using Microsoft.Win32;
...
else if (.....)
{
RegistryKey mypass =
Registry.CurrentUser.CreateSubKey("mypass");
using (RegistryKey
myName = mypass.CreateSubKey("myName"),
mySettings = mypass.CreateSubKey("mySettings"))
{
mySettings.SetValue("mypass", "Secret");
}
WorkForm.ShowDialog();
}
but it don't create anything in HKEY_CURRENT_USER in RegEdit .
thanks !
|
|
|
|
|
Saving the users password in clear text in the registry? Now if THAT's not a security risk, I don't know what is.
|
|
|
|
|
in fact I want to save pass in registry system (and whenever the user execute app. , the mainform displayed directly).
thanks!
|
|
|
|