|
what kind of exception did you get ?
|
|
|
|
|
i m very new to C#...just started working in C#.... i need to make a database like attendence record of a departmemt employees, in which only outhorized users can update the records...i need to make login interface n then database view of records....how can i do it in C#? how to connect to the data base...ialready have made tables of employee n there attendence in Microsoft Access, now how to connect it into C# n use it? plzzzzzzzzzzzzzz help me out.
thankx in advance....
|
|
|
|
|
|
|
Hey dude I might help u if u can work on SQL ..............
Here is some
using System.Data.SqlClient;
public SqlConnection con = null;
SqlDataAdapter da = new SqlDataAdapter();
If it is ok dig out more
|
|
|
|
|
what i advice you to do is to design your database scheme first of all
turn off the computer, write everthing down before you hit the keyboard
after you have your database scheme, take your time to build the database, i advice you to manage login in sql (create user table with id/user/pass and trigger a login store_procedure).
go to c# only after database is donne
- - -
About the connection to the database in the previous post you see a way to do that
You can find lots of stuff on google if you use key word like "c# database connection" but i advise you to download microsoft absolute beginners lessons videos, it´s free and you will understand it better
in alternative download a project here in codeproject
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
If I had an html page ( page source is given below), how to find the position of specific tag element on that html page.
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<H1>Example Table</H1>
<P> </P>
<p> </p>
<p></p>
<p></p>
<hr>
<p></p><FORM ENCTYPE=multipart/form-data METHOD=post>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="13%"><b>abc</b></td>
<td width="44%"><INPUT NAME=Filename VALUE=textvalue.txt size="20"></INPUT></td>
<td width="13%"><b>xyz</b></td>
<td width="130%">
<INPUT TYPE=file NAME=Filedata size="20"></INPUT></td>
</tr>
</table>
<P><br></P>
<p></p></FORM>
</BODY>
</HTML>
I want get the position of <b> tag which is highlighted above.
How to get it?
I am using VS 2005 with the .NetFramework2.0
|
|
|
|
|
If you have this HTML as a string, you can use Regular Expressions to search for the tag. You can find the RegEx here[^].
|
|
|
|
|
I want to get and set values and trigger events in a website that loads inside a WebBrowser object
so, i cant get the code right i get NullReferenceException
WebBrowser_Main.Navigate("the_link");
while (WebBrowser_Main.IsBusy == true)
{
Application.DoEvents();
}
HtmlElement textbox_username = WebBrowser_Main.Document.GetElementById("user");
HtmlElement textbox_password = WebBrowser_Main.Document.GetElementById("password");
HtmlElement button = WebBrowser_Main.Document.GetElementById("submit");
textbox_username.InnerText = "the_username";
textbox_username.InnerText = "the_password";
button.click();
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hi! I need to make repeated calls to a DLL from C#. Anyone knows how I can go about doing this? Or website I can read about this? I have searched a few websites and tried the suggestions but they didn't do what I need them to do. Thanks.
|
|
|
|
|
Look up "PInvoke". That allows you to call a native DLL from C#.
|
|
|
|
|
is that DLL created in any .NET languages ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
DLL was created in matlab compiled to C++.
|
|
|
|
|
|
Hi
I read the articles trying to understand them in relation to my problem. I tried the various methods again and I still get garbage returned from the Matlab DLL. Below is the simplified codes of my latest try:
class DllWrapper
{
...
[DllImport(@"libtest.dll")]
private static extern void mlfTest(int num, ref IntPtr theOutput, [In]IntPtr theInput);
...
public static double CallDLL(string input)
{
...
double[] ans = new double[1];
GCHandle gch = GCHandle.Alloc(ans);
...
IntPtr inVal = mxCreateString(input);
IntPtr outVal = IntPtr.Zero;
outVal = Marshal.UnsafeAddrOfPinnedArrayElement(ans, 0);
mlfTest(1, ref outVal, inVal);
Marshal.Copy(mxGetPr(outVal), ans, 0, 1);
...
gch.Free();
return ans[0];
}
}
static void Main(string[] args)
{
string path = "input";
....
for (int i = 0; i < 3; i++)
{
double retDouble = DllWrapper.CallDLL(path);
Console.WriteLine("the return value is : " + retDouble);
i++;
}
}
|
|
|
|
|
Managed to solve the problem. Thanks.
|
|
|
|
|
|
I have compiled an English-Hindi dictionary application in C#. I want to hide its WORDLIST text file from end user. How they do this?
|
|
|
|
|
Sneak it out and put it under a rock, don't tell the user!
You can always encrypt the file or the contents. Your user can always find a file on his machine so storing it as a .TXT file is not going to work. If he can't decrypt it then you do not need to hide it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Except that you can't make it impossible if you want your own program to still be able to read it
|
|
|
|
|
Surely you would encrypt the file using some algorith, store the file as a resource in the application and include the decryption method in your app.
Even if you want to allow the user to update the list you still contol the encrypt/decrypt within a compiled exe. I know thats not secure against a determined researcher but it will stop 90% of users.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
More than 90% probably
|
|
|
|
|
|
hi i need ur help
for convert version vs 2003 to vs 2005
in crystal report formula for printing
this my formula
whileprintingrecords;
stringVar seqno;
if ({discSeqItm.seqNo} ='0') then
seqno:= "" else
seqno:=({discSeqItm.seqNo})
when i run the error will be pop up
'This Number is required here'
|
|
|
|
|
Hi I'm from Macedonia and I'm learning about listView in Visual Studio 2008 c#.
If someone can tell me HOW to:
open a Windows Form by duoble click in some of the listView row's?
And how to print the listView that is filled with data from the dataBase.
P.S.
Answer me as fast as you can
Thanks
Zive T.
|
|
|
|