|
|
Hi all
Whenever I change text in a textbox i need to differentiate between two methods of doing this
1. Enter text
2. select a value from list of previously saved values and press Enter key. One thing to note here is that TextChanged event is not fired when a value from the previously saved values is selected if we are using IE.
Any help in this regards ?
Regards
Zain ul Abideen
|
|
|
|
|
Are you looking for AutoComplete Textbox control? Its there with asp.net ajax control.
Pls be sure to make AutoPostback property to false if you don't wish to post back on every text change.
please let us know if you are looking for something else.
|
|
|
|
|
Hi
No I don't need an ajax control.
Actually I have implemented a textchange event for a textbox and it is fired whenever text is changed by: 1. entering text and hitting Enter
2. entering text and then clicking somewhere else on the form
But I need to differentiate between these two scenarios.
for (1) I have to fire a button's click event and for (2) Enable a button.
Thanks for replying.
Regards,
|
|
|
|
|
These are two separate events. Pressing the Enter key is handled by the KeyXXX (KeyDown, KeyUp, KeyPress) events. Clicking elsewhere on the form is handled by the LostFocus event, or OnBlur in JavaScript.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi,
I am using VS 2010. It has default ajaxtoolkit loaded.but i cant drag and drop it in webform.why?
Do anyone has same experience.
Known is a drop, unknown is an ocean
|
|
|
|
|
Well, this doesn't sound logical!
I have it and it works all fine. Try again with a WebForm in view.
BTW, is it that only Ajaxtoolkit controls are not draggable or any control?
|
|
|
|
|
Hi..
Didn't find correct Forum so writting in asp.net messageboard. as I am using this website frequently and used to it.
I have one html document with some inputboxes and a submit button.
On clicking the submit button, the data of all inputboxes should be emailed to an email ID.
I am trying to use VBscript for this functionality. as under
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Subject"
objMessage.Sender = "administrator@savilltech.com"
objMessage.To = "thaker_hemant@yahoo.co.in"
objMessage.TextBody = "Your identity is compromised."
objMessage.Send
but getting some error...
activex can generate object CDO or something
My website is online and I will be putting this html page to the same.
thanks.
By:
Hemant Thaker
|
|
|
|
|
Hemant Thaker wrote: Didn't find correct Forum so writting in asp.net messageboard.
Well there is the Web Development Forum[^]
Hemant Thaker wrote: but getting some error...
What is the error your getting?
Hemant Thaker wrote: activex can generate object CDO or something
ActiveX has nothing to do with CDO. ActiveX is client side technology, where as CDO is server side.
|
|
|
|
|
Following is my code:-
Word.Range SearchArea = _aDoc.Application.ActiveDocument.Range(ref _missing, ref _missing);
// _aDoc.Content.Find.Replacement.ClearFormatting();
_aDoc.Application.Selection.Find.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing);
SearchArea = _aDoc.Application.Selection.Find.Replacement.Application.Selection.Range;
Object oMissed = SearchArea;
Object oLinkToFile = false; //default
Object oSaveWithDocument = true;//default
_aDoc.InlineShapes.AddPicture(fileName, ref oLinkToFile, ref oSaveWithDocument, ref oMissed);
File.Delete(fileName);
this.FindAndReplace1("Sign1", "");
Running successfully in Windows Xp but not working in Windows Server 2003
Here i am getting exception
_aDoc.Application.Selection.Find.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing);
Please any help is appreciated.reuired urgently
Thanks
|
|
|
|
|
What exception r u getting?
Also format the code using <pre></pre> tag.
|
|
|
|
|
I am stuck at this place .
Its working fine in Window XP
but giving above mentioned ComException error here
The stub received bad data Exception from HRESULT: 0x800706F7
_aDoc.Application.Selection.Find.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing);
Its urgent.Any help is highly appreciated
Thanks
|
|
|
|
|
Try this
Word.Find oFind = _aDoc.Application.Selection.Find;
oFind.Execute(ref findText, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing, ref _missing);
|
|
|
|
|
Still it is giving me the same exception
The stub received bad data
|
|
|
|
|
|
Hi,
I am working on a ASP.Net Application . i used object tag for showing the flash image
<object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height="64" width="60">
<param name="movie" value="SAMPLE.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed pluginspage="http://www.macromedia.com/go/getflashplayer" src="SAMPLE.swf"></embed>
</object>
But it is not working in Netscap Nevigator.
Please help me.
|
|
|
|
|
I thought, Nescape Navigator is no more exists!!!
|
|
|
|
|
|
Hi,
We have a website that has been live for several years. It uses a custom config file loaded via the following in the web.config:
<configSections>
<section name="settings" type="CustomConfiguration" allowLocation="true" allowDefinition="Everywhere" restartOnExternalChanges="false"/>
</configSections>
I particularly liked the fact that changes in the custom config file could be made - with the changed values loaded straight away by the runtime - without having to restart the site and effectively end any users sessions. However the developers of another software package used by this client recently installed the .Net Framework v3.5 on the server. Since then changes in the custom config file simply aren't loaded at all, ever. To work around this we have had to set the restartOnExternalChanges value to true in the web.config. However this means that anyone on the site has there session ended when any of the values are updated. I have googled to see if I could find any information on this but have drawn a blank. Any ideas much appreciated.
|
|
|
|
|
Hi,
I am using Expression Blend3 and i have added a ribbon control.I donot want to use AuxiliaryPaneContent in RibbonApplicationMenu so i want to hide it. I cannot find any property/option to hide it
Any one have any Idea?????
Thanks
|
|
|
|
|
idreesbadshah wrote: I donot want to use AuxiliaryPaneContent in RibbonApplicationMenu so i want to hide it. I cannot find any property/option to hide it:
Nope. You can't. But you can change the style to hide it. AFAIK, hiding that Pane violates the Microsoft Office UI License of Ribbon Control.
All the best
|
|
|
|
|
I have created a dynamic table and i one of its td I want to give link for another table which is actually a html table created on aspx page.
for (int i = 0; i < dt.Rows.Count; i++)
{
TableRow trRow = new TableRow();
TableCell tdCell = new TableCell();
TableCell tdCell1 = new TableCell();
string user = dt.Rows[i]["username"].ToString();
tdCell.Text += "<td align='left'><a href='#' class='descriptiontext'>'" + dt.Rows[i]["username"].ToString() + "'</a></td>";
tdCell1.Text += "<td align='left'>'" + dt.Rows[0]["reason"].ToString() + "'</td>" ;
trRow.Controls.Add(tdCell);
trRow.Controls.Add(tdCell1);
RecipientTable.Controls.Add(trRow);
}
plcUserMessage.Controls.Add(RecipientTable);
}
}
public void FetchSenderMessage(string UserName)
{
string strSwapEmp, strSwapDate, strSwapReason;
DataTable dt = monthdetail.MessageFromEmp(UserName);
pnlRequestApproval.GroupingText = dt.Rows[0]["username"].ToString();
pnlRequestApproval.Controls.Add(tblAdmin);
strSwapEmp = dt.Rows[0]["swap_candidate"].ToString();
strSwapReason = dt.Rows[0]["swap_reason"].ToString();
strSwapDate = dt.Rows[0]["swapping_date"].ToString();
lblDate.Text = strSwapDate;
ddlUser.Text = strSwapEmp;
txtUReason.Text = strSwapReason;
}
I want to call FetchSenderMessage(user) function on anchor tag hreference
|
|
|
|
|
Mansi Arora wrote: I want to call FetchSenderMessage(user) function on anchor tag hreference
<a href="#" onclick="javascript:return MyFunction();">Click Me</a>
Don't forget to return false from the MyFunction() to avoid postback(or default behaviour).
Is this the one you wanted?
|
|
|
|
|
I am on the development of new asp.net website.
When i run the application its working fine while navigating other pages. but when i publish the website in IIS 7.0(running in my lap) a particular page is not opening and showing error
Server error
The resouce could have been renamed or moved...
Server Error in '/KumariNew' Application.
--------------------------------------------------------------------------------
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /KumariNew/FriendHomeUrl/360/User-User2.aspx
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3074
Ahamed Azeem
software Programmer
|
|
|
|
|