Hi Norviking,
Check out my post in thread732-671539 for some links regarding your problem. You can use the VS project as an interface to word and extend it to open a document and then print it.
regards,
Blaxo
Hi WebStar,
After you add a line to the textbox, execute this code as well (assuming your textbox is called 'myTextBox'):
myTextBox.SelectionStart = myTextBox.Text.Length;
myTextBox.ScrollToCaret();
This will set the cursor position at the last character in the textbox and then scroll to that...
Hi David,
The return object is created in the method normally and then returned, and then no variable is assigned to it, so it becomes garbage and will eventually be garbage collected. The method you call will execute the same no matter what you do with the return value.
Hope this helps...
your <asp:Button> tag doesn't include an OnClick attribute. I think it should be as follows:
<asp:button id="btnDownloadCSV" style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 56px" tabIndex="1" runat="server"...
myButton.Attributes"onclick" = "javascript:return disableMyButton();" will only stop the form from submitting if the 'disableMyButton' function returns false, so in this case the page should always submit. Have you wired the VB function to the button with the ASP.NET onclick...
Hi bigfoot,
I'm assuming that you want to disable the button DIRECTLY after the user clicks on it, i.e. while the browser is still receiving the response, to stop the user from submitting multiple download requests.
To run javascript from a button, you have to set the HTML 'onclick' attribute...
Actually, the above line should be
<%# FormatBankruptcy(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"MinMonthsSinceBankruptcy")))%>
since DataBinder.Eval(object, string) returns an object.
regards,
Blaxo
You should use the DateTime.DayOfWeek property, which returns a System.DayOfWeek value indicating which day of the week it is on the specified DateTime.
regards,
Blaxo
That's strange, it should be working that way. Have you tried Convert.ToString(dr.GetInt32(3))? And what specific error do you get when executing this code?
regards,
Blaxo
Response.Redirect(pagename) will redirect to your current directory /pagename (i.e. localhost/pagename), that means it will also redirect to localhost/www.hotmail.com. If you want to redirect to a webpage, you have to put http:// in front of it. So use...
I think it is the right way to do it.
You could also write a general function (which you would put in a utility class, i.e. Utils) for it like this:
public static bool IsDateTime(string value)
{
try {
Convert.ToDateTime(value);
return true;
}
catch {
return...
From the .NET Framework SDK Documentation - @ Page directive:
Src
Specifies the source file name of the code-behind class to dynamically compile when the page is requested. You can choose to include programming logic for your page either in a code-behind class or in a code declaration block in...
You can't - __doPostback is created by .NET only when you have a control that will automatically do a postback. To submit the form when clicking on a link, use a LinkButton. And if you really need that function, just create your own javascript function that does the same as the .NET generated...
Hi Johnny,
If you include runat="server" in your <input type="file" ... /> tag, you can use it like any other servercontrol, and it will save viewstate as well I think.
regards,
Blaxo
Hi,
The display of the error message of an ASP.NET validator control can be set to static, dynamic, or none, in which case it can be displayed by a ValidationSummary control. So in your case you should set it to either dynamic or none.
For example like this:
...
<asp:ValidationSummary ... />...
The script I proposed doesn't seem to work right, since it calls the function logout() every time the page is changed, not only when the browser window closes... it only works right when your web application is in a frameset page that never changes, and the onunload="logout();" is in...
The line
imgbtn.Attributes.Add("onclick", "javascript:chkAction('" + ddl.ClientID.ToString() + "');");
should be replaced with
imgbtn.Attributes.Add("onclick", "javascript:return chkAction('" + ddl.ClientID.ToString() + "');");
Like...
The applications you refer to probably used a 'mailto:' link. The syntax for a mailto link is explained on http://www.ianr.unl.edu/internet/mailto.html
regards,
Blaxo
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.