|
Thanks mate, ill try it soon
|
|
|
|
|
Looking for a way of setting the page to have a default button to trigger when enter is pressed on the keyboard. We are currently using a third party solution but would like to move away from this if it has been built in to .net 2?
Any suggestions? Thanks
|
|
|
|
|
Many ways to do it but the simple one is
Write the line in page load event
Button3.Focus();
if you want to make default focus to Button3
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thats no good. When the user selects a textbox to fill in some information the focus will change surely??
|
|
|
|
|
This will work when the form has a submit button, as in:
<input type="submit" value="jonsgay" />
Not 100% sure what happens when theres more than one submit button, I assume it wouldn't matter as they'd all submit the form. This is easier when using several forms, but obviously with ASP.NET there is (usually) only one. Whatever button you want 'pressed' has to render as a submit button, not just type="button".
Of course in order for this to happen the focus must be somewhere on the form (on any element, not necessarily an input). This shouldn't be too hard as the whole page is probably a form so as soon as the user clicks anywhere or an input is selected, you'll get the expected behaviour.
|
|
|
|
|
It's not really that simple is it you c**k jockey. Sometimes there are several submit buttons on a single page. One to submit the form details, one to clear the fields, another to search for my address using a postcode and the list goes on. FF and IE react differently to this and neither of them seem to do it in an expected and reliable way.
We have a third party control which has been able to do this but since moving to .Net 2 it has failed to work and there is no update for it???
PS
Rory = Dim
|
|
|
|
|
|
I am using Visual Studio .NET 2003 to develop the application. My issue is that i had to generate a Word Report with password from an ASP.NET web application.
After much try i got the dll Microsoft Word 11.0 Object Library and with the help of which i could generate a word document with password from a trial application. When i tried to implement the same in our project, it was giving an error as
'Could not open Macro Storage'.
The error code was 2146822307.
While checked up with the windows task manager it was taking a lot of memory.
When performed a search with this, i came to know the necessity of configuring the Word application with DCOMCNFG - as setting the word to be run under interactive user mode etc. But that is very risky as listed in the links,
http://support.microsoft.com/kb/q288366/ -- (Explains how to configure with DCOMCNFG)
http://support.microsoft.com/kb/257757/
Can any body tell me how to solve this without using DCOMCNFG ?
Or at the least is there any solutions to overcome the security issues...
Your suggestions might be of great value....
If anybody comes across any link or any thing please do reply ....
I will be very grateful...
O
|
|
|
|
|
i have a problem in crystal report viewer.
it show the records in vertical way in runtime although the main reprt preview shows it horizontal in design mode.
it is very urgent please help me.
Ahmed Abo Hamer
|
|
|
|
|
could you send some snapshots of both previews
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I feel like a moron but I am looking for my autos window when debugging in asp.net and I can't find it. I am using VS2005.
Previously in vs2003 the autos debugging window was always there with no problems.
-- modified at 12:15 Wednesday 14th March, 2007
Thanks
sandeep akhare
|
|
|
|
|
Ok
1) You can get Autos Window in Debug Mode Press F5 or Debug -> Start Debuging.
2) Now debugging is running now press Ctrl + D,A or
go to Debug Menu -> Windows -> Autos
You will get your Autos Windows
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i want to convert a word document that is uploaded into a folder into pdf format without using converter. i want to convert it programatically . i am using c# 1.1
any suggestions will be welcomed.
madhu
|
|
|
|
|
wrote: want to convert a word document that is uploaded into a folder into pdf format without using converter. i want to convert it programatically
Why don't u use some third party converter libraries ? If not one option is crystal reports. I am not sure about directly converting to pdf from word file using crystal reports. You can try to read the word file and write that to XML file. Add this XML file as datasource and export the report
|
|
|
|
|
No not possible PDF file are very Compact it not easy converting Txt file to PDF
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
i have a folder with few files in it. I want to get only 3 files which has latest lastaccesstime . can anyone help me out .
|
|
|
|
|
<br />
public class dateTimecompare : IComparer<br />
{<br />
<br />
public int Compare(object x, object y)<br />
{<br />
DateTime datex = (DateTime)x;<br />
DateTime datey = (DateTime)y;<br />
<br />
if (datex == datey)<br />
return 0;<br />
else if (datex < datey)<br />
return -1;<br />
else<br />
return +1;<br />
}<br />
}<br />
<br />
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
SortedList sl = new SortedList(new dateTimecompare());<br />
<br />
System.IO.DirectoryInfo objDI = new System.IO.DirectoryInfo(@"\\YourPath");<br />
<br />
<br />
foreach (System.IO.FileInfo fi in objDI.GetFiles())<br />
{<br />
sl.Add(fi.LastAccessTime, fi.FullName);<br />
<br />
}<br />
<br />
string[] fileList = new string[3];<br />
int FileNo = 0;<br />
<br />
foreach (DictionaryEntry de in sl)<br />
{<br />
if (FileNo == 3)<br />
break;<br />
fileList[FileNo] = de.Value.ToString();<br />
FileNo += 1;<br />
}<br />
|
|
|
|
|
how to connect a string array fileList in the gridview .i am doing it as
GridView1.DataSource = fileList;
GridView1.AutoGenerateColumns = false;
GridView1.DataBind();
on aspx page
<asp:GridView ID="GridView1" AutoGenerateColumns="true" runat="server" ShowHeader="False" GridLines="None" OnRowCommand="GridView1_OnRowCommand" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="Hyperlinkpolicy" runat="server" Text='<%#Eval("fileList") %>' CommandArgument='<%#Eval("fileList") %>' CommandName="button" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
pls help me out .
thanks in advance
-- modified at 2:24 Thursday 15th March, 2007
|
|
|
|
|
Add the items to dataTable and bind the table to the grid.
|
|
|
|
|
It may happen that while running application your files have been changed
You can go with System.IO.FileSystemWatcher class
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
You can Delete this post
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
hi evrybody,
I have to give blind-up and blind-down effects
to asp.net control like panel or to div on mouse over event of panel or div.
but unable to achieve it.I have downloaded effects.js file ,
Should I also use Scriptaculous.js .
Please giuide.
Thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
what does it means by blind-up and down ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
|