Thanks Christian I was afraid that was the case
Reanalyse
Posts
-
Dynamically Setting Images on an ASP net site -
Creating Charts/graphs on a webapgeFor great support at a cheap price I use ChartDirector
-
Dynamically Setting Images on an ASP net siteI have a large array of Imagebuttons on an ASPX page, that have the URL set depending upon the value of a variable The value matches the name of the ImageButton as below. Rather than the convoluted code as below is there a way to somehow dynamically change the button - something like ImageButton[mapflag].ImageUrl="warning.gif"
if (mapflag == "TV1_ANALOGUE") TV1_ANALOGUE.ImageUrl = "warning.gif"; if (mapflag == "TV1_DTT") TV1_DTT.ImageUrl = "warning.gif"; if (mapflag == "TV1_DTH") TV1_DTH.ImageUrl = "warning.gif"; if (mapflag == "TV1_FM") TV1_FM.ImageUrl = "warning.gif"; if (mapflag == "TV1_LINKING") TV1_LINKING.ImageUrl = "warning.gif"; if (mapflag == "TV1_ISN") TV1_ISN.ImageUrl = "warning.gif"; if (mapflag == "TV1_EXTEND") TV1_EXTEND.ImageUrl = "warning.gif"; if (mapflag == "TV2_ANALOGUE") TV2_ANALOGUE.ImageUrl = "warning.gif"; if (mapflag == "TV2_DTT") TV2_DTT.ImageUrl = "warning.gif"; if (mapflag == "TV2_DTH") TV2_DTH.ImageUrl = "warning.gif"; if (mapflag == "TV2_FM") TV2_FM.ImageUrl = "warning.gif";
Many thanks for any help -
Smallest and fastest way to store numeric data in a fileThanks all for the suggestions, the bitmap idea could be very helpful as it would maintain the structure of the file. I don't know if the code to get a pixel value from a bitmap is efficient. As the file only has to be created once write speed is not relevent, but read time critical.
-
Smallest and fastest way to store numeric data in a fileI am working with Digital Elevation Models, and some of these are very large and very slow to access. The files currently are in text format 10,000 rows and 8000 columns , and I was considering that as all items the file contains are positive numbers (ranging from 0 being sealevel to 4000 being highest peak) there must be a much better format to store these for file size and access speed. What would you suggest as the best file format for this -two bytes for each number, or singles, or doubles or....? The key thing is fast access to the array of data in the file. Thanks for any suggestions.
-
Using Cadlib with C#No - sorry :( - was not able to easily do this. As this was for a work initiative I bought Cadlib from Woutware- the cost of my time was worth more that the purchase price. Regards
-
Ajax Toolkit Drag Panel postback positionI wonder if there is an easy way to "extend" the DragPanelExtender in the Ajax Toolbox to carry out one more function. What I want to do is have a postback to the server or send a URL to the server that contains the X & Y position where the DragPanel was dropped. Essentially what I am trying to to do is allow an ASP.Net panel containing a textbox to be dragged and dropped on one of a dozen or so absolutely positioned images, and the codebehind file to take the appropriate action depending upon the image on which the panel was dropped. Thought this would be simple, and there are some examples in VS2008 but I am stuck with needing to code this in VS2005 Any sugestions and help would be appreciated Many Thanks
-
MS Access Database - Web Page - Could not find installable ISAM for password protected fileFound it, I love connection strings :( Correct version of string was
string cstr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\uploadtest\website1\data\Data.mdb;Jet OLEDB:Database Password=testing";
-
Create ASP.NET pages (without an IDE)Have a look at ASP.Net Maker- may help you
-
MS Access Database - Web Page - Could not find installable ISAM for password protected fileI am trying to open a password protected MS Access file on my website using the foloowing code
string cstr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\uploadtest\WebSite1\data\Data.mdb;Database Password=testing"; OleDbConnection ocon2 = new OleDbConnection(cstr); ocon2.Open();
This fails with a "Could not find installable ISAM." error. Is there something I am missing, I have no alternative to using a password protected MS Access data file in this process. -
Changing MDB Tool Generated Dataset SourceI am writing an application to synchronise two MDB files, one accessed through a webserver and the other on the local system. All well on the webserver side, but on the local system where the application is running I need to be able to change the source of the data from information in an INI file. (i.e if the MDB file is moved I need to change the source to match). Standard OLEDbConnections to password protected MDB files seem to problematical, so I ended up using the Dataset as this saves a lot of hand coding If you want to see a picture please feel free to look at the image here which should give you the context. I can not figure out how to make the source of the Dataset change from within the code. Thanks for your help
-
Asp Website asynchronous calling of other IP deviceGetting close I suspect the code is like
WebRequest req; WebResponse resp; Uri myuri= new Uri(@"http://192.168.10.10/"); req = HttpWebRequest.Create(myuri); resp = req.GetResponse();
Using the System.Net Namespace -
Asp Website asynchronous calling of other IP deviceI am developing a webserver application in ASP.Net 2 using C#. It places images of various remote controls on the browser screen in an imagebutton, and when the remote is clicked identifies the button clicked in a ImageButton1_Click(object sender, ImageClickEventArgs e) routine. That works fine, but where I am having trouble is that, depending on the button pressed, I need to pass command strings to an IR Trans device (simulating the remote) from my application without leaving the webpage. The IR Trans device has it's own webserver so what I am trying to do is asynchronously "shell" a text string to that device. Looking at documentation there are IAysnchronousHandlers that may be part of the solution. Can anyone suggest the best approach. Many Thanks
-
Create "wide open" folder on user systemVS2005 installer question I am trying to use the VS2005 installer to install my application, and as the destination environment is clamped down by IT,I need at install time to create a folder on the C: drive called image_temp that is available to all users of that system with full read/write/create/delete rights. The application runs as the user so can not create the folder, the installer runs with an administrator's rights. The project structure is as seen as in this link[^] Can anyone advise on how to create a "wide open" folder using the Visual Studio installer
-
C# WebBrowser using JavaScriptThanks - I will look at invoke script I was not too lazy to google it, but found nothing straightforward fron the search :laugh:
-
C# WebBrowser using JavaScriptI have a WebBrowser component on a form, and it interacts with a site (www.zoomin.co.nz)though Javascript. The Javascript contains functions such as GPoint gpt= GMap.getCenterLatLong() In my application I need to be able to call that function in Javascript and find out the values for gpt (of the two floating point values that make it up) in my C# code. Thanks
-
helpJava Extractor is an unzipping application. Is that what you are after, or are you looking for a Regex (find/sort text in text") approach ?
-
Writing Dataset to XML corrupts XML fileThanks I suspect that my trouble is that the dataset is "set" to a different XML schema that the file being loaded (a previous version of the XML file), hence ignoring the columns after the ones it "knows about". I suspect I will need to specifically load the schema, and save the schema as well as the data. Will try it out on Monday when I get back to the office
-
Writing Dataset to XML corrupts XML fileI am having a lot of issues with this in VS2003 - programming in C# I am trying to update one field in an XML file using a dataset The code for the updating is _______________________________________________________________
// get the selected row DataRow selectedRow = contacts.Tables[0].Rows[contactlist.SelectedIndex]; // Begin an edit transaction on the row. selectedRow.BeginEdit(); selectedRow["Service_Release_SQL"] =sr_sql.Text; selectedRow.EndEdit(); contacts.WriteXml(@"contacts.xml");
______________________________________________________________ where "contactlist.SelectedIndex" gives me the XML row to update, and the field in that row is called "Service_Release_SQL" This complies OK, and runs without throwing an exception but the result always is that my XML file loses all field after the "Service_Release_SQL" field. Can anyone indicate where I am going wrong Thank you for your time -
Sleep or Wait functions in ASP.NETDo you want to wait for some external process - or for an internal process to complete. If the latter you will need to look at threading and suspending a thread until an event or trigger occurs.