|
the project is split into 2 parts
the web application and windows application
through windows application i have to download a csv file from a site to myPC
automatically and then upload the same to the website automatically.It would be a great help if i could get the code in VB.NET for both upload and download as well.
AMIT(TATA CMC)
-- modified at 0:59 Monday 10th July, 2006
|
|
|
|
|
So you want the code for all of this? Hang on a wee minute while i go off and do it for you...
There are upload/download articles on this site if you have a search, they should give you an idea of where to start ![Smile | :)](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|
|
Hi,
I have a dynamically created Datatable for a Datagrid.On first Page, i add the data entered in the textboxes to the Datagrid using Datatable. Then i go to the next Page. When i come back to the First Page,i cant see the Datagrid and data in it. But values in the textbox are there as i used
Session("A")=textbox.text. When i tried the same for a datatable,as
Session("Table")=dt where dt is datatable,it is not working. How to get the values in the datatable and datagrid.
|
|
|
|
|
i think you need to reassign the updated datatable to session before going to next page.
sorry if i did't understand the question properly.
Nav.
|
|
|
|
|
hi guy,.
i have some problem here.
i want to get my data out as a string or using sql but i cannot find any source of it.
i dont wan to use datagrid. is there other way.?
i need to use a Response.Write(content) to write the data out..
please help me asap..
_________________
regards
bang
|
|
|
|
|
Save the Excel sheet as a CSV(Comma seperated value). You can then parse the csv file and manipulate the contents and display it.
In faith there is enough light for those who want to believe and enough shadows to blind those who don't.
- Blaise Pascal
|
|
|
|
|
u mean i can change using asp.net coding to CSV?
cos after i can get the data out from the excel i later still need to change the data from excel.
and how to manipulate the contents and display it.
sorry i new to asp.net..
thanks and regards
bang
|
|
|
|
|
You should save the .xls file as a .csv file. Then give the .csv file as the input to your program. You can parse the .csv file like the way you parse a text file.
In faith there is enough light for those who want to believe and enough shadows to blind those who don't.
- Blaise Pascal
|
|
|
|
|
MM.. but if later part i hav to update my excel.. will it affect the coding or CSV file?
do u hav any small sample to see.?
|
|
|
|
|
I have a DataGrid whose contents I query from the database. I am using C# to code my project. Many rows being displayed in the DataGrid does not helped user by using the menubar from Internet Explorer, Print and Print Preview to print the information. Can it be done literally without the copy paste of the datagrid method to excel sheet or micorsoft word?
thanks in advance. Much appreciated.
|
|
|
|
|
can you just modify your stylesheet and add a @media print style so the grid is 'not diplayed' (as such, at least the grid components, like pager, grid lines etc) and format the internal grid data as you please?
hth,
g00fy
|
|
|
|
|
@media print style? I am not familiar with that. Any samples?
thanks in advance. Much appreciated.
|
|
|
|
|
http://webdesign.about.com/cs/css/a/aa042103a.htm
|
|
|
|
|
Hi,
One thing you can do is ... generate table from the datagrid.
THis will give u a nice layout and perfect look of the print out.
Thanks,
Sushant Duggal.
|
|
|
|
|
A good idea. Thanks. Do you have any links? The method of generating it?
thanks in advance. Much appreciated.
|
|
|
|
|
|
Hi,
Yes you can use this code .. but it will be better to develop your own code .. as you can do this without using graphics(GDI+).
Just create a table from the datagrid (Generate DataTable) and use it
I hope it works,
THanks
Sushant Duggal.
Sushant Duggal.
|
|
|
|
|
Hai
I would like to use a free open source Data Block in my Web project. Can anyone suggest some good and excellent among them.
Thanks in advance
|
|
|
|
|
|
Hi
I have 3 frames Left, top and main content area - is there a way to force refresh of the left frame from the main content frame?
(all frames have a .aspx page)
thanks in advance!
|
|
|
|
|
try this
parent.leftFrame.window.location.reload();
Nav.
|
|
|
|
|
Does it support reload(), I am not sure, but I used to do something like this..
window.parent.frames[0].location.href='yourleftframe src.html'
|
|
|
|
|
Hi
I created a master page and put a treeview control in there on the left side table layout want to use the right side for different pages.
but the problem is i have a textbox and search button above the treeview and the treeview is loaded depending on what search string you type in. then i can click on a treenode and click a button on the top menu called addSubTreeNode - the right content panel should have a few text boxes for adding details of this TreeNode - but when i do this the treeview disappears - i want it to stay how it was on the mainpage.aspx - even when i goto this new addsubtreenode.aspx for adding a subTreeNode. (sort of like if i had frames and the treeview page remained the same - i want it to be in the same state as it was on mainpage.aspx when i natigate to addsubtreenode.aspx) (both these aspx pages are derieved from the master page and the treenode code is on the masterpage)
is this possible without frames?
thanks
-- modified at 19:14 Sunday 9th July, 2006
|
|
|
|
|
Hi,
I ran into this problem for the first time since I was working with .Net framework. You can't get (directly) to the query string of the page if your aspx is contained into a frame. It's possible to get it though the UrlRefferer object and to parse out the string.
My question is if you know some other way...
Appreciate it,
Cheers
|
|
|
|
|
Add the querystring to the URLs in the frame tags in the code in the frameset page.
---
b { font-weight: normal; }
|
|
|
|