|
Hi all,
i wanna know about Encryption/decrption..
i do Googling.... and it return MD5 Encryption in .net but it is Encryption purpose only not for Decryption....
but i wanna both..
Any help !
thanx in advance
Sajjad
|
|
|
|
|
I have a datagrid with a delete function... my problem is that the table in the database have three keys... how do I set the datakey value in this regard to be able to delete?
Thanks alot,
commickey
|
|
|
|
|
1. Bind all three keys to the datagrid.
2. In ItemCommand event of datagrid , check for delete command
eg.. switch(e.CommandName)
{
case "Delete":
break;
}
3. In the case "Delete" Find the controls and fetch values from the three key columns if you use a Template column for them in datagrid.
eg. TextBox txt = new TextBox();
txt = (TextBox)e.Item.FindControl("txtKey1");
OR
IF these three key columns are BoundColumn in datagrid then get values using following
eg. e.Item.Cells[3]
4. Once you get all three key values you can delete this record by developing a sql query which will use these values to delete the record.
praveen.
|
|
|
|
|
Thanks Praveen....
Your solution looks right.... I will try it and let you know....
Greetings,
Commickey
|
|
|
|
|
Hello Praveen,
Where do I do the number 4? in the itemCommand or the datagrid_delete function?
Thanks alot,
Commickey
|
|
|
|
|
Praveen... thank... I worked around in the itemCommand it fires as I clicked on the delete button.... thanks alot.... it works now....
|
|
|
|
|
i'm having problems passing a value a label a added to header of a datalist, when i try pushing my strongly typed collection to its text propetry, i get an "object not set to instance of an object"., but if i do the same restricting it to items and alternating items i get no such errors
10.10
|
|
|
|
|
Hi,
Plz can some one help me disable the close button on the pop up box generated.
smiles
sparkling star
|
|
|
|
|
How to Disable and Enable postback in javascript
pavan
|
|
|
|
|
na wrote: How to Disable and Enable postback in javascript
wrong Forum!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
na wrote: How to Disable and Enable postback in javascript
And to think someone cycling on some mountains in france will have to read this
You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
|
|
|
|
|
Monty2 wrote: And to think someone cycling on some mountains in france will have to read this
Regards,
Nish
|
|
|
|
|
No, really. It makes checking email each morning and afternoon all the more worthwhile
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
From my experience in web development most developers keep the query string variables unsecured which will lead into lots of security risks.
I have created three functions that will cover the above issue and make sure all your query string variables are secured.Get Source Code
Moe Tarhini
Senior Software Engineer
http://profoundway.blogspot.com
|
|
|
|
|
Thanks for posting that link as its somthing im currently working on.
I also found this article
on the subject very helpful and it also contains VB code to do the same kind of thing (though I am working in C#).
One problem I have at the moment, along these very lines, that I was hoping to get help on is:
I have a menu dymanicly generated from an XML file, formatted with an XSL then displayed as an inline list using the ASP.NET XML tool and CSS.
I want to be able to call my <%EncryptQueryString()%> from within the XSL for-each loop, that is used to populate the HTML list. So that the querystrings in my menu http links cant be seen with a mouseover or viewing the source or in the url bar....
Becuase the menu is generated dynamicly the encryptquerystring and its parameters need to be called and set dynamicly also ... within the XSL for-each loop seemed the neatest way of doing this though i am stuggling to find any resources on getting <%%> tagged script to work under XSL.
So many thanks in advance if anyone can help me on this
|
|
|
|
|
Hey,
Regarding your problem i think it can besolved by assigning the xml source of your control at runtime, so in the code behinde you generate the XML source with all the querystring encrypted and whatever, then you can assign this XML document to the XML /XSL .NET control and you will be ready to Go.
Please let me know if this makes sense to you.
Moe Tarhini
Senior Software Engineer
http://profoundway.blogspot.com
|
|
|
|
|
Hi guys !
I am trying to search my database with some value enterd by the user in a textbox.The search result has to be displayed in a ListBox on click of search button.
The problem is that when i use the LIKE predicate with 'A%' it gives all the values in ListBox but when i use LIKE predicate as LIKE '"+TextBox1.Text+"' the result is not shown and i get an error saying one or more Parameters are not given values.
PLease Please PLease Help me guys !
My code snippet is as follows:
void Search_Click(object Source, EventArgs e)
{
if (RadioButtonList1.SelectedIndex == 0)
{
// ....Intializing the Strings....//
tring connectionstring;
string queryString;
DataSet ds = new DataSet();
OleDbConnection dbconnection;
OleDbDataAdapter ad;
connectionstring = "Provider=Microsoft.Jet.OLeDb.4.0;DATA SOURCE=" +
Server.MapPath("\\Database\\New_Tool.mdb") ;
queryString = "SELECT Company_Name FROM CompanyName WHERE Company_Name LIKE '"TextBox1.Text"' ";
dbconnection = new OleDbConnection(connectionstring);
dbconnection.Open();
ad = new OleDbDataAdapter(queryString, dbconnection);
ad.Fill(ds,"Company_Name");
ListBox1.DataSource = ds;
ListBox1.DataTextField = "Company_Name";
ListBox1.DataValueField = "Company_Name";
ListBox1.DataBind();
}
}
Vinay Chugh
Newbie in ASP.NET
|
|
|
|
|
Vinay Chugh wrote: queryString = "SELECT Company_Name FROM CompanyName WHERE Company_Name LIKE '"TextBox1.Text"' ";
The problem is in this line. In order for this to work you need to actually concatenate the content of textBox1.text with the sql string, not literally put the text "TextBox1.Text" within the string.
queryString = "SELECT Company_Name FROM CompanyName WHERE Company_Name LIKE '" + TextBox1.Text + "' ";
However, that said you should really get in the habit of using Parameterised queries, which allows you to just put a placeholder in the string
queryString = "SELECT Company_Name FROM CompanyName WHERE Company_Name LIKE '@SearchString'";
and then use the Parameters collection on the Command .
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Hi ! J4amieC
Thanks for ur reply. I used the query:
queryString = "SELECT Company_Name FROM CompanyName WHERE Company_Name LIKE '" + TextBox1.Text + "' ";
But this also doesnt work.And no error has appeared too. It just refresh the page but with no output in ListBox.I will be obliged if u could tell me some solution to this prob as my project is totally struck bcoz of it & i am new in ASP.NET.
Also i dont know the concept of Parameterized query and their usage. I will be thankful i u could send me some link where i can learn the concept.
|
|
|
|
|
i retrievd the values from One.txt to a textbox(multi line,txtEditFile.Text )
i changed the values in text box and when i can click on save button the text should be updated in One.txt file
and the code is
StreamWriter strmEditWrite;
// Delete the file.
//strPath=C:\Inetpub\wwwroot\WebTextEditor\kiran
//strfile=One.txt
File.Delete(strPath + strFile);
// Create the file with new text.
strmEditWrite = File.CreateText(strPath + "\\" + strFile);
strmEditWrite.Write(txtEditFile.Text);
strmEditWrite.Close();
but iam getting an error acces denied plz help me out
|
|
|
|
|
To solve access denied problem.for the folder kiran ,in properties ->security add "everyone" and give full control
|
|
|
|
|
Can somebody tell me how to detect whether the printer is installed or not to the computer programically?
|
|
|
|
|
|
i would like to develop a web part that makes users acknowledge that they opened a document. the web part is for use on the intranet, which is used to share documents and work on the same documents.
i need help on how to create the web part to enable acknowledgements
philpetszw
|
|
|
|
|
Hi
I am developing web application . It was working properly before i deleting few controls but now it is giving me error at run time see the error i am not getting that . all things are ok but why it is showing ?
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: The compiler failed with error code -1073741502.
|
|
|
|