|
Are you using master page?
|
|
|
|
|
no am not using master page..
|
|
|
|
|
Write these java script code in your page source
function load()
{
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ShowError);
}
function ShowError()
{
}
Call load() On body OnLoad Event:-
I hope it will work for you
|
|
|
|
|
|
Hi all,
I want to create a custom button in menu of microsdoft word..can any one help me ??
i have wrote the code to open a word and just to create a button but i want the custom button in menu of the word document
Dim oWord As Word.Application
Dim oDoc As New Word.Document
'Dim oTable As Word.Table
Dim oPara1 As Word.Paragraph
Dim menu As Word.CustomLabel
Dim oPara2 As Word.Paragraph
Dim sCode As String
Dim shp As Word.InlineShape
Try
'Start Word and open the document template.
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
oPara1 = oDoc.Content.Paragraphs.Add
oDoc.Windows.Add("dd")
oPara1.Range.Text = " Test Document"
oPara1.Range.Font.Bold = True
oPara1.Range.InsertParagraphAfter()
oPara2 = oDoc.Content.Paragraphs.Add
''''''''Button Code
shp = oDoc.Content.InlineShapes.AddOLEControl(ClassType:="Forms.CommandButton.1")
shp.OLEFormat.Object.Caption = "Click Here"
'shp.OLEFormat.DisplayAsIcon = True
sCode = "Private Sub " & shp.OLEFormat.Object.Name & "_Click()" & vbCrLf & _
" MsgBox ""You Clicked the CommandButton""" & vbCrLf & _
"End Sub"
'oWord.VBE.VBProjects().VBE.ActiveVBProject.CodeModule.AddFromString(sCode)
oWord.VBE.VBProjects.VBComponents("ThisDocument").CodeModule.AddFromString(sCode)
shp.OLEFormat.Object.Caption = "Click Here"
|
|
|
|
|
Gee - aren't you the moron ? What does this have to do with .NET at all, let alone ASP.NET ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I CANT UNDSTAND WAT U TRYING TO TELL..
yES I WANT TO CODE IN ASP.NET TO BRING THE BUTTON IN WORD
TATS WAY I POSTED IN ASP.NET MESSAGE BOARDS
|
|
|
|
|
1. Turn CAPS LOCK off
2. Try being clearer in yopur question. All you talked about was adding a button in Word, Word is NOT ASP.NET
3. You cannot do this in asp.net, things like this are simply not allowed as they leave the system wide open for viruses.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Caps lock On or Off is not a problem now..if u can just answer for my question ..
it is possible to open a word from asp.net apllicatopn and add a custom button
Try to Search In googl e
|
|
|
|
|
cbenan wrote: Caps lock On or Off is not a problem
Typing in capitals is the same as SHOUTING - its considered rude.
cbenan wrote: it is possible to open a word from asp.net apllicatopn and add a custom button
As I said in point 3 of my previous reply NO
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
I am trying to export a chart using the Excel11 object from C#. I can
properly open workbooks and read cells, but calling Export() on the Chart
object throws a COMException
Exception: System.Runtime.InteropServices.COMException (0x800A03EC):
Exception from HRESULT: 0x800A03EC.
at Excel._Chart.Export(String Filename, Object FilterName, Object
Interactive)
at MBCCS.LeParc.Importer.Importer.GetImageInfoFromWorksheet(Worksheet
worksheet) in d:\source\leparc\importer\importer.cs:line 211
The line causing this is:
tempChart.Chart.Export(filename, "JPEG", Missing.Value);
Please help me how to solve this issue.
|
|
|
|
|
Hi all,
I am newbie in web development. I am using vs 2005, ASP.NET with c#.Currently i am using UpdatePanel(AJAX) to update textbox value from gridview by adding a commandfield(SELECT) the DataKeyNames(values to be pass when event selectIndexChanged fired) in gridview. But it seem very slow in displaying/updating textbox.
So,may i know is a possible to do it by using PageMethods?If yes, please direct me to the correct way
Any tips/helps are welcome,
Thanks in advance.
Regards
cocoonwls
|
|
|
|
|
cocoonwls wrote: But it seem very slow in displaying/updating textbox.
Moving to PageMethods won't change the performance drastically.
At the first first place, you need to know which action is so much taking time.
As far as I think you need to optimise you SQL statement.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hi Manas Bhardwaj,
Thanks for reply.I think my SQL is not a problem here. I had tried not to use updatepanel to update textbox, its looked fast than used updatepanel. My purpose to use updatepanel is aim to update certain data without refresh whole page.
Manas Bhardwaj wrote: Moving to PageMethods won't change the performance drastically.
I had read other resource that if using page methods will improve the performance instead of using updatepanel.Any comment/suggestion?
Thanks in advance
regards
cocoonwls
|
|
|
|
|
Create a web service to process the business logic and call it in javascript. But you can update the textbox in javascript based on the returned content from webservice.
|
|
|
|
|
Hi,Ramesh
Is there a good example?And is possible to use it to pass a row data and display in textbox?
thanks in advance
regards
cocoonwls
|
|
|
|
|
|
Good Morning All
I have a user control that i have exposed selection of the items through a hiden texbox and it working fine that way. and i have grouped Controls(not a usercontrol)All this are inside an Update Panel. Now in the group controls i have a gridview. Now as i said ontextchange event of the usercontrol i want to update the display on the Gridview and the page must not flicker. i have a link to the Screenshot of my Page. The Left part is usercontrol and the right part is not the usercontrol and at the bottom i have highlisted the textbox that changes when the items are selected. and there is a grid on the right, that i was to update when the text changes from the textbox at the bottom
http://www.codeguru.com/forum/attachment.php?attachmentid=24880&stc=1&d=1242632709[^]
Thank you
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
I am updating some data using detailView.
detailView is being populated by object datasource
I want to keep hold the update mode of the detail view if update is false.
I wrote detview.ChangeMode(DetailsViewMode.Edit); in the detview_updating method. But it changed the mode to Item mode(DetailsViewMode.Readonly).
How can keep hold the update mode ?
Thanks in advance
modified on Monday, May 18, 2009 4:17 AM
|
|
|
|
|
In my application I have used window.confirm('Are you sure to insert').It shows a msg box with ok and Cancel button.Now my problem is how to catch which button is pressed by the user at the server side code.and according to that i have to do the concerned functions.
|
|
|
|
|
souravghosh18 wrote: which button is pressed by the user at the server side code
Capture the input and use XmlHttp to transmit the contents to the server and examine the response.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
thanx for the response can you plz elaborate a little
|
|
|
|
|
|
It return true/false based on the click.Accordingly call your server side code
modified on Monday, May 18, 2009 6:59 AM
|
|
|
|
|
Brij wrote: Why don't you javascript confirmbox?
Well, what do you window.confirm is?
|
|
|
|