|
Thanks once again for celrifying that. Would a starter kit consider a Portal? or just a template?
|
|
|
|
|
|
Flanakin wrote: I don't like VB, but I still think DNN is the better solution and have chosen to use it for several of my clients.
And, of course, if you are doing custom module developement you can still develop them in C#.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
I want to find the time when a given URI is last modified, I used HttpWebRequest.IfModifiedSince but the result return is the current dateTime. I want to compare the IfModifiedSince with the time last visit so that I would know whether the page has been changed since I last visit.
And did anyone know how to export my favorites using coding?
|
|
|
|
|
Hi, I want to use a COM component and I have the SDK for it, but how do I use it?
How do I make a "API call" from a C# application? Could you perhaps give me a demo application?
|
|
|
|
|
You can import any COM object in Visual studio by adding a reference to it in your project. There's P/Invoke for native win32 API's.
[DllImport(<dll_name>)]<br />
public static external void someFunction(...);
WM.
What about weapons of mass-construction?
|
|
|
|
|
I am a GIS programmer in a company in India.I have seen your bog fixing in CODE comments. I have to Alter a DBF file , basically I have to add a column to my DBF table. but I am getting error like
Couldn't open C:\final data\22.dbf file
Same when I am using in other method with select query works fine ...
I do hve the same problem which u faced but still I am not getting the right answer for this .Plz help me .The Code snippet which I am using is as follows.
try
{
string ConnectionString="User ID=;DSN=;Collating Sequence=MACHINE;Data Source= ' C:\\final data\\22.dbf ' ;Provider=VFPOLEDB.1;Cache Authentication=False;Mask Password=False;persist security info=False;Mode=Share Deny None;Extended Properties=;Encrypt Password=False";
OleDbConnection dconn=new OleDbConnection();
dconn.ConnectionString = ConnectionString;
dconn.Open();
OleDbCommand mycmd=new OleDbCommand();
OleDbCommand myCmd = new OleDbCommand("ALTER TABLE 'C:\\final data\\22.dbf' ADD UID int ", dconn);
myCmd.ExecuteNonQuery();
}
catch(OleDbException ex)
{
MessageBox.Show(ex.Message);
}
Plz help me in this regards,Its urgent
Thanks a Lot
Anil Dhiman
GIS Engineer
Nucleus Netsoft & GIS Ltd
hi it is rudara
|
|
|
|
|
I am using Crystal Reports.Net 2002. How do I connect to a password protected Access database? I have gone through the Report expert and chosen the database and entered the password.
When I run the program however a "Database Login Screen" comes up asking for a: ServerName, Database, Login ID, and a Password. I tried to enter the Database path, I used "Admin" for the Login ID and the Password but all I got was "Login Failed please try again". I tried just entering the Database path and Password but got the same "Login Failed please try again" screen.
|
|
|
|
|
Hi,
I am looking for some help or guidance in order to build the following kind of XML messages (see below). I have not succeeded with SoapFormatter so far. The problem here is how to incorporate ebXML into SOAP envelop with C#. Will appreciate your input.
<SOAP:Envelope xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/
http://www.oasis-open.org/committees/ebxml-msg/schema/envelope.xsd
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd
http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
<SOAP:Header>
<eb:MessageHeader SOAP:mustUnderstand="1" eb:version="2.0">
<eb:From>
<eb:PartyId>urn:duns:123456789</eb:PartyId>
</eb:From>
<eb:To>
<eb:PartyId>urn:duns:912345678</eb:PartyId>
</eb:To>
<eb:CPAId>20001209-133003-28572</eb:CPAId>
<eb:ConversationId>20001209-133003-28572</eb:ConversationId>
<eb:Service>urn:services:SupplierOrderProcessing</eb:Service>
<eb:Action>NewOrder</eb:Action>
<eb:MessageData>
<eb:MessageId>20001209-133003-28572@example.com</eb:MessageId>
<eb:Timestamp>2001-02-15T11:12:12</eb:Timestamp>
</eb:MessageData>
</eb:MessageHeader>
</SOAP:Header>
<SOAP:Body>
<eb:Manifest eb:version="2.0">
<eb:Reference xlink:href="cid:ebxmlpayload111@example.com"
xlink:role="XLinkRole" xlink:type="simple">
<eb:Description xml:lang="en-US">Purchase Order 1</eb:Description>
</eb:Reference>
</eb:Manifest>
</SOAP:Body>
</SOAP:Envelope>
With best regards,
Bibi Watson
-- modified at 8:33 Monday 23rd January, 2006
|
|
|
|
|
Do you found any solution to implement this with .net?
Are there any libraries available?
|
|
|
|
|
hi
When I first executed the program it gave me Table inserted successfully and below the error
Unhandled Exception: System.InvalidOperationException: ExecuteNonQuery requires
an open and available Connection. The connection's current state is Closed.
at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean ex
ecuting)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Examples.Class1.Main() in c:\documents and settings\sasi\my documents\
visual studio projects\examples\class1.cs:line 34
Press any key to continue
After making changes it again me the error connection is aready opened and tables are already existed in the database so i removed the previous changes and deleted the tables from the database .At present I am getting the below error which i cant resolved it.
Cannot drop the table 'emplo', because it does not exist in the system catalog.
Press any key to continue
Please can anyone help me in this !!
sasi
|
|
|
|
|
|
in my coding I am dropping the tables if it exists else it should not bother about it and then creating the tables in the database ,if i give some other name for the database still it shows me the same error
Cannot drop the table 'emplo', because it does not exist in the system catalog.
Press any key to continue
any idea why it so !!
earlier i deleted the table manually from the Enterprise Manager is that the cause for it
sasi
|
|
|
|
|
By Manually deleting the table you did remove it, but there may still be a pointer to the table. In other words the application still thinks the table exists, but cant find it? Try 'Manually' recreating the table (only with minimum data, no need to create entire thing). Then using the proper commands empty the table, THEN delete it. that may fix the problem. otherwise you may need to use a maintenance routine to rebuild your database.
|
|
|
|
|
Hi,
I currently have a datagrid that is displaying items in an inventory. The user is able to modify inventory contents, and then there is a button to save the changes back to the SQL database.
What I would like to implement is something that will change the color of each row that the user has updated.
The only thing close that I've found is DataGrid.SelectionBackColor but the problem with that is that it changes the row color of the currently selected row, instead of row[x] in the DataGrid. So if the user moves the mouse to select a different row, the updated row loses the color, and the newly selected (non-updated) row gains it.
Anyone have a solution for a DataGrid to change the color of any row and then have it remain there?
I noticed you can't even get to an individual row with the DataGrid, there is no DataGrid.Row[x] feature. If there was, it might have a nice DataGrid.Row[x].BackColor property I could use.
Thanks in advance,
Steve
|
|
|
|
|
|
hi every body cloud you help me with convertion of object var who i get from store procedure and i don't know why but have problem with convesion.On watch view i see value "160" and when i use convert to int i get exception?(((
thak u
|
|
|
|
|
You can use obj.GetType() to find out what type object actually is. You can then cast it to the proper type.
Or you can do something like:
if(obj is int)
int x = (int)obj;
else if(obj is string)
string x = (string)obj;
else ..
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Try
{
Convert.ToInt32(obj);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message)
}
did u try like this...
If so what is the exception
Mail @
mail_sathish_s@yahoo.com
|
|
|
|
|
thank's for good answares but problem was on other pleace.))).
|
|
|
|
|
Here is the situation.
I have a Form, called Form1 that contains a button, this button is marked as private.
I have another Form, called Form2 the inherits from Form1.
I Want Form2 to be able to Show and hide the button in the base class, without exposing the button as protected / or public.
I Have created a public property on Form1 which has Get/Set into button.Visible property. All should work ok i can hear you shouting.
In the form2 designer, i can see the property mentioned above, and i can change its value, and the button obediantly shows and hides it self as expected. The problem is that When i set enabled to true, it adds code to the designer generated section, which speifically sets my property to true, and when i set it to false, it removes this code, but it does Not add code to set it to false. The defualt value of the property is set to true, but this has no effect.
I realise i can call this property in my form load, or in a constructor, but i would like to get the design time support. Other properties such as Enable work fine.
Any idas?
Trev
|
|
|
|
|
Try to add DesignerSerializationVisibility attribute:
<br />
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]<br />
public bool Description<br />
{<br />
get<br />
{<br />
return myButton.Visible;<br />
}<br />
set<br />
{<br />
myButton.Visible = value;<br />
}<br />
}<br />
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
Unfortunately this does not have any effect. I believe that for some reason the designer believes the default value is set to false, so that when i set it to false, it does not add any code.
|
|
|
|
|
In framework 1.1 I used to do Assembly.GetTypes() and get everything, web pages, web services, classes.
In framework 2.0 it’s not the same story. There are App_code…dll, App_Global.dll, App_web…dll.
The only thing I was able to get is the App_Code by ReflectionOnlyLoadFrom() method.
Is there a way to get everything like I did before?
10x
TD
Code :
internal void Run()
{
AppDomain curDomain = AppDomain.CurrentDomain;
curDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(MyReflectionOnlyResolveEventHandler);
string assemblyPath = Path.GetFullPath(assembly.Location);
m_rootAssembly = assemblyPath;
Assembly asm = Assembly.ReflectionOnlyLoadFrom(assemblyPath);
// force loading all the dependencies
Type[] types = asm.GetTypes();
// show reflection only assemblies in current appdomain
Console.WriteLine("---- Inspection Context ----");
foreach (Assembly a in curDomain.ReflectionOnlyGetAssemblies())
{
Console.WriteLine("Assembly Location: {0}", a.Location);
Console.WriteLine("Assembly Name: {0}", a.FullName);
Console.WriteLine();
}
}
private Assembly MyReflectionOnlyResolveEventHandler(object sender, ResolveEventArgs args)
{
AssemblyName name = new AssemblyName(args.Name);
String asmToCheck = Path.GetDirectoryName(m_rootAssembly) + "\\" + name.Name + ".dll";
if (File.Exists(asmToCheck))
{
return Assembly.ReflectionOnlyLoadFrom(asmToCheck);
}
return Assembly.ReflectionOnlyLoad(args.Name);
}
|
|
|
|
|
hi there,
i have bought a notebook and now i want to the display,for example i want to turn it off when ever i want(for reducing the power consumption),how can do this on a WinXp operating system?
thanks.
|
|
|
|