Sorry for cross posting. Does this mean i get no help ?? :(
------------------- Redcastle CRM
Sorry for cross posting. Does this mean i get no help ?? :(
------------------- Redcastle CRM
Sorry forgot to mention, I need to have these 2 pages. Everything one 1 page is not suitable in my case. Many Thanks
------------------- Redcastle CRM
Hi I have a query with the ListBox control. I have two pages on my web app, a main page and a sort page. The main page contains a table populated with names from a SQL database. The sort page contains a ListBox with all the names from the main page and 2 buttons, Up and Down. The user can move the names Up and Down by clicking the name and pressing Up or Down. Now i would like to know, How can i save the 'sorted' listBox and display that order on the Main Page?? I would greatly appreciate some help. Many Thanks PS this is what i have for moving the items UP/Down protected void Button1_Click(object sender, EventArgs e) { int i = lstBox1.SelectedIndex; string str = lstBox1.SelectedItem.ToString(); if (i > 0) { lstBox1.Items.RemoveAt(i); lstBox1.Items.Insert(i - 1, str); lstBox1.SelectedIndex = i - 1; } } ------------------- Redcastle CRM
Hi I have a query with the ListBox control. I have two pages on my web app, a main page and a sort page. The main page contains a table populated with names from an SQL database. The sort page contains a ListBox with all the names from the main page and 2 buttons, Up and Down. The user can move the names Up and Down by clicking the name and pressing Up or Down. Now i would like to know, How can i save the 'sorted' listBox and display that order on the Main Page?? I would greatly appreciate some help. Many Thanks PS this is what i have for moving the items UP/Down protected void Button1_Click(object sender, EventArgs e) { int i = lstAssoc.SelectedIndex; string str = lstAssoc.SelectedItem.ToString(); if (i > 0) { lstAssoc.Items.RemoveAt(i); lstAssoc.Items.Insert(i - 1, str); lstAssoc.SelectedIndex = i - 1; } } ------------------- Redcastle CRM
Aah sorted.... :) Just for the record I added this to my web.config: <connectionStrings> <add name="ScrabbleConnectionString" ; connectionString="Data Source=JETTA\SQLEXPRESS;Initial Catalog=Scrabble;Integrated Security=True" providerName="System.Data.SqlClient " /> </connectionStrings> I also added the name of the "connectionString" to the line in my code that was causing the problem, I.E: string connect = WebConfigurationManager.ConnectionString s["ScrabbleConnectionString&# 034;].Co nectionString; Thanks Cheers :)
Hi I have this line of code in my Web Application; string connect = WebConfigurationManager.ConnectionString s["Scrabble"].Connection String; It will not compile as i am getting the following error: "The name 'WebConfigurationManager' does not exist in the current context" If i add Using System.Web.Configuration to the top of the page, it will compile. However it falls over again on the same line with the message: "Object reference not set to an instance of an object" What am i doing wrong here??? Thanks again
Cheers :)
Hi Yes i did think of that. However, Marquee is only compatible with IE. Other browsers like FireFox cannot interpret the tag. Thanks
Cheers :)
Hi I would like to know "how to stop vertical scrolling text in javascript after one iteration". What i have is the text that scrolls continuously, and i want it to make it stop at the top of the box. How can i acheive this effect?? This is the javascript i have; <script language="JavaScript"> function getObject( obj ) { var strObj if ( document.all ) { strObj = document.all.item( obj ); } else if ( document.getElementById ) { strObj = document.getElementById( obj ); } return strObj; } var theTop = 200; var theHeight = 100; var theWidth = 150; var theLeft = 350; var toClip = 200; function scrollNews( newsDiv, toMove ) { theDiv = getObject( newsDiv.toString() ); if ( theDiv == null ) { return; } if ( document.layers ) { theDiv.clip.top = toMove; theDiv.clip.bottom = toMove + toClip; theDiv.top = theTop - toMove; } else { theDiv = theDiv.style; theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop - toMove + 'px'; } if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) ) { toMove = 0; if ( document.layers ) { theDiv.clip.top = theTop; theDiv.clip.bottom = toClip; theDiv.top = theTop } else { theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop + 'px'; } } toMove = (toMove + 2); //speed of scroll setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100); } </script> Any help is much appreciated
Cheers :)
Hi I would like to know "how to stop vertical scrolling text in javascript after one iteration". What i have is the text that scrolls continuously, and i want it to make it stop at the top of the box. How can i acheive this effect?? This is the javascript i have; <script language="JavaScript"> function getObject( obj ) { var strObj if ( document.all ) { strObj = document.all.item( obj ); } else if ( document.getElementById ) { strObj = document.getElementById( obj ); } return strObj; } var theTop = 200; var theHeight = 100; var theWidth = 150; var theLeft = 350; var toClip = 200; function scrollNews( newsDiv, toMove ) { theDiv = getObject( newsDiv.toString() ); if ( theDiv == null ) { return; } if ( document.layers ) { theDiv.clip.top = toMove; theDiv.clip.bottom = toMove + toClip; theDiv.top = theTop - toMove; } else { theDiv = theDiv.style; theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop - toMove + 'px'; } if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) ) { toMove = 0; if ( document.layers ) { theDiv.clip.top = theTop; theDiv.clip.bottom = toClip; theDiv.top = theTop } else { theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop + 'px'; } } toMove = (toMove + 2); //speed of scroll setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100); } </script> Any help is much appreciated :)
Where can i post a thread for help with javascript? There is no "JS" forum? Thanks
Hello experts i would like to know how to delete a row from a dataGrid (which is in edit mode), i am using paging and the built in edit, update, cancel methods. I have been looking all over the posts most seem to be using databases and since i am using a XML file as my surce of data i am abit lost. heres what i have in my delete event Handler.. private void dgStudents_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int rowToDelete = e.Item.ItemIndex; dsStudents.student.Rows[rowToDelete].Delete(); //refresh datagrid control to show changes BindData(); } the rowToDelete int will get the row to delete, but when i run this and click on delete, i get a runtime error of "There is no Row at position 0" Help please?? Cheers
Cheers :)
Hello experts i would like to know how to delete a row from a dataGrid (which is in edit mode), i am using paging and the built in edit, update, cancel methods. I have been looking all over the posts most seem to be using databases and since i am using a XML file as my surce of data i am abit lost. heres what i have in my delete event Handler.. private void dgStudents_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int rowToDelete = e.Item.ItemIndex; dsStudents.student.Rows[rowToDelete].Delete(); //refresh datagrid control to show changes BindData(); } the rowToDelete int will get the row to delete, but when i run this and click on delete, i get a runtime error of "There is no Row at position 0" Help please?? Cheers :)
Thanks for that:) now i'd just like to know, if i had a hyperlink on my page and when the user clicked on that link a messageBox should appear. How could i acheive this?? similar procedure using client side scripts??
Cheers :)
Hi I would like to know how would i display a messageBox in a web form. I know in Windows forms you would use something like MessageBox.Show("Hello"); How could i show this kind of dialog box (or equivalent)on a web form, if a user clicks a button??
Cheers :)
Hello guys i am trying to customise my repeater control i have placed on my web form. When i try to edit the element i get the following error, hence i cannot see any data on the screen: Per the active schema, the element 'tr' cannot be nested within 'form'?? please could you offer some help?? P.S this is what i have, there is a problem with the tag but i dont know what it is :( . . . Cheers :)
I am trying to customize my repeater control for my web application. I am trying to add the column headings for my control using I am getting the following error for the tags.. Per the active schema, the element 'th' cannot be nested within 'thead' I dont know what i am doing wrong?? please help? (I have created a schema for my XML file) BTW tags are working fine. Cheers :)
Thanks Pete!
Cheers :)
thanks!
Cheers :)
Thanks Ennis Ray Lynch, Jr. how would i use a css attribute? e.g. if i wanted to have a blue background on a field name. Id use something like bgcolor=blue. How to you do that with a css attribute??
Cheers :)
You could try and use the IsPunctuation method to check for a '_'.
Cheers :)