|
Do you mean in ASP.NET ?
Either way, how do you mean ? You can put HTML in your ASP.NET page ( all asp: tags get converted to HTML also, HTML is all your browser knows how to render ). If you want to send the mail yourself in code, there's a class ( whose exact name escapes me right now ) for this.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
u can use same < a href="mailto:................. with asp.net and asp or can use < aasp:Hyperlink NavigationUrl="mailto:.................>
|
|
|
|
|
hi all
i have a strange problem with caching
very simple cache test page with fallowing code is not cached at all(browser/server whatever):
<%@ Register TagPrefix="uc1" TagName="NewHomePageModule" Src="~/Home/Module/NewHomePageModule.ascx" %><br />
<%@ Page language="c#" %><br />
<%@ OutputCache Duration="60" VaryByParam="*" %><br />
test form<br />
<%=DateTime.Now%>
but when you remove this line :
<%@ Register TagPrefix="uc1" TagName="NewHomePageModule" Src="~/Home/Module/NewHomePageModule.ascx" %>
and i stay with :
<%@ Page language="c#" %><br />
<%@ OutputCache Duration="60" VaryByParam="*" %><br />
test form<br />
<%=DateTime.Now%>
the caching starting to work correctly
the stranger thing is that happening only on production box (IIS6/ASP.Net 1.1) and on dev box (IIS5/ASP.NET 1.1) code work properly in both cases
i gave here example as simple as posssible, actually the whole caching framework we developed is not working on production machine
please help anybody has an idea or direction to trouble-shoot this
Thanks much anyway for your attention
--------------------------------
From: Yevgeniy Kuznetsov
###
|
|
|
|
|
Hi all,
Can I use transactions in asp.if possible please provide any link.
Thanks
|
|
|
|
|
Transactions are part of your data layer, they have nothing to do with the presentation layer. Or, do you mean something else ?
Christian Graus - C++ MVP
|
|
|
|
|
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
|
|
|
|