|
I meant , I had to insert the data in the two tables using single form and it is necessary that the data goes to both the tables else rollback occurs
Now I need to know how i have to implement this thing in ASP.
Thanks
|
|
|
|
|
If you're using asp, and not ASP.NET, you should ask in the web dev forum.
In both cases, the answer is the same. Your middle tier will handle the DB call, and the nature of your presentation layer is irrelevant. The best way to do it is a single stored proc, which handles the transaction.
Christian Graus - C++ MVP
|
|
|
|
|
Thank You.
|
|
|
|
|
hi to all
i need to clear detail about debug and release
can anyone help me?
thanks
saravan
|
|
|
|
|
What do you need to know ? You should only deploy a release version, a debug version is compiled to provide things you need debugging, that shouldn't be in the release version.
Christian Graus - C++ MVP
|
|
|
|
|
I am using a GridView to display info from a DB as is normal.
But i am wanting to edit data in seperate form on same page. So i need to capture the value of the DataKeyNames field for later use.
How is possible to collect DataKeyNames value so can use elsewhere to populate this other form?
Help Please. Thank yous!
|
|
|
|
|
Hi ,
Im developing a tool and in the tool i need to convert the text/Html files to XML files....
I dont need any tools for the conversion.rather i need the code part to implement in the Tool which i develop..
Thanks in Advance
Arun
|
|
|
|
|
Well, how do you hope to convert them ? How would you convert this ?
<strong><bold>this is a heading<br></strong></bold>
ArunKumarParthiban wrote: i need the code part to implement in the Tool which i develop..
Doesn't that mean writing the tool for you ?
Christian Graus - C++ MVP
|
|
|
|
|
it doesnt mean that i need someone to write the tool for me..it means is there any other option to convert text files to XML format from code behind
|
|
|
|
|
Hi.
Does anyone has some experience with Encryption? I need to encrypt password user submits and store it in the database. And of course I need to decrypt it back and compare to user password when user signs in.
I created a test page and use System.Security.Cryptography.RijndaelManaged. On that page I encrypted string (passwrod) but not sure what to do next. I get Byte() back. How do I store it in the database? But most important how do I decrypt it back? When running encrypt and decrypt on the same page one after another and useing the same key it works with not problem. But if use decrypt separetely it throws me error.
Here's the error I get:
PKCS7 padding is invalid and cannot be removed.
My guess it has something to do with Key and/or IV. Does that mean I need to save Key as well? I'm lost.
Please help.
Thanks,
-- modified at 9:27 Thursday 23rd November, 2006
|
|
|
|
|
I got another solution
You must to create a new class sheet (name.CS)
Add these libraries
using System.Security.Cryptography;
using System.Text;
using System.IO;
using System.Xml;
I made these functions based in a codeproject encrypt solution
<br />
public string EncryptProcess(string password)<br />
{<br />
string passwordEncryted = Encrypt(password, "&%#@?,:*");<br />
return (passwordEncryted);<br />
}<br />
<br />
private static String Encrypt(String strText, String strEncrKey)<br />
{<br />
byte[] bKey = new byte[8];<br />
byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };<br />
<br />
try<br />
{<br />
bKey = System.Text.Encoding.UTF8.GetBytes(strEncrKey.Substring(0, 8));<br />
DESCryptoServiceProvider des = new DESCryptoServiceProvider();<br />
Byte[] inputByteArray = Encoding.UTF8.GetBytes(strText);<br />
MemoryStream ms = new MemoryStream();<br />
CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(bKey, IV), CryptoStreamMode.Write);<br />
cs.Write(inputByteArray, 0, inputByteArray.Length);<br />
cs.FlushFinalBlock();<br />
return Convert.ToBase64String(ms.ToArray());<br />
<br />
}<br />
catch (Exception ex)<br />
{<br />
return ex.Message;<br />
}<br />
}<br />
<br />
You must to invoice the first process
Ex: string pass = EncryptProcess("SGC"); //Uppercase
the answer is the string "2zhZqCYvfJc="
This is the Encrypt process, write me if works for you..
And i will write the Decrypt process
keep Learning and you never will be out of date...
|
|
|
|
|
Thanks a lot. I will try. I do believe I've seen something similar online.
Do you had any experience with System.Security.Cryptography.RijndaelManaged?
Thank you.
|
|
|
|
|
nop
keep Learning and you never will be out of date...
|
|
|
|
|
Thanks anyway. I found some answeres and will try to create different ways of doing it.
|
|
|
|
|
How to Handling Drag event in asp.net controls
please give some idea related this issue
Thanks in advance
by
RPL
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
Check out this article, it may help you understand them better.
http://weblogs.asp.net/frank_hileman
sam
|
|
|
|
|
Hello,
I have a gridview of the columns, I am hiding the header of the gridview and creating my own header cells. (In fact I have a lot of columns and rowspan,columnspan.., but let simplify the problem)
My target is to sort the grid cicking on the header cells.
I add attributes to each one of the header cells as following
Dim cell11 As New TableCell
cell11.RowSpan = 2
cell11.Text = "Model Name"
cell11.Style.Add("text-decoration", "underline")
cell11.Style.Add("cursor", "hand")
cell11.Style.Add("color", "navy")
Now I have to add onclick attribute to the cell
cell11.Attributes.Add("OnClick", "SortGridView('Model Name')")
Here is my client side code:
var gridViewCtlId = '<%=GridView1.ClientID%>';
function getGridViewControl()
{
if (null == gridViewCtl)
{
gridViewCtl = document.getElementById(gridViewCtlId);
}
}
function SortGridView(colNm)
{
getGridViewControl();
if (null != gridViewCtl)
{
return gridViewCtl.sort[colNm,1];
}
return null;
}
What is the right code in javascript functions?
Thanx
Eric H.
|
|
|
|
|
iam having datagrid with 2 record per page(allow paging =true)
iam having around 6 recs in a database
iam binding data to datagrid
i included check box in a datagrid(exc,good,satis,v satis,poor)
i select the all check box for 6 recs
and clik on save button
iam able to get last value selected but not all
i hope u understand my problem
with regards
|
|
|
|
|
HI,
How to change the visible property of asp control asp:Label in javascript code.Please Help.
Thanks in Advance.
Prya
|
|
|
|
|
document.getElementById('labelName').style.visibility='visible';
paid attention, if the label is located into contentplaceholder the code will be like that:
document.getElementById('ctl00_ContentPlaceHolder1_labelName').style.visibility='visible';
Eric H.
|
|
|
|
|
aaraaayen wrote: How to change the visible property of asp control asp:Label in javascript code.
That is not possible. The server control only exists on the server, and the client script only exist in the browser.
If you want to hide an element with Javascript, use the display or visibility styles.
---
b { font-weight: normal; }
|
|
|
|
|
Try it!
1) Add a HTML Button and an ASP label control
2) Double-Click the button and you will get into the javascript code
3) Past this code
function Button1_onclick() {
if (document.getElementById("lbl").style.visibility=='hidden')
document.getElementById("lbl").style.visibility='visible';
else
document.getElementById("lbl").style.visibility='hidden';
}
Eric H.
|
|
|
|
|
I don't have to try your code, I know what it does.
What it does not do, however, is to change the Visible property of the server control. As I already explained, that is not possible.
---
b { font-weight: normal; }
|
|
|
|
|
If I understood right, he wants to show/hide an ASP:Label control server through javascript, doesn't he? If yes, I try the code that I had posted above and it works very fine.
Eric H.
|
|
|
|
|
ayeleteric wrote: If I understood right, he wants to show/hide an ASP:Label control server through javascript, doesn't he?
That is perhaps what he wants to do, but that was not what he was asking about.
If you are answering the question that you think that he should have asked instead of the question that he actually asked, you have to specify what question it is that you are answering.
---
b { font-weight: normal; }
|
|
|
|