|
OK, so you need to write javascript that inserts the $Name, etc, at the press of a button. Actually, if you look at the javascript that this site uses to insert smileys, etc, it would probably help you a lot.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
right.... so please tell me the name of such site...from where i can get the help...
|
|
|
|
|
Check how this site uses in the post message page.
|
|
|
|
|
i dont get you...what i have asked..do you know mr. N a v a n e e t h...
|
|
|
|
|
Neetu Maheshwari wrote: what i have asked..do you know mr. N a v a n e e t h...
Yes. You asked for "please tell me the name of such site...from where i can get the help... ". As Christian told, look at the post message page in this site(CP). Take page source and check how smiley and other tags are inserted into the editor.
|
|
|
|
|
oh i m SORRY ...i didn't get that time...really sorry...but i have gone through that source page before asking the question here...i didn't get any idea through that page.....so expecting some help from here...CP is always helpful to me...so i asked here...
|
|
|
|
|
Neetu Maheshwari wrote: oh i m SORRY ...i didn't get that time...really sorry.
No problem mate
Neetu Maheshwari wrote: i didn't get any idea through that page.....so expecting some help from here...CP is always helpful to me...so i asked here...
Are you able to find InsertText() method in the page source ? I guess that's the one which is inserting the tags.
|
|
|
|
|
ya InsertText() method is a javascript method which is working for all these things...i read that..but because i m not so much comfortable in javascript so i didn't understand that....if u'll please explain the working of that method i m sure i 'll be able to use that functionality in my page...please
|
|
|
|
|
no answer...
give me any other link to learn this..
|
|
|
|
|
You need to place the text to be inserted in buttons. Call the InsertText method in the OnClick event. Pass text to be inserted as parameter to this method. Inside this methiod, find your control using document.getElementById() and assign the value to control.
|
|
|
|
|
Plz suggest the sites to learn asp.net in practial way.
---
Regards
ilango gandhi
' Knowledge can only be got in one way, the way of experience; there is no other way to know.'
|
|
|
|
|
|
|
Hi All,
I have created an WCF windows service. The service works fine when the service account is set to local system. But I want to access the service running in machine A, from machine B in the same network. I tried changing the service account to Network service in machine A. But I am not able to run the windows service with service account set to "Network Service". Can any one provide me the solution for this?
|
|
|
|
|
I have developed crystal reports in VS 2005 Asp.Net, all reports are working fine but if report have huge data contains around 20 or 30 pages getting subject exception.
I am getting exception on following code to export report in pdf format.
oRpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "");
Any idea please.
The great pleasure in life is doing what people say you cannot do.
|
|
|
|
|
Hi all, thanks for looking
When filtering a text field using a parameter from the querystring or a control with a "like" condition, "%" as a default value for the parameter will return all the rows in the datatable (In design time with no code)
How can i get all the rows when no parameter is specified for a query filtered by a numeric field? (In design time with no code)
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
Hi
i also did the same for crystal report genration hope this will help you in your purpose also.
define a string and asign the blank in it by default.
The use the sqlquery for data source like: -
<br />
Select * from table {Parameter}<br />
so now pass the string as parameter if the string in "" then it will retrive all the records else if the string is some condition like: -
<br />
str=where name like %a%<br />
then it will retrive the filter records.
Yogesh Agarwal
|
|
|
|
|
Thanks for the reply, but what i need is to apply this same logic to a numeric field
Alexei Rodriguez
|
|
|
|
|
i was surprise when i knew O/R mapping in VS2005.
then i used it in my project, it's company inner website for view document, discuss, sharing sth(like blog) and so on.
everything looked good until i modified database structure,
the VS IDE doesn't have a tool to synchronous the database and the objects.
i had to updated all methods refer to modified tables.
the second troublesome is the name of O/R mapped objects. if you have a table 'table1' then you will have a dozen of long name objects, like 'table1DataTable' 'table1Row' 'table1DataAdapter'... even if i know it can be modified. but i don't want to modify it manually...
LINQ sounds a good O/R mapping way to replace old in VS2005. what's your opinion about this?
|
|
|
|
|
Hello,
I have been banging my head against the wall and google-ing to find the answer. Either I am not looking for the right phrase or there is something simple that I don't understand.
I have a Generic List(Of T) that I am using to feed a GridView control. I can get the data into the Gridview with no problem, however, I cannot get the rows to show in the proper order (they are basically in reverse order) and I cannot get the sorting function of the gridview to work. For the sorting, I have AllowSorting = True, and I have a method set up to handle the event when it fires. I see the "javascript _doPostBack" line in the status bar of the browser when I try to click on the sorting. Clicking on one of the headers gives no response...it doesn't even act like it is trying to do anything.
I would put more in here, but I am not sure exactly what you would need, if anything, to help me find the answer.
Thanks
|
|
|
|
|
Does the sorting event fire ? What happens in there ? Is your list being resorted ? Have you checked that the order of the list is as you expect ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am not sure if it does fire. I am having to run my test application on a remote server that has access to the data...so I can't do inline de-bugging (or at least, if I can, I don't know how to).
The list is not being re-sorted that I can tell. It doesn't even look like it refreshes the screen.
The only other thing I have running on this page is an auto-refresh feature. I am trying to get that to be a user-selectable refresh time. That isn't working either, but that is a topic for another post. I added that here as I am not sure if that might be interfereding somehow.
|
|
|
|
|
iam creating a reporting webpage. we have several types of reports like sales , customer ,....... if the user selects sales it will redirects to a separate page where they need to enter different parameters using the dropdown,textbox or listbox. for example they have different parameters like product,month,year,location. the user can enter any combinations. like either they select product and location or month and year like any combinations. once they submit the webpage , we have to pass those parameters to the XML and then query the database according to that. hope you've understood my explanation. so for this i just want to know how to send the parameters to the XML and then query the database. Please help me out
|
|
|
|
|
I answered this earlier today and it still makes no sense. What is the XML used for - is there a stored proc using OpenXML at the other end ? Are you saying you don't know how to create an XML document ? And are you hoping for help passing the XML to an existing stored proc, or for some explanation on how to write your query so it takes XML ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi All,
I have some problem with javascript.
when I use update panel then this problem comes.
when i click on Button1 first time, then some error occurs. but next time it not comes. it may be some script register problem. but i reister the javascript function in Page_Load event on button click. i ma very confused, why this error coming. i search many on this but not found any solution.
please help me.
here is sample code . i also did like this..
i write this code on button click
protected void Button1_Click(object sender, EventArgs e)
{
string scriptString = "function msgg() { alert('hello');}";
ScriptManager.RegisterStartupScript(this ,typeof (UpdatePanel), "scriptString", scriptString, true);
//i tried these also..
//ScriptManager.RegisterStartupScript(Button,typeof (Button1), "scriptString", scriptString, true);
//ScriptManager.RegisterStartupScript(updatepanelid ,typeof (UpdatePanel), "scriptString", scriptString, true);
}
protected void Page_Load(object sender, EventArgs e)
{
Button1.Attributes.Add("onClick", "return msgg();");
}
in aspx I write this--
<asp:updatepanel id="UpdatePanel1" runat="server" childrenastriggers="true">
<contenttemplate>
<asp:button id="Button1" runat="server" text="Button" onclick="Button1_Click">
thanks.
|
|
|
|