No, that's not going to work. You need to rethink your architecture. I suspect you need to change your dataTableDocuments to have a record per parent id, even if they are stored as a csv. I'd say don't store them that way in the first place, just add records for each parent relationship.
please specify complete code along with necessary table to be built in SQL Server 2005 Express Edition
Dream on, buddy, we're not here to do your work for you.
If you don't want to display the contents of the doc file, it's pretty trivial. You use an upload control, which is the only way to upload a file, then you store it as a blob with an id in the database. Then you make your download URL pass the id, get the blob from the DB and send it to the user.
Hi, I am getting the following error by reading the data from CSV file to dataset.
"'C:\Documents and Settings\satish.gorijala\Desktop\csvData.csv' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides"
string _filepath = @"C:\Documents and Settings\satish.gorijala\Desktop\csvData.csv";
string _fileexten = Path.GetExtension(_filepath);
string strConn = "";
if (_fileexten == ".csv")
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + _filepath + ";Extended Properties='text;HDR=Yes';";
OleDbConnection oledbconn = new OleDbConnection(strConn);
OleDbDataAdapter myCommand = new OleDbDataAdapter("SELECT * FROM [Sheet1$]", oledbconn);
DataSet myDataSet = new DataSet();
dt = myDataSet.Tables;
i show my files in gridview, and i have a column that is checkbox and i can select multiple file. i want with select multiple checkbox i can send multiple file to print. can i do this? can anybody help me? plz
Any one suggest me how to edit my url and submit the page on button click with out using Response.redirect.
this is my page, on button click the page should submit and reload, the url should look like www.mysite.com/default.aspx?step=1 (no response.redirect, because i am losing the viewstate even though i set the EnableViewState="true")
If you redirect (for this read reload), you will not get any viewstate, you are reloading the page. Can you not just set a Viewstate-ed variable when you post back in the button click and re-bind your page?
We are using custom http handler, where we fetch large data value from a text field of database.
We later split this large data into chunks and write to response objects.
We are facing unique problem when the text size is nearly 4mb and when we are trying to write to context.Response.Write. It does not write in a single attempt, but calls the HandleRequest many times trying to write. In this time I am getting internet message Operation aborted.
Can any one tell how to overcome this scenario.
Basically you need to make sure you give the controls that contain the values, ids that you can use to find those controls in js. A common way is to append the row number to the fields and build the ids row by row
In response to this question[^] on Stack Overflow, I have received less that satisfactory answers. One points to an example of how to add code behind to a view ( ), and another suggests "foreach is your friend". Just where would I use foreach, except in the controller injecting other sub-views into the view, but that is just a little too close to coupling controller and view. I can't believe the answerer meant in the actual view page, unless with JS, adding rows to a table based on view data.
How do I achieve the same effect as a dynamic row Repeater control, or even dynamic columns as well, as in a GridView, in a pure MVC model?
I am only confusing that what should be Smtp server name for my website..
when I am setting "localhost", it sends a mail which is stored in queue of mailroot on hard drive. But when i am uploading this it is not working..
how can i know my smtp server name?
Or is there any other mistake in the code or configuration?