Pleasure to help :) !!
RepliCrux
Posts
-
[C# COM development] output by Regasm -
what is ajaxI think the best place you can learn Ajax as a beginner will be this: http://www.w3schools.com/ajax/default.asp[^]
-
C# Webbrowser and form questionsYou can try writing client side code, javascript may be. In the textbox, you can register the script for key up (or some other as convenient) txtBox.Attributes.Add("onKeyup",javascript:ShowText(this.ID)"); and javascript: ShowText(param) { var textBox = document.GetElementByID(param); alert(txtBox.Value); } hope that does that.
-
dgresult.SelectedItem.Cells(1).TextSorry, my bad, I was thinking of Windows form, Whats the error Message by the way!!
-
what is App.ico in .net?.ico is an extention for icon for starters. Therefore App.ico = Application Icon.
-
dgresult.SelectedItem.Cells(1).TextWhat is the error message you are getting?? There is no property of DataGrid called SelectedItem by the way !!
-
Single Sign On for two sites of different domains.When you Create Generic Priciple, You pass in all the roles to the Context of the page, then you check the user role like: If(Context.Users.IsInRole("Manager")) { //Do Something } You cannot pass the whole context itself, but pass the contents of the Context, (IIdentity,Roles..etc), then create a new Generic Priciple in the destination page usring those values and validate the Context of the page simillarly.
-
how to diffrential between dates?Pleasure to help!!
-
How to make Splash Screen?Here is one of the easiest one: In your main Program.cs call a Form: --Name that form splash screen, --Set the property 'FormBorderStyle' = 'None' --call a method show splash so basically you will write as below: public SplashForm() { InitializeComponent(); } public void ShowSplash() { Thread.Sleep(1000); this.Close(); } Now in main write this: SplashForm f2 = new SplashForm(); f2.Show(); f2.ShowSplash(); This will work as a splash screen!!
-
C# Webbrowser and form questionsHi Sean, May be I did not understand what you wanted, but I think Sharepoint is what you need. Or if you want an ASP.NET application, you will have to build a Custom CMS (content management system), where you can allow users to create something like articles and and then, when they submit the article, you can review them before it goes online.... If above does not makes any sense, I am sorry :)
-
how to diffrential between dates?DateTime t = new DateTime(2007,07,17); TimeSpan diff = DateTime.Today.Date.Subtract(t); MessageBox.Show(diff.Days.ToString());
-
Single Sign On for two sites of different domains.You can use generic priciple, which creates username and the roles assigned to him. --When you redirect the user, pass the Context of first webpage through the URL to second page. --In the second domain check the incoming URL, if there is any context, then validate it and allow or deny user accordingly. --Deny can redirect the user to Login page. hope this helps, I have assumed that you know how the .net security works (Context, IIdentity etc).
-
why no delete?Your current code seems to be right, the only reason I can think of is you have done some silly mistake in your stored procedure. Did you debug the code? Does it get the iid value you want to delete? If it gets through your myDeleteCommand.ExecuteNonQuery() line without any exception, it bound to be the stored procedure.
-
Doubt in query.........,You are right, the only thing is not all months have last day as 30, it can be 30, 28, 31... but well this is the right way to do anyway, there is a store procedure which gets the last day of the month in a particular year, can always use that.
-
Doubt in query.........,5 votes to you man. I was about to say bad database design ;P
-
Query for finding number of columns in a table?SELECT Count(COLUMN_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_Name = 'TableName'
-
radgriddevsam wrote:
Public Sub RadGrid1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.SelectedIndexChanged Dim Ids As String = (RadGrid1.SelectedItems(0).OwnerTableView.DataKeyValues(RadGrid1.SelectedItems(0).ItemIndex)("ID"))
Your code is going in selected index change before there is any item in the grid. Write a check, something like this: IF NOT RadGrid1.SelectedItems.Count = 0 THEN and then write your code inside this If condition.
-
disable back and forward buttonYou can't disable the back button as far as I know, but you can add code in javascript so that when someone clicks back button, History + 1, so it will never go back. Google that :)
-
How to retrieve data from database and display it in ListviewHi, In ListView you will have to Enumerate the datasource and fill it. For example, if your datasource is a DataTable, you can write the following: foreach(DataRow row in table.Rows) { ListViewItem item = new ListViewItem(); item.Text = row["Description"].ToString(); item.Tag = row["ID"].ToString(); //For other coulmns items.SubItems.Add(row["OtherColumn"].ToString(); } Hope this helps.
-
Certificationhttp://www.microsoft.com/learning/mcp/default.mspx This place is your best bet of getting all the valuable knowledge. Remember, getting work experiance is better before doing these certifications.