|
give me money
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
I think you are a beginner in this world of asp.net. So try to understand button tag in html HTML <button> Tag[^]. almost html and asp controls are same. the difference is one is processing of server controls take place in Server, Htm controls are in client.
|
|
|
|
|
|
hi,
i have a problem, why is it that the alert message returning a blank page behind.
here is my function;
Public Sub Alert(ByVal argMessage As String)
sb = New StringBuilder
sb.Append("<script>")
sb.Append("alert('")
sb.Append(argMessage)
sb.Append("');")
sb.Append("</script>")
<big>Page.ClientScript.RegisterStartupScript(Me.GetType(), "Message", sb.ToString())</big>
-- I've tried to change this into RegisterClientScriptBlock , but its the same result.
End Sub
Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
.... my query here.....
If ds.Tables(0).Rows.Count = 0 Then
Me.Alert("No data found.pease search again.")
Return --> ' i tried to remove this, but its the same result.
End If
End Sub
C# コードMicrosoft End User
2000-2008
「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」
|
|
|
|
|
I have tried with your code and it is working fine. What exact problem you are facing? Try to put a breakpoint and debug it.
|
|
|
|
|
Hi
I have an update panel that surrounds a wizard control which I use in conjunction with a update progress control. Now my update progress control works perfectly, with my animated gif and div tag that lays over my wizard control when the user goes from step to step. However, there is a problem that I am struggling to solve. A number of my steps use controls like list boxes, and when the update progress control fires, the list control is not laying underneath my div an animated gif no matter how high a make my css z-index on the div.
Does anyone have a way of solving this?
Thanks
|
|
|
|
|
Hi,
(Firstly, apologies if this is not the best forum for this question, but I couldn't see one that looked better suited.)
Does anyone know of a good, easy-to-use tool for automated testing of websites - preferably free or low-cost?
One I have tried which is particularly good but I cannot currently afford is WAPT. This allows you to use a standard browser to record a sequence of actions on a website and then allows you to simulated many users running the same (or a different) script. The reports at the end of all this show errors and other statistics (e.g. average page load times).
My ideal would be something as close to this as possible (in fact, does anyone have an older version of WAPT to sell?).
Any suggestions would be very gratefully received.
Best wishes, Patrick
|
|
|
|
|
I've got multiple date fields on a form in asp.net. I've been asked if there's a way to have a shortcut key (e.g. Ctl+semicolon) to fill the field with the current date. But, I don't want the fields to default to the current date, because many times the fields are left empty. Anybody got an example of code without buying Beans or some other outside software?
Thanks,
JB
|
|
|
|
|
|
Thanks, Yusef, I'll take a look. The url supplied was a "not found" - maybe a typo? Could you redo, please? Thanks!
|
|
|
|
|
|
Thanks Yusef - looks like it might be putting me on the right track. Appreciate your time.
|
|
|
|
|
Does it have to be a shortcut key? That would be a little tricky to set up in a way that is truly cross-browser, cross-OS compatible, but it would be pretty easy to have a clickable image (or text) next to each box that would do this using JavaScript.
|
|
|
|
|
Interesting idea. Got an example anywhere? Might be a good idea.
|
|
|
|
|
well, use a JS function such as:
function setNow(txt) {
var d = new Date();
var curr_date = d.getDate();
var curr_month = d.getMonth();
curr_month++;
var curr_year = d.getFullYear();
document.getElementById(txt).value = curr_date + "-" + curr_month + "-" + curr_year;
}
and then call it from whatever textboxes you want like this:
<input type="textbox" id="box1" /> <a href="#" onclick="setNow('box1')">today</a>
|
|
|
|
|
Thanks, NeverHeardOfMe. Doesn't work for me to only use javascript and change my textboxes to non-asp.net textboxes. I'm going to have multiple date asp.net textboxes on the page, and within any of the textboxes, I need to be able to call the shortcut to render the current date, so if they could be asp.net textboxes, your code would work. But, I need the functionality of the asp.net textbox. I tried to get the text of the asp.net textbox to be a hyperlink, but it renders the text literally today. If I could get around that, it'd be wondermous. Any ideas?
|
|
|
|
|
NeverHeardOfMe - found it! This works: <asp:textbox id="mytext" runat="server" onclick="setNow('myText');"> Thanks so much for pointing me in the right direction.
|
|
|
|
|
Well, posh. Almost there. The textboxes are actually in a gridview, footer and edit rows. So, I tried this in the textbox on the footer row as a test: onClick="setNow(this);" and it didn't work. So I tried putting name="textBoxName" as well as id="textBoxName" on the control. Didn't work. Know of a way around this so that the javascript can get the correct argument? Thanks.
|
|
|
|
|
You need to do it all in the RowDataBound event - find the textbox and use its ClientID property as the argument for your function call - which you will also have to build dynamivally in the same place.
|
|
|
|
|
I have a application that is running live , I want to run the application on my local system so that some changes can be made.
I am attempting to use the Enterprise Library Cryptography block to encrypt a credit password in my ASP.NET 3.5 application. Everything is configured correctly,and not getting any error when I build he application but When I call the DecryptSymmetric () method, I get this error:
The system configuration source is not defined in the configuration file.
[System.Configuration.ConfigurationErrorsException] = {"The system configuration source is not defined in the configuration file."}
Stack trace:
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceFactory.Create()
at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext)
at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64)
at UserControls_LoginUserControl.SetUserAthent
My web.config contains the following (relevant) sections:
<configSections>
<section name="OnLineStudentPortal.Data" type="OnLineStudentPortal.Data.Bases.NetTiersServiceSection, OnLineStudentPortal.Data" allowDefinition="MachineToApplication" restartOnExternalChanges="true"/>
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>
<location allowOverride="false" path="Application">
<enterpriseLibrary.ConfigurationSource selectedSource="File Configuration Source">
<sources>
<add name="File Configuration Source" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" filePath="entlib.config"/>
</sources>
</enterpriseLibrary.ConfigurationSource>
</location>
pz let me know What is the solution of the above issue. I am searching it on google from last 4-5 hrs but did not get any solution , please let me know if any body have any other finding or anything I have missed .
|
|
|
|
|
Are you sure entlib.config is in the right folder and that it is formatted correctly with all of the required info? The first google hit[^] when searching for your error shows an example with all three files, but you only show two.
|
|
|
|
|
I have changed only ProtectionKeyFilename in entlib.config section
like this
<securitycryptographyconfiguration>
<symmetriccryptoproviders>
<add algorithmtype="System.Security.Cryptography.RijndaelManaged, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
="" protectedkeyfilename="G:\Projects\Application\OnLineStudentPortal.key" protectedkeyprotectionscope="LocalMachine" type="Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="SecureInfo">
I am not analyzed that what changes i have to do? can u pz tell me what other more chages i will have to make in my application.
modified on Friday, August 27, 2010 1:56 AM
|
|
|
|
|
Hi
I have a wizard, which contains a series of custom user controls as steps. Also I am using the step navigation template to add in the navigation buttons.
However, due to some steps needing a little time to load fully due to web service calls and having to add some dynamic steps, I would like to disable the navigation buttons until the next step has been loaded and change the text on the "Next Button" to "loading...". Is there away I can do this perhaps with JavaScript or is there away I could do this with an AJAX control? If so, does anyone have an example I could use?
Thanks
|
|
|
|
|
I am using version 3.1 of Enterprise Libraries and used the EntLibConfig app to configure my logging options. I set it up to send me an email if an exception occurs.
I am doing this to allow Ent Lib to handle the exception:
bool rethrow = ExceptionPolicy.HandleException(ex, "Clerical Exception Policy");<br />
<br />
if (rethrow)<br />
throw ex;<br />
What I get is an error coming back saying 'Logon failure: unknown user name or bad password'
The exception appears to be when it calls GetExceptionPolicy.
However, I am not doing anything, or shouldn't be doing anything, that requires a username and password. Inside the EntLibConfig application I set the 'RequirePermission' flag to False under the Exception Handling section.
Any idea's what could be causing this? I did try using impersonation inside my web.config and no luck. Thought maybe the ASP.Net account didn't have permission to do something.
Thanks.
|
|
|
|