|
badgrs wrote: System.Utilities class
It looked like very useful classname and hence I was fighting with my 'Visual Studio 2005' for sometime.
|
|
|
|
|
HI all
I am using a data grid in a search page to display the contents from a sql table. Some column names contain underscore which really don't look good on the form. SO i want to change the column names like (Typing_Speed -> Typing speed)
Pl help
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
I would suggest that you had turned off AutoGenerate for columns in the grid and explicitly specified the columns that need to be displayed and data bound. That way, you can achieve this elegantly.
|
|
|
|
|
Thanks for the suggestion sir
I turned off the auto generate column property so its showing nothing when the search button is clicked( the grid is empty).
Can u pl tell me how to explicitly specify the columns that need to be displayed and data bound.
Prakash Mishra(Banglore,India)
|
|
|
|
|
HI,
You can change column header by
dg.Columns[colindex].HeaderText = "colheader";
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Suppose I build a website where anonymous users can upload their resumes into my database where they will be stored in a blob. How can I prevent SQL injection in this situation? Any help will be grately appreciated, thank you in advance for your help.
|
|
|
|
|
|
I have already been to the MSDN site, some of the methods shown on the site include avoiding the use of sa account for database, encryption of vital information, and the use of stored procedure instead of dynamic sql. How can I not use a "sa" account for database access if I would like anonymous users to have access to the database. I've used a function that basically deletes all input from the users that have the words drop, select, delete, and symbols such as --, ' to prevent sql injection attacks before. However, it probably won't work if I would like for users to be able to upload resumes which can have anything in them.
|
|
|
|
|
Well, I don't see how SQL injection could occur, when your data is treated as a blob. If you were accepting text from a textbox, that would be far more likely.
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 )
|
|
|
|
|
So if a malicious user uploads a file that was designed to sniff out info about the database then use that info to do damage to the database, he/she won't be able to because the file would be stored in a blob? Is there anyway to test this assumption? I appreciate your input but I just want to be absolutely sure. Thanks again for responding.
|
|
|
|
|
It's plainly obvious. An injection attack occurs when you blindly accept text as part of your query, because that query is executed. The data you store as a blob, could be anything, it's stored and not executed.
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 )
|
|
|
|
|
i want to encrypt and decrypt cookie object's values. Will MD5 alogirthm help me? Which are the methods of encrypt and decrypt methods in MD5?
|
|
|
|
|
|
Hello to EveryOne,
i now want to learn Javascript but how should i.
I read some coding on google but i even don;t know how to and where to write the create function..
Could anyBody help me in this regard...
Even some good books fir this purpose.
For Eg:
if(window.event.keyCode==13)
{
var but = document.getElementById('Your Button ID');
but.click();
}
in html Where i should write this code...
Thank You.
Hemant Garg
|
|
|
|
|
There are n number of books in market Which can help you as a begginer.
You can create Javascript function in .js file or in the head of Aspx page
I think google can give more focus on it
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
|
Hemant Garg wrote:
if(window.event.keyCode==13)
{
var but = document.getElementById('Your Button ID');
but.click();
}
Sorry but what you want to do ? Thats more important Can you tell What are you trying to do in that function ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
there r rwo input groups in my form one for admin and other for user login...
When i click textbox1 then button 1 should be default button but when i click the textbox2 then button2 should be default button...
i hav used panel1 for textbox1 and button1 and panel2 for textbox2 and button2.
how can i do this...
suggst me...
Thank you
|
|
|
|
|
HI Hemant
Java script is a piece of code that we write to make the page contents dynamic and to make the page interactive(like changing the color of a control when mouse points on that etc)
we need to write the java script in in the header section of the html or u can write it inside the body. only mention the tag< lang used as java script...>
refer this site it will show u nice example
http://dynamicdrive.com/
In that page refer the section Script Categories
Regards
Prakash Mishra(Banglore,India)
|
|
|
|
|
Dear hemant,
just try your first simple progam in Javascript
create one button in HTML
and in after <title>
write the following code
function SayHello()
{
alert("How R U");
return false;
}
OK.
now try to run your code..
regards,
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
i have to make front page of website having rounded corner panel with linear gradient and datbase driven menus
Navneet bal
|
|
|
|
|
You can check out http://www.dynamicdrive.com/[^]
Once you choose the appropriate menu, the items need to be generated runtime by your serverside logic.
|
|
|
|
|
thanks alot an u plz send me code in vb.netof xp-look like themes atleast two whose color can be chaged by the veiwer of page
|
|
|
|
|
|
hello frnds,
I have developed an application in C# n asp.net version 2. i have to publish it.
My previous website is in pure HTML. In this, there is button named "Tracking".
I have to link my web application from this button so the functinality of the application can be displayed on HTTP.
I want to know the complete procedure .
can any one help me?
Thnks in advance
Shriya
|
|
|
|