|
Nilish wrote: Am I writing the correct code or there is some need of rectification.
Server.MapPath probably gives you the physical URL. You need to provide a URL relative to the application root.
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 )
|
|
|
|
|
|
Nilish wrote: Server.MapPath
Use ResolveUrl or ResolveClientUrl
|
|
|
|
|
|
Hi All!!,can you help me what are the things exists in Asp.Net...For example CLR->CommonLanguageRuntime..like this can any one list me?.Is this boring?,if its forgive me..
Hi,Im Razana
|
|
|
|
|
Please don't cross post
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 )
|
|
|
|
|
in Asp.net i am not getting System.Utilities class
|
|
|
|
|
Can you elaborate on your query?
|
|
|
|
|
Have you referenced it?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
Well, according to my local MSDN docs there is no System.Utilities class...
|
|
|
|
|
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... "
|
|
|
|