|
honeysip wrote: I am able to store the uploaded file in the database,but not able to retrieve
So you need to show the contents to a text box ? Right. Try saving the file after reading from database to a temporary place. Then read it from there. Read contents to a byte array and save it using FileStream object. Then try reading file from that location. But still I am not sure that you can read a word file using StreamReader without loosing the formatting !
|
|
|
|
|
hi guys,.
i have one doubt friends.. I create one .net application. its run fine but in future i want to add new functionality to my old application to perform faster and robustness.. in this situation my client wants to migrate old version to new version.. how to solve this problem bcoze my client in abroad i am in india..
rply me!!
|
|
|
|
|
You just need to install the version of .NET framework along with VS version(to which you are looking to upgrade). Thereafter, you can migrate your earlier projects to the new version by some easy steps.
If this does not solve this issue, then please give a detail description of your requirements.
Regards,
Amit Pal
|
|
|
|
|
hi.. In my side no problem, but my abroad client wants to switchover to new version.. for eg:- my client working with old version ref by(1.0.0.1) but i develope that application with extra features last one year.. in this situation my client approach me to migrate new version ref by(1.0.1.0)..
so how to solve this problem..
|
|
|
|
|
I have tried to connection SQL Server, but I always get the same error:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80004005)
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
/bhxhtth.com.vn/csdl/kndl_kocandns.asp, line 23
Here my code:
<%
dim oConn
dim oRS
dim strSource
set oCOnn=server.CreateObject("adodb.connection")
set ors=server.CreateObject("adodb.recordset")
strSource = "PROVIDER=SQLOLEDB;DATA SOURCE=10.0.0.1;DATABASE=MISBHXH;User Id=sa; Password=sa;Network Library=dbmssocn;"
oConn.ConnectionString = strSource
oConn.Open
sqltext = "Select MADVI, TEN from HOSOCN;"
ors.Open sqltext, oConn
Response.write ""
Response.Write ors.GetString(,-1," | "," | "," ")
Response.write " | "
oRS.Close
Set oRS=nothing
oConn.close
Set oConn=nothing
%>
Please advise
Thanks.
|
|
|
|
|
try replacing DATABASE= in your connectionstring with INITIAL CATALOG=
|
|
|
|
|
I thank sqltext = "Select MADVI, TEN from HOSOCN;" is Error and the right is sqltext = "Select MADVI, TEN from HOSOCN"
|
|
|
|
|
Hey guys
Any idea about "Upload File via FTP using ASP.net 1.1"???
|
|
|
|
|
Use the Save AS.. method for file upload control to save youe file on to server then give the path for your server where you want to store the file.
|
|
|
|
|
FTP in ASP.NET 1.1 is a bit cumbersome process compared to .NET 2.0 where different new classes have been added. You may view following forum post which gives an idea on how to create your own FTP client in 1.1:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=421403&SiteID=1
Also note that in order to write an ASP.NET application that allows users to transfer files to and from FTP servers, the files must make two trips.
To upload files from a browser to the FTP Server would require:
1. The files to be located on the web server, because this is the FTP client. Therefore, the files must be uploaded to the web server from the browser. This is done using HTTP and not through FTP.
2. Once a file is on the web server, it can then be transferred to the FTP server using FTP communication.
The crux is, you have to use HTTP as well as FTP communication for the same
Regards,
Amit Pal
|
|
|
|
|
Hi Programmers,
In my application i m using 30 session varialbles.i want to know will it effect the application access speed,if the number of users are 5 how will it effect,if the number of users are many how it will effect.please suggest if this is not good then what is the solution for this.
waiting for reply
|
|
|
|
|
well using more and more session effects server speed. You can reduce number of sessions by passing information through querystring etc.
|
|
|
|
|
Definetly as session are going to store at server side the memory requirement for your application will increase if you use many session variables so if you have to store 3 to 5 varaibles then you can use session but 30 session varaibles sounds bad ...
Why are you storing those things in session ...... ?
Why don't you use database or pass them in query string if data is not concern to security ....
Or yuo can create xml files to store the data
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
After repeated attempts, I have un-istalled IIS on the server and tried to Reinstall it again.The files on the installation cd seems to be corrupt because it cannot be copied across.As a result, the Exchange is no longer working due to the smtp service being removed.Is the some way to install IIS from an exe application or can these files be downloaded from somewhere?I Have tried to use the files from Windows server 2003 but it does not work.
Thanks
-- modified at 5:13 Thursday 20th September, 2007
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
|
|
|
|
|
Dear All
plz tell me what is the ciode for back button in ASP.NET with C#, i want the back to redirect the viewer to the page from where he/she was come on the currect page.
with regards
Yogesh Agarwal
|
|
|
|
|
Why not to use Javascript Back button
<INPUT TYPE="BUTTON" VALUE="Go Back" <br />
ONCLICK="history.go(-1)">
|
|
|
|
|
you can write '' or on button click write 'Response.Redirect (Request.UrlReferrer.ToString());'
|
|
|
|
|
was binding the data with the datagrid.i am binding the data through three tables.all the tables hava a common column field .i am using the hyperlink control to pass the id to another page.id belongs to the column name (which is common to all the tables that i mentioned a while ago).now the problem is i am getting the following error.
<b>DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'vcode'.</b>
i am using the following code
<asp:HyperLink ID="id" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"Pass")%>' NavigateUrl='<%#"DetailInformation.aspx?vcode=" + DataBinder.Eval(Container.DataItem,"vcode")%>'></asp:hyperlink>
problem is occuring in vcode
-- modified at 4:09 Thursday 20th September, 2007
Soniagupta1@yahoo.co.in
|
|
|
|
|
vcode column name doest not exist in your resulting Dataset.
YOUR SQL QEURY DOES NOT RETURN VCODE DATAFIELD NAME.
RUN YOUR SQL QUERY IN SQL QUERY ANALYSER AND CHECK OUT RESULT.
BEST REGARD
PATHAN
---------------------------------------------------
|
|
|
|
|
i am using the query in the following manner.
select * from table1,table2
now vcode is comming , i have checked in the database using views as well.
Soniagupta1@yahoo.co.in
|
|
|
|
|
Hi all!
I am using RDLC reports with ASP.Net and am experiencing a problem displaying the reportviewer in the content pane of a master page. I need to make the reportviewer to dock onto the content pane of the masterpage such that the reportviewer will always fit onto the content pane as the page is viewed from different display resolutions. Any assistance will be highly appreciated.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
|
|
|
|
|
Hi All,
I am trying to write a application by using asp.net and c# for validating the XML data to ensure that it is structured properly and contains valid data types that properly match up with database fields. Does anyone have a code example to do this?
Thank you for any help.
Thanks & Regards,
Pravat Sharma
|
|
|
|
|
i need to design a enevlope and label design and print software in vb.i dont know how do i do it.please goto MS word->tools->letters and mailings -> envelope and labels under that labels part needs to implemented.this is used to design ur own lable sheet and print it.also need to provide feature for backgroung image.logo image and stuff.crystal reports do provide feature for designing labels but not on a run.so please help as to how it can be done.if u have any code then plz send.we can share royality
neeraj
neerajkumar03@gmail.com
|
|
|
|
|
Please help me.
I creat a form like this
label_1 as display the employee ID
textbox_1 as employee address
Now I want update the address
I writing a coding like this
dim con as sqlconnection(connectionstring)
dim cmd as sqlcommand("select empID from Employee", con)
dim adapter as sqldataadapter(cmd)
dim ds as new dataset
try
if session("ds") is nothing then
con.open()
adapter.fill(ds,"Employee")
session("ds") = ds
endif
finally
con.close()
endtry
My form is
asp:label id=mylabel text = "<%=session("ds")("EmpID")%>" runat="server"
....
I need how to display emplyee ID (EmpID) into the form as label_1
this action continue the button click the next employee ID
display the Label_1 upto end of table. (assume the table
contain 20 records)
I try the session state but not working.
Please give me actual coding in VB format.
Thanking you in advance
abglorie
abglorie
|
|
|
|
|
Hi,
I have a datagrid which is created by keeping EnableViewState property "False".
My question is even after keeping EnableViewState property "False" can i get the grid rows/data after the postback through Request.Form or any other way? An early reply will be really helpful.
Regards,
Anees
|
|
|
|