blah blah blah is here! blah blah » Close

0
votes
0 answers

Changing the Action attribute in the 'Form' tag

Hi there How can I get the Form.Action value to change value when a HTML button called 'doiSubmit' on the page is selected but to stay null the remainder of the time? I've placed the functionality in the Page_Load method as it seems t ...

0
votes
0 answers

Changing the Redirected Url in the 'Form' tag

Hi Within a page of my website, I have HTML <input> text box and button control which, when selected, redirect to the site: http://dx.doi.org The URL for this site is set in the ASP code page using the tag line: [code]<form ...

0
votes
1 answers

Hyperlink asp control doesn't appear when set

Hi, I've got an XML file with one <title> and one <link> attribute. What I want to do is implement a hyperlink with the name of the <title> element and whose NavigateUrl property is set to the <link> element. For ...

0
votes
0 answers

Interacting with WebPage controls

Hi there, I have the following code: [code] String strResult; WebResponse objResponse; WebRequest objRequest = HttpWebRequest.Create(strURL); objResponse = objRequest.GetResponse(); using ( ...

0
votes
0 answers

Uploading files to c# from any location

Hello I'm attempting to create a method in my code which allows users to upload files from any location on their desktop. So far, every time I've tried to code this, I get an error saying that 'Access to the path has been denied'. I have ...

1
votes
2 answers

Duplicate records being processed with StreamReader

Hi there I am attempting to read lines of a portion of a file into a database using StreamReader. I originally had an object reference error on the line: if (current.Contains("title")) but since I have corrected it, I am ...

0
votes
0 answers

Importing formatted records into a database

Hi there I'm trying to import a formatted file into my MySQL database. For those familiar, its a BibTeX file. I have no problem importing any data but, whatever I have tried so far, I can't seem to figure out a way for the same record to ...

0
votes
1 answers

IIS Unsynchronisation

Hi there I have a strange situation in which I have made some code changes to a VisualStudio project and, when I build the project and run it in Internet Explorer, the changes are shown but, when I run it in IIS, they are not shown. I hav ...

0
votes
1 answers

Problem with user logon identity in C#

Hi there I have a strange problem with the following code, used to retrieve the User's identity, which is required to display a free-format text box. I am able to display the text box when I hard-code in my own computer ID, but cannot get ...

0
votes
1 answers

Oracle Error: Unable to cast object of type

Hi there, This method was definitely working before and I can't seem to find out what I've changed that makes it return the following error when running my application now: Unable to cast object of type 'System.String' to type 'Oracle.Dat ...

0
votes
1 answers

C# connecting to Oracle not returning rows

Hi there, I'm having a strange problem whereby I can execute a select query in Oracle SQL Developer that rerturns some rows but, when this same query is placed into C#, I get no results. I've debugged the code and the date that I am passi ...

0
votes
1 answers

Using Session and Request to pass values

Hi there I've got an event in one ASP.NET class (Search.aspx) that is passing data over to another ASP.NET class (Update.aspx). This event runs when the user selects a hyperlink item on a row in a grid In Search.aspx, I use the following ...

0
votes
1 answers

Problem with button/control visibility

I have a problem with the following method, which runs when a user clicks on a record from the DataGrid. The method checks to see what value is returned from the database for the user record selected and, if the user record is not found, it ...

0
votes
1 answers

Capturing return keypress

I've never handled keysroke events before and I would like to implement a Return keystroke event in a Windows form to bring up a list of items in a datagrid as well as habing a search button in the form. With the help of a tutorial, I have ...

0
votes
1 answers

Traversing a DataGridView

I'd like to traverse through a table of SQL-generated data and change the colour of the rows which meet the following condition: isAdmin = FormStaffManager.Instance.CheckIfAdmin(adminPineID); if (isAdmin > 0) The grid ...

Feedback