|
Vuyiswa,
Thanks but unfortunately i need to do this in the codebehind before uploading the DataTable to a SQL2005 server since i need to do some columnmapping via SQLBulkCopy.
So i really need a solution which is able to work in the c# codebehind and programmatically perform the changes to the DataTable.
Thanks.
|
|
|
|
|
Hi
Try this
for (int i = 0; i < dt.Columns.Count ; i++)
{
dt.Columns[i].ColumnName = dt.Rows[0][i].ToString();
}
dt.Rows.RemoveAt(0);
himanshu
|
|
|
|
|
Himanshu!!!!!
Yet again you are a genius and an amazingly helpful guy.
(i just hope this works now )
Thanks!
|
|
|
|
|
|
Hi,
I am assigned to do some performance test in asp.net site. The customer feels that the page loads very slow. I want to investigate the performance of all action happened in the page. Is there any way to get individual method performance?
Thanks in advance.
|
|
|
|
|
|
use trace attribute.
<%@ Page Trace="true" %>
to view trace in seperate window
<a href="http://localhost:8081/WebSite/trace.axd">http:
|
|
|
|
|
|
Pl. stick on to your initial discussion thread instead for the same topic of abrupting opening up a new one.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
If you are addressing me, I have no idea what you are on about. I probably asked you to follow up your initial question with more information. However, due to other commitments I'm not here as often as I'd like so I don't know what the heck you are on about any more.
Please reply to the original message. Do not start a new thread. It will only confuse people.
|
|
|
|
|
Hi,
I am trying to open a word document from xml template and allow user to edit the content. Then i am tried to extract the xml file and save the xml in database through ajax pro.
Now, the problem is that it takes more time to save into database. Is any solution to reduce the time and size of the xml file content.
Thanks,
Rajamohan S
|
|
|
|
|
Hi to all,
After publishing the site , the link buttons are not working. O mouse over it is showing this url:
javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentPlaceHolder1$DataCourses$ctl04$LnkSublinks", "", false, "", "Student_Information.aspx?cat_id=113", false, true))"
can anybody help me on this.
cheers,
sneha
modified on Wednesday, June 17, 2009 7:34 AM
|
|
|
|
|
Hi,
I am using dropdownlist that contains autopostback=true and i am dynamically binding data to the dropdownlist from database.when i am selecting item other than select item(means first item ) validation works fine.when i am reselecting the first item "select" then required field validator is not firing and my app is throwing "Input string was not in a correct format" exception how to get rid of this?can anybody help me?i am using asp.net ajax in my form
<asp:RequiredFieldValidator ID="rfv_Class" runat="server" Display="None"
ErrorMessage="Please select class name" InitialValue="Select"
ToolTip="Please select class name" ControlToValidate="ddl_ClassName"></asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="vce_rfv_Class" TargetControlID="rfv_Class" runat="server" HighlightCssClass="validatorCalloutHighlight">
</cc1:ValidatorCalloutExtender>
hi
modified on Wednesday, June 17, 2009 6:31 AM
|
|
|
|
|
Without code its hard to debug it.
Education is not a way to escape poverty — it is a way of fighting it.
|
|
|
|
|
Set CausesValidation="true" for Dropdownlist.
||-Paresh-||
|
|
|
|
|
Hai,
Am using md5 with salt.Am able to encrypt password,but how to decrypt the password while 'change password' case.
Login page is working good but changepassword is not.
give me idea to how to use md5 or something else for decryption.
The way am using md5 with salt in login page
txt6.Text = FormsAuthentication.HashPasswordForStoringInConfigFile(password.ToString().Trim(), "md5")
txt7.Text = FormsAuthentication.HashPasswordForStoringInConfigFile((salt) + txt6.Text.Trim.ToLower()), "md5")
if txt_password.text=txt6.text then
//mycode
else
//error
end if
txt_password.text become encrypted at clien side.
Please if ur free let me know the solution
thanks in advance
kissy
|
|
|
|
|
MD5 is called a one-way hash, one-way is not two-way....
During the password change, why don't you encrypt the typed password and compare it with the stored one.
This is the way, i have implemented.....
|
|
|
|
|
thanks for ur response.
I know that md5 is one way hash.
Actually am storing passwords in plain text only in the database,because at one glance one cant say the actual password from the database(again he has to decrypt the whole thing using symmetric key logic which i dont want to use).and am using md5 with salt which doesnt show the plain text to the end user.
But in the changed password,the new password am encrypting with md5 but problem occuring while updating the data.
which is the best way to do while password change?please send me some code snippet,so that i may get some idea.
The above code i have send is working perfectly while login.which i have to use.
kissy
|
|
|
|
|
You cannot decrypt when using MD5 because it is one way encryption.
Instead use some encryption/Decryption technique.
himanshu
|
|
|
|
|
MD5 is a hash algorithm which does not support decryption. It is one-way.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
not getting value in request.cookies("lang")
Protected Sub LnkEng1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LnkEng1.Click
Dim appCookie As New HttpCookie("lang")
Thread.CurrentThread.CurrentCulture = New CultureInfo("es-ES")
LoadStrings(Thread.CurrentThread.CurrentCulture)
here i am getting value "es-ES" <-----------Response.Cookies("lang").Value = thread.CurrentThread.CurrentCulture.ToString
appCookie.Expires = DateTime.MaxValue
Response.Cookies.Add(appCookie)
but in immediate window i am not getting the value for request.cookies("lang")
pls help
tanx
|
|
|
|
|
how to generate verification code i.e auto generated code (ex.hX84R) used while registering or sending mails..
|
|
|
|
|
|
Hi
In my page i have one textarea the user will enter the values in this format
Material1 Materil2 Material3
1 150 200
2 27 35
I need to insert these values to database .plse help me.
|
|
|
|
|
Hi,
What are Material1 Materil2 Material3?
Are they column name..
If not then Split the string like
string[] lines = Regex.Split(TextBox1.Text, "\r\n");
himanshu
|
|
|
|