2
Answers

Open Network Folder

Paul Arthur

Paul Arthur

8y
356
1
Hi,
 
I need some way of opening a network folder after I have inserted data into a SQL audit table. I have the audit bit done but need code to execute after this opening a network folder.
 
 file://Server/Location/Reports
 
Can someone please help me solve this problem. If I do  Response.Redirect() like I have when I am redirecting to web pages it throws a 'This page can’t be displayed' error.
 
Thank you in advance.
 
Paul 
Answers (2)
0
ali tuncer

ali tuncer

NA 2.9k 108 8y

Vincent is right, I thought you were using DataGrid control in Winforms..

You could add rows to Datatable..set Datatable as your Datasource for datagrid...


 

0
Vincent Maverick Durano

Vincent Maverick Durano

NA 19.1k 2.2m 8y
DataGrid uses Items instead of Rows. 
 
If you want to add data to DataGrid then you need to add data to your DataSource instead of your DataGrid since the grid render the data based on your data source.
 
Check this link for example: https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid.items(v=vs.110).aspx 
0
Carlos kambui

Carlos kambui

NA 392 56.4k 8y
asp.net
 
0
ali tuncer

ali tuncer

NA 2.9k 108 8y
Is this Winform?, can you see Rows in intellisense after dgv1? 
0
Carlos kambui

Carlos kambui

NA 392 56.4k 8y
i have done and encountered this error
'System.Array' does not contain a definition for 'Rows' and no extension method 'Rows' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?) 
 
0
ali tuncer

ali tuncer

NA 2.9k 108 8y

parameters are wrong, try this way:

string[] testrow = new string[] { txtname.text,txtAge.Text,txtGender.text };
dgv1.Rows.Add(testrow);