|
how to place tooltip on one datagrid column header where datagrid is binded at runtime
|
|
|
|
|
Hi,
You can create and event handler for ItemDataBound event of datagrid and assign tooltip for the column header.
protected void dg_ItemDataBound ( object sender, DataGridItemEventArgs e )
{
if ( e.Item.ItemType == ListItemType.Header )
{
e.Item.Cells[0].ToolTip = "tooltipvalue";
e.Item.Cells[1].ToolTip = "tooltipvalue";
e.Item.Cells[2].ToolTip = "tooltipvalue";
}
}
This way you can assign tooltip for all the columns in the header.
I hope this will help you.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
I have my website which downloads huge PDF files to the tune of 500 MB. The files had to be read and streamed by an ASP.NET HttpModule. It was working fine in the local environment.
When we transferred and deployed the application to the hosting provider, files more than 20 MB proceed to download upto 90% without any hiccup. As if pre-programmed, the download halts at this and after a while, I get the message 'Internet Explorer can not download. The connection with the server was reset'.
We were trying to look at ASP.NET Usage, TaskManager spiking or idleness of ASP.NET process (which would have deadlocked) but all these perfectly within a good equilibrium conditions.
|
|
|
|
|
i am using microsoft.practices.security.cryptography in VS 2.0
my code is as follows....
Dim encryptedContentsBase64 As String encryptedContentsBase64 = Cryptographer.EncryptSymmetric("symmProvider", "SensitiveData")
' Decrypt the base64 encoded string
Dim readableString As String readableString = Cryptographer.DecryptSymmetric("symmProvider", encryptedContentsBase64)
this is wroking when the decrypt string is large( length more than 7)
but when i am using the length less than 7
i am getting error page like this...
System.Security.Cryptography.CryptographicException: Length of the data to decrypt is invalid. at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at Microsoft.Practices.EnterpriseLibrary.Common.Cryptography.SymmetricCryptographer.Transform(ICryptoTransform transform, Byte[] buffer) at Microsoft.Practices.EnterpriseLibrary.Common.Cryptography.SymmetricCryptographer.Decrypt(Byte[] encryptedText) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider.Decrypt(Byte[] ciphertext) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext, ConfigurationContext context) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext)
thanking u in advance
eagerly waiting for the solution..
Vinod
|
|
|
|
|
Hey Vinod,
Here the Encrypted Text have more than 127 character. You can decrypt only the Encrypted Text only. I think you are try to Decrypt the Normal Text itself.
|
|
|
|
|
sorry venkatesh that is the example which is working
suppose i take data, encrypt it and if i decrypt it i am getting the error
Dim encryptedContentsBase64 As String encryptedContentsBase64 = Cryptographer.EncryptSymmetric("symmProvider", "Data")
vinod
|
|
|
|
|
Hello Everyone,
Can anybody let me know how to compatible Internet Explorer with Mozilla Firefox.
Actually i have designed in ASP.NET and it's running great in Internet Explorer but not in Mozilla Firefox......
Tht's why can anybody help me to sort out this problem
Thnx in Advance
|
|
|
|
|
Hi,
Different browsers behave differently.
the keywords they use differ.
i will give an example as to how to detect a browser and code for each one.
below is an eg for a button click event.
function clickButton(e, buttonid){
var bt = document.getElementById(buttonid);
if (bt){
if(navigator.appName.indexOf("Netscape")>(-1)){
if (e.keyCode == 13){
bt.click();
return false;
}
}
if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){
if (event.keyCode == 13){
bt.click();
return false;
}
}
}
}
if u see the difference in Netscape i have used e.keyCode
where as IE it is event.keyCode
Netscape and Mozilla behaves almost same.
Biju S
|
|
|
|
|
Hi,
I have requirement in which i need to compare two adjacent rows of a GridView Control and if adjacent cells are not equal, the color of the cell needs to be changed.
for example
System A B C
Prod 10.11 sri win
QA 10.11 vel win
Prod 11.11 sri win
QA 12.11 vel win
Prod
QA
''
''
''
''
in this the background of sri and vel and 11.11 and 12.11 need to be changed
|
|
|
|
|
hi friends
i create one checkbox and one button in webapplication.
if i click the checkbox the button is disable,how can i achive this through javascript
regards
saravanan
|
|
|
|
|
button client side event
=======================
onclick = 'method(this.checked)'
javascript
==========
function method(state)
{
document.getElementById("buttonID").disabled = state
}
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
call a function in the onchange event of the checkbox.
disableButton(checkboxname.Checked)
the function must be doing some thing like this.
function disableButton(var status)
{
if(status)
document.getElementById("btnName").disabled=true;
else
document.getElementById("btnName").disabled=false;
}
}
Biju S
|
|
|
|
|
Hi,
See the following code.
<asp:CheckBox ID="chk" runat="server" />
<asp:Button ID="bttnClick" runat="server" Text="Disabled" />
//The follwoing is javascript function.
function makedisable(sender)
{
if(sender.checked == true)
{
document.getElementById("bttnClick").disabled = true;
}
else
{
document.getElementById("bttnClick").disabled = false;
}
}
//Write following line in Page_Load.
chk.Attributes.Add( "onclick", "javascript:makedisable(this);" );
I hope this will help you.
-- modified at 2:28 Friday 8th June, 2007
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
im using a details view control as a item template in the datalist..
i have linkbutton in the datalist.eg empid
if i click on tat i have to show the detailsview of tat empid...one empid can contain many records...like contactaddress,permenent address..
how can i do this?
thanks in advance..
|
|
|
|
|
Hey its very simple in the detials view you can able to show only one record ie., if you click any one of the empid it will show only the details abt that empid
For more detials Clickety[^]
Regards,
Satips.
|
|
|
|
|
hw can i take the empid n bind it withe the details view dynamically..?
|
|
|
|
|
I am in the process of learning ASP.NET and read that when using Visual Studio 2005, you can add an existing .html file to your project and just rename it to .aspx to automatically convert it to a ASP.NET Webform. I've even seen it done on an "eLearning" video demo with Visual Studio .NET. However, when I try to duplicate the demo using Visual Studio 2005, it doesn't add the page directive like on the demo.
Anyone have a clue what I'm doing wrong?
|
|
|
|
|
It won't automatically add anything to the page. It will only change the file type.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
changing the file type will just change the file type. Create a new page, and copy your HTML into it, being careful not to copy over the directives at the top. It will be exactly the same, but now you can add server controls and code behind, if you want to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
First off I realize this is a common issue and has plenty of people saying they have fixed it.
I am using VS 2005, programming in C# and ASP.NET. I have a GridView and an ObjectDataSource my GridView will display the data, but not update. I am using a three-tier application design. My DAL has on table with SELECT and INSERT type methods. My BLL has SELECT, UPDATE, INSERT, and DELETE methods. My presentation layer contains the ObjectDataSource and GridView.
When I attempt to update I get the following error:
ObjectDataSource 'odsSubdivisions' could not find a non-generic method 'UpdateSubdivision' that has parameters: intID, szName, szCity, szState, szZIP, szLegal, Name, City, State, ZIP Code, Legal Description.
The last 5 parameters are added by the ObjectDataSource I believe. I have set the OldValuesParameterFormatString to {0}, which most solutions say to do, yet no avail. I am not using Optimistic Concurrency either.
Any other suggestions. I'll try anything.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
Is there anybody has experience on this? how to implement in ASP.NET? Thank you!
My head say go, my feet say no.
|
|
|
|
|
Good day to all,
I have a few panels control inside one UpdatePanel (AJAX extension), these items have drag and drop features, upon dragging these panels and dropping them at a different location, a webservice will be called from client side to update the new location of the panel in the database.
The problem now is I have another dropdownlist outside this UpdatePanel which is databind. Whenever the location of any panel is dragged and moved to a new location, the item in the dropdownlist should be different as it uses a stored procedure which is somehow link to the above attribute.
The problem I'm facing now is that I'm unable to update the dropdownlist by using the ddltest.DataBind() unless I reload the whole page instead of using an UpdatePanel. I'm quite new to AJAX so feel free to correct me on my misconcept and advise me on how should I tackle this problem. Thanks in advance
Cheers
|
|
|
|
|
Hi larree11
You can also place the dropdownlist inside the UpdatePanel. You have one updatepanel which contains a few panels. So whenever panel is drag and dropped you want to update the dropdownlist, so better, you place the dropdownlist box inside the updatepanel and in the drag and drop features update the dropdownlist values.
I think this will help you to resolve your problem
|
|
|
|
|
Hi Venk259,
First thanks for the reply... I did try this method before but the dropdownlist did not reload with fresh data whenever i drag and drop a panel.
I have set the dropdownlist autopostback to true but its not refreshing. Any idea why is it like tat? by the way the web service called by the drag and drop is done on client side by calling the webservice using javascript. Any work around?
Cheers
|
|
|
|
|
CAN I HELP ME? I NEED SOURCE FORUM ASP.NET WITH C#.
|
|
|
|