|
I have created mainProject in Webapplication using VB.Net.Created another project i.e Project2 under that solution.This is For accesing Database we have created the class file.Main Project created the object to access the class.It's working fine
But if u load the whole project in another machine,it's not accessing the class.If u debug,it's not accessing the class.we gave Reference and also created the object in the web page to access the class.
Can anyone help me,regarding this problem.
My code is, GetList is a function of the class clssearch.
Imports project2
Private obj1 as clssearch
Dim ResDT as DataTable
ResDT = obj1.GetList() 'Here it's not accessing the function.In the debug mode also,it's not
accesiing class.So ResultDT is nothing
If Not ResultDT Is Nothing Then
'some code
Else
lblMsg.Text = "No Results Found!"
radsgr
|
|
|
|
|
Again take the reference of your project (which access the database)
and rebuild the solution
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Thanks for replying me.I have tried that also.Remove and add the reference agian.Rebuilded the solution.Still the same.Please help us regarding this problem.
radsgr
|
|
|
|
|
Please make sure the class name in this way
dim obj as project2.yourclassname
Also make sure the access specifire of class, function & property etc which yoy want to access.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Thanks for helping us.after changing the reference,close the soltuion and restarted the computer.
working fine.
radsgr
|
|
|
|
|
I need to create a new directory that will be named by reading from a form, and copy files and folders from _root to that new directory. is this possible in ASP.NET, im using shared hosting that allows me to adjust the privileges. I am very new to ASP. I know PHP, so any help would be greatly appreciated.
|
|
|
|
|
You need to copy files from the client to the server, from the server to the client, or all on the server ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You need to do something like this:
imports Microsoft.VisualBasic<br />
<br />
private sub filetransfer()<br />
dim pfile as string<br />
'This will create a folder in c:\ with the name<br />
'it gets from a field called "user_directory" on the HTML form:<br />
mkdir("c:\" & form("user_directory"))<br />
<br />
'This will loop thru all the files in your root directory and<br />
'copy them to this new folder:<br />
pfile=dir("c:\inetpub\wwwroot")<br />
do while pfile<>""<br />
filecopy("c:\inetpub\wwwroot\" & pfile, "c:\" & _<br />
form("user_directory") & "\" & pfile<br />
pfile=dir()<br />
loop<br />
end sub<br />
when you want something, the universe conspires in helping you achieve it
|
|
|
|
|
Im Trying to copy from server to the same server. basically just copying the root directory to a sub-directory. But the sub directory has to be named after what a admin puts in the html form
|
|
|
|
|
Dear All,
I have implemented a crystal report on VS2003 and i have 2 problems,
First, i donno how to actvate a print button "it used to be there in VS2005" the second problem is that there is about 300 blank pixels on the left of the report so whe i use the standard print "from the explorer" the page is split into 2 pages (horizontally). U use landscape paper...
Any clues of how i can solve this?
Thanx in advance
Best Regards
3ala2
|
|
|
|
|
u can use following method to fix your all problems.
convert your ReportDocument to pdf file and show pdf file in browser.
and code's of this method:
<code>
System.IO.MemoryStream oStream;
oStream = (System.IO.MemoryStream)rptDoc.ExportToStream(
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
</code>
We Can Do Anything, If We Want It
|
|
|
|
|
Hi!
Kindly tell me how i can show poling results in graphical representation on my web by using ASP.NET???
Plzz reply me soon
Advance Thanx
Bye
anbul
|
|
|
|
|
You need to build bitmaps on the server, then show them in your page. There are numerous commercial and free components for creating images of graphs.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi!
tell me plz how i can get these components???
anbul
|
|
|
|
|
Dundas sells one. Google knows where the others are, I don't.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I have developed a small web site in ASP.net 2.0.
I want to implement a RSS feed to the site so that I can display the updated news on the site.
Could you please guide me how can I implement the RSS in my website?
--
Ravi
|
|
|
|
|
All you have to do is to create a page that returns an xml document that follows some RSS standard. There are also libraries that you can use, whichever you find easiest.
Here you find some information, examples and links: Wikipedia: RSS[^].
---
single minded; short sighted; long gone;
|
|
|
|
|
Rss Feed is a simple XML file, Just look how the rss looks like, and write a class to create a Feed.
|
|
|
|
|
How to create a web application using MVC pattern approach?
gadix
|
|
|
|
|
|
thanks very much John
gadix
|
|
|
|
|
You are Most Welcome...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
hi
can i prohibit the ctrl key function just like
ctrl+C - copy ,ctrl+P - print after running the application on web page? if yes then how ?
Thanks
bye
|
|
|
|
|
Yes you can do it try :
for ctrl + c :
for ctrl + p : no need javascript
@media print {
body { display:none }
}
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
Thanks
it helped me greately. my problem is solved.
now tell me how to clock 'save as' option in application at run time?
Thanks
bye
|
|
|
|