|
You should use parameterized qzeries to increase security of your code as well as readibility. Take a look at the following article here on CP: SQL Injection Attacks and Some Tips on How to Prevent Them[^]
"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
www.troschuetz.de
|
|
|
|
|
I have a hyperlink in my page called Customer Details.
now when a user clicks on this link a window should popup displaying Customer information
pl tell me how to create a popupwindow in javascript and how to call it in my asp.net application using c#
thank u
arun
|
|
|
|
|
I am working on Dotnet 1.1.
In my login form i have a dropdownlist which contains the list of user types i.e. Customer,User,Dealer.By default the dropdownlist will have following value "Select a type"
now when a user clicks the login button without selectinga user type it should give a popup alet message.
pl tell me how to write the alert message in java ad also
I want to call a java alert message into my asp.net web application.
Thank u for ur kind support
arun
in these situations
|
|
|
|
|
Simply write,
Response.Write("<script language='javascript'>alert('Your message');</script>");
Regards,
Ketan.
|
|
|
|
|
Hi,
Iam new to c# Can, how to make a normal textbox to accept only numeric values and also some specific format.(not using masked textbox).
Thank you,
regards
Praveen
|
|
|
|
|
Use client-side code to validate the data entered..a javascript function will work fine...
Refer to:
http://www.shiningstar.net/articles/articles/javascript/checkNumeric.asp?ID=AW
|
|
|
|
|
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
-::maximus::-
|
|
|
|
|
ooopppss!! sorry please disregard this message.
-::maximus::-
|
|
|
|
|
Hello Praveen,
You can create your inherted TextBox and use this code:
protected override void OnKeyPress(KeyPressEventArgs e)
{
string _allowedkeychars = "1234567890";
if (_allowedkeychars.IndexOf(e.KeyChar) < 0)
{
e.Handled = true;
return;
}
// Youre code.....
base.OnKeyPress (e);
}
All the best,
Martin
|
|
|
|
|
hi,
How can I search folder or files on a FTP server through C#.
Regards & Thanks
Sunil
|
|
|
|
|
Hi
I want to show a list of Email clients installed on my computer in a list box........can any one help me out to get that list ..........veryyyyyyyyy urgent...i hope this is doable in .net.......
pls reply if u hav any idea or read any article.. pls give link
thanks in advance
sanjeev
|
|
|
|
|
Hi, i have a problem with event's delegate.
I have 2 form A and B, in B i have an event that refresh the form
when the form A was updated. But i noticed that if i:
1. open form B
2. close form B
3. update form A
the event in form B was catched... even if the form was closed....
if i never open form B the problem not exist, only if i do the 3 step
i think it was the garbage collector but i have no idea for resolve it...
thanks in advance
Cliffer
|
|
|
|
|
I NEED HELP ABOUT NETWORK PROGRAMMING IN C#
|
|
|
|
|
See in MSDN about TcpListener and TcpClient. It is easy in .NET.
|
|
|
|
|
See MSDN or Google. SOme C# Websites contains a lot of SOurce Code for download in Network Programming.
|
|
|
|
|
Hi,
How do I get the text to wrap after the focus leaves a datagrid cell? When the cell is in focus, it wraps the text, when it looses the focus, it displays the data in a single line. How do i retain the word wrap when the focus is to some other cell in the datagrid.
Thanks in advance for any suggestion or help
Regards,
Kais
|
|
|
|
|
Hi,
how can i possibly display graphics object? i created it from a picturebox and i added something to the picture but i have no idea on how to display it as i could not convert it to image or bitmap object to display. Can anyone help?
Thanks
|
|
|
|
|
what is the functionality of Find method of DataView object in C#?
|
|
|
|
|
Finds a row in the DataView by the specified sort key value.
You may want to refer to:
http://www.akadia.com/services/dotnet_find_methods.html
|
|
|
|
|
I am doing compilation of C# projects programaticaly using ICodeCompiler class.it works fine for a single project compilation but if the project which is being compiled,includes the reference(dll)of another project then on compilation it gives the compiler error CS0006,ddl not found(of that refered project),while that dll is present in that project's folder along with that project's other files.Can anybody help me out to fix this problem?
waitng for ur reply,thanks
sam
|
|
|
|
|
You need to add a reference to that assembly.
|
|
|
|
|
Hi Friends,
I am having an windows application created using C#. Its having a MDI form and many child forms. What i have to do is when i click a menu from the MDI window i get a form having a datagrid and many other calculations done and at the end of the page i have a print button. I want to print that entire page when i click the print button. I got a code from google but what it does is capture the screen and then prints. since it captures only what we can see in the screen i dont get the rest of the content which is visible only if i scroll down the window. i want the entire page to be printed.
Thank u,
Vips
|
|
|
|
|
If you want to draw your own page, then use this:
private PrintDocument pd = null;
private void Init()
{
this.pd = new PrintDocument();
this.pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
}
private void Print()
{
this.pd.Print();
}
private void pd_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawString("Hello World", new Font("Times New Roman", 14), Brushes.Black, 650, 130);
e.Graphics.DrawLine(new Pen(Brushes.Black, 1), 10, 155, 800, 155);
...
}
You can use also crystal report. But I don't know how to use it.
|
|
|
|
|
Thank u friend,
Thank u so much for ur fast action.
I dont want to draw a form. I already have a windows form with lot of controls.I just want to print that form. I did that by capturing the window screen as an image and then passed it to printprieview control and from there i printed. but the problem as i told earlier is that when there are controls which are visible only if we scroll down the page that part of the page will not be printed. i want a code that prints the whole form content.
Vipin
|
|
|
|
|
If you want to print the whole page, then you must use Crystal Report to get a nice result.
|
|
|
|