I have a hidden input on my form, and my JavaScript code writes there dynamically generated string based on the user behavior on the page.Later, I access to that inpput via server side code.Many users will be using this page at the same time, so what about thread safety ?I mean, could it be possible that userA has an access to that string generated by userB ? Or maybe server will read that string from each user's Web Browser ?
I have two gridviews on same page - If a record is selected in Gridview1, I need to unselect a record (if one is selected) in Gridview2 - and vice-versa.
I have an ASP.NET app that writes binary data to a SQL database. It worked fine using SQL Express, but does not ever write the data using SQL Server 2008 R2. SQL Profiler shows the binary data in the UPDATE query, but nothing happens... no errors, no data saved. Does anyone know what I'm missing? Other data types work fine.
i have write data from db to .txt file,where db have large amount data,i need to wite data into file, if some error occure, then reInitiated that file and write data again without stop process.that is Continuous calling same process
I was just wondering that when we insert some datainto database we can use the following method.
create a sql datasourse , set the conection string, set the insert comand type, set insert parameters, and Set the SQL Statement like sqldatasource.insertStatement="insert into tablename(field1, field2) values(@parameter1, @parameter2)";
and then call the datasourse insert() function, this method is usually used for single line insertion at the end of the DB.
Now I am a starter in asp.net c#,
I want to know that if There is a way that I have lots of data like some XML file that have the same table structure as the SQL database table and I want to write that data to the database, HOw to do it Properly,
I can Still achieve the required results by iterating through XML datarows and for each row conecting to db and inserting and then disconecting dfrom the db,
But I want to know that if there is a way to do it in one go meaning I have to conect to database only one time,
Note: I already have some data in my SQL table, there are three fields(ID Name and Nickname) the ID(primary key) is INT type and auto incremented, the name and nickname are strigns. the xml file has the structure
How to get the selected item from the listbox in the selected index changed event. I tried: Label1.Text = ListBox1.SelectedItem.Text; It is giving me object set to null reference.
foreach (ListItem item in ListBox1.Items) { if (item.Selected) { //lblResults.Text += item.Text + " "; Label1.Text = item.Text; } }
I have a web page (Provider) that creates an XML file to be send to the Requester in this fashion:
1. A Requester page needs to send an XML file to the provider page 2. Provider will read the XML file to authenticate the request 3. Provider will Create an xml file with some data. 4. Provider will send the xml file back to the Requester.
Can anyone provide sample code for both the Requestor page (step 1) and the Provider page (steps 2 & 3)
I'm looking for a quick way to log some data - I seem to remember a way to write to the access log, similar to System.Out.Println() but I can't seem to remember how to do it.I can't attach a debugger, nor can I add additional information to the web app via Response.Write().Is there a simple way - a single statement with no configuration changes would be ideal - to write to either the error or access logs?
I would like to read from a data reader (or other) and write to a grid of some kind one row at a time in a loop. I prefer this rather than load a data bound grid control all at once. I need to do this because I have to perform some calculations on the data before writing each row.
I've created 2 web user controls. A = User control that displays an image, and B is the user control that hosts A. I'm trying to stream an array of bytes to A, but it seems like the Response.BinaryWrite method completely overwrites any heirachial controls (I can't see any of B's other controls besides the image).
How do I get A to just display the image from the byte stream? It doesn't come from a database, it's an image I created on the fly.
I've got an asp.net application (written in vb.net). I have a results page that spits out some calculations. Ineed to write out that output to MS Word. The catch is, this happens within a folder that is secured (only users that are logged in can generate the word document).
Here's what I'm using to gen the document. This works ok when running it locally, but not when loaded to GoDaddy hosting.
[Code]....
My code seems works fine locally. However, after loading it to GoDaddy it only works on a non-secured (not subject to ASP Membership), but when trying to use it in a secured folder the page clocks and eventually closes out.
i just cannot work this out... i have a gridview and when a user clicks on a row the checkbox unchecks itself... when the user clicks the row a sqldatasource.update is called from the selectedindexchanged event, problem is when it writes back to the database it writes back every checkbox as unchecked, i want just the row that's selected...
what i can't work out is i've tried putting a where clause in the sqlcommand which is something like where primarykeyID = gridview1.selectedvalue... now it won't write anything back to the database...!!! ... once i take out the where clause, it writes back to every row..!!
I'm writing an asp.net site in vs2005 asp.net c#, I'm using google charts api and found a lot of disadvantages. Which tools do you use and recommend? I need charts, pies, bars and data presentation, even payed systems can be considered(<200$ per server). I used in the past the buid in reports viewer which has a lot of bugs.
I am developing web application using csharp.How can I select details from Microsoft Excel sheet without writing sheet Name? At the moment when selecting details from Excel sheet I specify Excel sheet name like below I am using Payments$. Is it possible to use a number or something else.
I'm in a little bit of a bind and have some weird behavior happening with a multiview control behaving differently between two machines, and of course, the production machine is the broken one. The page renders the correct content on both machines, but if I save the html file the production machine's source is wrong.
For example, if for step 1 the output should be just the letter A, and step 2 the output should be just the letter B, and step 3 the output should be the letter C, here is what happens:
Step 1:
Production - The source and output are both the letter A
Dev - the source and output are both the letter A
Step 2:
Production - the source is the letter A and the ouput on the browser is the letter B
Dev - the source and output on the browser are both the letter B
Step 3:
Production - the source is the letter A and the ouput on the browser is the letter C
Dev - the source and output on the browser are both the letter C
Is this some issue with SessionState? I'm very new to Multiviews and by no means an ASP expert.