I have the following connection in my webconfig file:- Can someone just check it's correct never done one only sql.
mcgann
Posts
-
Connection to Access Database -
ok and cancel button in asp.net with vb.net 1.1Try adding this after the tag function confirmDelete(e) { var targ; if (!e) var e = window.event; targ = (e.target) ? e.target : e.srcElement; if (targ.nodeType == 3) targ = targ.parentNode; if (targ.id.toLowerCase().indexOf("delete") >= 0) { return confirm("Are you sure you want to delete?"); } } document.onclick = confirmDelete; <\script> Please note the button you click to delete the item from the datagrid must be called delete as this function will check to see if the button you clicked has text value set to 'delete' </x-turndown>
-
Using function on click eventI have a bound listbox to a sql datasource, the problem I have been having is that when I use the multiple select property I need to perform another procedure to find the highest factor of the selected items and return this to part of the form. I have looked at using javascript but i'm not the best at it so if anyone can think of another way could you let me know.
-
Script TagsJust a simple question. In asp.net 2.0 when adding javascript to a content place holder do I use the same method as I would with an .aspx page eg. add the script in between the head tags. Content place holders dont have head tags so just wondering. If anyone can clarify this for me please let me know.
-
Using Javascript in ASP.NET 2.0I am quite new to using asp.net 2.0 and am only really beginning to get the hang of it, therefore i want to improve my client-side responses and to do so I have decided to add some client-side javascript to help in a calculation. I have the javascript created in a seperate file. The difficult part that i have now is trying to call this function whenever a button is clicked. So if anyone can help with some useful links/ articles on the subject please let me know.
-
XmlDataSource [modified]i have the follow xml file : None None 999 0 N R1 R1 Explosive when dry 1 1 N R10 R10 Flammable 10 1 N I have been trying to bind this to a listbox but have been unsuccessful, can anyone help. I have read that i may need an xslt file to transform it, is this true and could someone point me in a good direction on how to use xslt files Thanks -- modified at 6:22 Thursday 17th August, 2006
-
Get DateDoes anyone know how to get the date to 2 characters ie 2006 would be 06. this has been baffling me for a while now. Any help is much appreciated
-
Accessing 2 databases [modified]I want to create a stored procedure that select certain fields from one databases, and somemore from another these databases are on 2 different servers but run the same sql server 2000. if anyone can help point me in the right direction i would much appreciate it.
-
Diplay header and footer when gridview is emptyI have searched everywhere for a solution for this. I have a gridview that is bound to a datatable. The gridview has a footertemplate so i can add new records. The problem I have is when the pageloads the footer is not being displayed when there are no records. Any help with this would be most appreciated.
-
Time Based RedirectI have a redirect to a page that has a short message upon it. After a certain length of time I then want to redirect them to another page. If anyone can point me in the right direction it's most appreciated. Regards Paul Mc Gann
-
Calling Javascript from a sever controlI have written the following function to validate one of my forms :- function ValidateForm(Form) { var output = ""; output += CheckName(document.Form.txt_substance_name.value); output += CheckForm(document.Form.ddl_form.selectedIndex); output += CheckHazardGroup(document.Form.ddl_hazard_group.selectedIndex); for(i=0, n = documentForm.rbl_hazard.length; i
-
character CounterYeah the last example was similar to wat I was on about. instead of counting up Iwas wanting to count down and apply it to a label instead of a textbox. Got it sorted. Cheers King
-
character CounterJust wonderin if anyone knew of any good sample's of character counting upon a webform so that users know how many characters they have left. Any help is much appreciated.
-
Crystal ReportsDoes anyone know of any good links for crystal reports. I need to create one from scratch and without the wizard. It needs to use sql server for a query to return all the data for the parameters I enter. At the momment i can get it to return everything but i want to limit this to an id to get all the report info and generate. Any help is much apprciated.
-
Table HeightHello I'm trying to get the height of a table I created. This table has varying heights hence why i am trying to retrieve it. I will then set the height of an image to that table height. Anyone who can help it's much appreciated.
-
Image stretchingI have a table in a webform and the background image has been set to an image i created. What I want to do is stretch this image anytime the table goes beyond the image size i.e the image size is 800 x 577, but when I load the webform it might be 800 x 700. The only thing that should stretch is the height. Anyone one who can help it's much appreciated.
-
customized datagridI have a boundcolumn in my datagrid. I want this boundcolumn to display the results but also give the user a way of clicking on the result and being directed somewhere else. Please help any suggestions are greatly appreciated.
-
Generate Unique IDI'm tryin to create a unique id for each row in the database(SQL SERVER), I don't want to use the standard convention of uniqueidentifer. but to create my own which takes an abbreviation say 'pm' adds the year '06' and finally adds the next row number in sequence. eg. id = 'pm' + '06' + '0001' Has anyone any ideas of how to do this. I have something working but it's not entirely correct. gfhg
-
regarding datagridWhat kind of database are you using? 1.SQL Server 2.MS Access Paul
-
Unique ID GeneratorHello I have been trying to development a id generator but don't know exactly how to do it. The id must have an abbreviation + year(05) + id ie. refernce=abbrev+05+id. If anyone can give some advice on this it is much appreciated. Also if it helps the abbrev comes from a database on sql server. Thank You Paul Mc Gann gfhg