|
Hi there,
It seems current build of WAP (ASP.NET 2.0 Web Application Project) doesn't support generating the ProfileCommon class automatically when we use profile tag in web.config.
How can we doing this manually?
Thank you in advance.
|
|
|
|
|
|
Hello,
Hello i need your help ,in my project i want to download a csv formatted file from one site to my site ftp details are given for accessing that site.can anybody help me how can i download that file using asp.net c# .i am waiting for ur valuable response.
Thank you.
alex.
|
|
|
|
|
you could achive this using System.net namespace object HttpWebRequest there is a method download() on this object that can download the page requested
Nobody is perfect i'm Nobody
|
|
|
|
|
Dear sir,
How to load images in asp.net with mysql database.
Sorry for my bad english.
|
|
|
|
|
Hi Guy!
Think you load image to a folder in server and then save path of the image to database.
Best regards.;P
|
|
|
|
|
|
Hello every one,
I have a problem that i recieve null reference object exception in system.dll when i want to access Method of the dotnet application through java application. Below i give explaination of my work. That is my first corba complient application. I have follow the instructions as mentioned in the article below
http://www.codeproject.com/csharp/dist_object_system.asp
First i have created the server appplication named IIOPServer, code of this server application are written as follows,
IiopChannel objChannel = new IiopChannel(7999);
ChannelServices.RegisterChannel(objChannel);
RemoteMethods objMethods = new RemoteMethods();
RemotingServices.Marshal(objMethods , "remoteMethods");
and my RemoteMethods Class has the following methods
public double Add(double num1 , double num2)
{
return num1 + num2;
}
public double Subtract(double num1 , double num2)
{
return num1 - num2;
}
public double Divide(double num1 , double num2)
{
return num1 / num2;
}
public double Product(double num1 , double num2)
{
return num1 * num2;
}
after creating the server application, i creat its IDL file using IIOPNet utility, named as "CLSIDLGenerator" by writing the following lines in the command prompt ,
c:\iiop\iiopnet\CLSToIDLGenerator\bin\CLSToIDLGenerator RemoteMethods
-o c:\working\projects\IIOP\IIOPServer c:\working\projects\IIOP
\IIOPServer\bin\Debug\IIOPServer.dll.
Its create RemoteMethods.idl file in IIOPServer directory.
Then i convert this IDL file to java files using IDLJ utility of java, by wtitting the following lines.
C:\jdk1.4\bin>idlj -td c:\working\projects\iiop\iiopclient -i c:\jdk1.4\lib
-i c:\iiop\iiopnet\CLSToIDLGenerator\Bin C:\Working\Projects\IIOP\
IIOPServer\RemoteMethods.idl
its create five java files in the IIOPClient folder.
In the next step i write code of the IIOPClient application in java. Code the IIOPClient.java is as follows,
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import Ch.Elca.Iiop.GenericUserException;
import IIOPServer.*;
class IIOPClient
{
public static void main(String[] args)
{
RemoteMethods m = null;
try {
InitialContext ic = new InitialContext();
Object obj = ic.lookup("remoteMethods");
m = (RemoteMethods) PortableRemoteObject.narrow(obj, RemoteMethods.class);
System.out.println("Addition: " + m.Add(20,4));
System.out.println("Subtraction: " + m.Subtract(20,4));
System.out.println("division: " + m.Divide(20,4));
System.out.println("Multiplication: " + m.Product(20,4));
} catch (Exception e) {
System.out.println("Exception: " + e.getMessage());
}
}
}
this file is saved in IIOPClient folder. Then i compile this java file to create its class file. And in next step i am going to run IIOPClient application by writting the following line of commands
C:\jdk1.4\bin>java -Djava.naming.factory.initial=com.sun.jndi.
cosnaming.CNCtxFactory -Djava.naming.provider.url=
iiop://localhost:7999 -classpath c:\working\proj
ects\iiop\iiopclient IIOPClient
but it could not find RemoteMethods object on port 7999 and give an error that
"NullReferenceObject" in System.dll
Good Luck
-- modified at 3:03 Saturday 22nd July, 2006
|
|
|
|
|
I want to Print a page that have a Printbutton but Without The button
How can i do it??
MHF
|
|
|
|
|
what exactly you want to do ??
&
asp.net 1.1 or 2.0
regards
GV Ramana
|
|
|
|
|
ASP.net 1.1
my Page have a button that when i click the button i want to print the page WITHOUT BUTTON ?
MHF
|
|
|
|
|
add this code in page load
button1.Attributes.Add("onclick","window.print();");
regards
GV Ramana
|
|
|
|
|
In my asp.net 1.1 gird
first column is checkbox(template column) other three columns are bounded columns(template columns). i am binding 2nd column is like this
<ItemTemplate><br />
<%# DataBinder.Eval(Container.DataItem, "NAME")%><br />
</ItemTemplate>
i provided one button bottom of the gird. when clicking on button i am retrieving 2nd cell value and doing some operations. my button1_click code
foreach(DataGridItem dgi in datagrid1.Items) <br />
{<br />
CheckBox chk = (CheckBox)dgi.Cells[0].FindControl("chkSelect");<br />
if(chk.Checked)<br />
{<br />
string sName = dgi.Cells[2].Text <br />
CallingAnotherFunction(sName);<br />
OneMoreOperation(sName);<br />
}<br />
}
Note: my page_load event code is kept in
if(!IsPostBack){//page load binding code }
my problem is sName field is always coming blank.
anybody any sounds
awaiting for response
regards
GV Ramana
-- modified at 2:58 Saturday 22nd July, 2006
|
|
|
|
|
hai,
bool check = ((CheckBox)dataGridItem.FindControl("IsGraduateField")).Checked;
it returns boolean value
check it out it may help full
with reagards
d.ravi kiran reddy
|
|
|
|
|
hi
thx for reply
here i want to find the 2nd cell value i.e bounded column not checkbox column.
regards
GV Ramana
|
|
|
|
|
you try with cells[1].controls[0] probably this will give you the required value.
Best Regards,
Apurva Kaushal
|
|
|
|
|
hi all
i have a prblom ,i want to convert the English date into Islamic data (hijri date) can some one tell me how to convert ?or someone have the control or if some one have algorihtm or some code snippet it would be helpfull for me..
i want to use it on my asp.net website.
i shall be very thankfull if some help me.
waiting
best rEGARDS
|
|
|
|
|
You can Write A class That Convert it But
you can search in the Internet To find it (I think there is a NameSpace With the Name "Pcal" that do it
MHF
|
|
|
|
|
Hi
here
1) if your machine setting is as per the islamic.
then
DateTime dtNow = DateTime.Now;<br />
string strdate = dtNow.ToString("g",System.Globalization.CultureInfo.InstalledUICulture);<br />
or you can specify the
2)
string strdate = dtNow.ToString("g",System.Globalization.CultureInfo.CurrentUICulture);<br />
<br />
* d :08/17/2000<br />
* D :Thursday, August 17, 2000<br />
* f :Thursday, August 17, 2000 16:32<br />
* F :Thursday, August 17, 2000 16:32:32<br />
* g :08/17/2000 16:32<br />
* G :08/17/2000 16:32:32<br />
* m :August 17<br />
* r :Thu, 17 Aug 2000 23:32:32 GMT<br />
* s :2000-08-17T16:32:32<br />
* t :16:32<br />
* T :16:32:32<br />
* u :2000-08-17 23:32:32Z<br />
* U :Thursday, August 17, 2000 23:32:32<br />
* y :August, 2000<br />
* dddd, MMMM dd yyyy :Thursday, August 17 2000<br />
* ddd, MMM d "'"yy :Thu, Aug 17 '00<br />
* dddd, MMMM dd :Thursday, August 17<br />
* M/yy :8/00<br />
* dd-MM-yy :17-08-00
regards
GV Ramana
|
|
|
|
|
How to resize a datagrid at run time using Asp.net and VB as code behind.
|
|
|
|
|
Hello
I use vs 2005. Can anyone tell me where i can find a tutorial to do something like www.orca.com main animation(the world zone selection) ??
|
|
|
|
|
I'm trying to publish an ASP.NET application with VS 2005, and after I choose the folder everything goes smoothly and the Output window tells me
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========<br />
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
But the folder it's supposed to publish to is empty.
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
IMHO, there are a couple of things that you may try:
+ Choose the File System for the Target Location if you don't.
+ Use the ASP.NET compile tool: aspnet_compiler.exe.
+ Try with a new location.
+ Try publishing with a simple application.
|
|
|
|
|
minhpc_bk wrote: Choose the File System for the Target Location if you don't.
I do.
minhpc_bk wrote: Try with a new location
I tried different locations. Same result.
minhpc_bk wrote: Try publishing with a simple application
This is just the thing. It doesn't work for this applciation. For others it's ok. Someone said on the asp.net forums to create a new project and add the files from the ex-project one by one. This has the effect on working again for him. Eventually if everything else goes wrong, I'm gonna try it, though it's a big project
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Fixed it. I ran aspnet_compiler with the -errostack directive in the shell prompt and the output was the following error: HttpParseException: Unexpected end of file looking for </link> tag .
Aparently some of my pages were not XHTML compliant. After closing properly the tags, everythign runs smoothly and the website publishes correctly.
But what the heck did that error emerge in the first place? I have no doctype in my pages specifying that my pages should be XHTML compliant.
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|