|
What do you want to do ?
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 )
|
|
|
|
|
Dear Programmers,
I am using gridview in my project. I want to give users a facility so that they can move the rows of the gridview Up and Down. For Example If the press the Up Button on second row of the gridview then the data on Second Row will be shifted on First Row and the Data on First Row must be shifted on Second Row.
For this I have used Link Buttons and I am using VB.NET as language. Please Help me in this regard.
Thankyou.
Waiting for your reply. Please reply me as soon as possible.
|
|
|
|
|
You need to re-order the datasource and re-bind it to grid view.
|
|
|
|
|
You have to use DataTable to re-structure the rows, and again bind the formatted rows with GridView.
I have done the same in C#.Net. If needed you can modify it to VB.Net
Cheers,
Muthu.G
|
|
|
|
|
Hai All,
THE PROBLEM THAT I FACE
Iam copying the contents of a word file(.doc) into a Ritch Text Editor and then by saving, the contents is been writing into a HTML file named Msgbody.html in the admin side.In the user side the html file is been reading into
a dynamic page.The problem here iam facing is that my design is cracking because the actual format that i have in the
word file is not preserving when iam writing it into an HTML File.
Anybody can help me in the above issue.
If can give me a snippet of code.
OR
Could you give me an idea of How to create a Dynamic page.My requirement is that a word file should have to be shown in a dynamic page without loosing it's format.
|
|
|
|
|
I can't imagine that a rich text control has all the functionality that word has. Wouldn't it make more sense to control word to open the document and save it as HTML ?
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 )
|
|
|
|
|
georgegarvasis wrote: Could you give me an idea of How to create a Dynamic page.My requirement is that a word file should have to be shown in a dynamic page without loosing it's format.
Do you want to show the word file contents in the page or provide it to the user for download ? If you want to open word files preserving the formatting, there are plenty of articles came when I did google[^] search.
|
|
|
|
|
Hi all,
I have created inherited HyperLinkUser control as follows
Public Class ResourceHyperLink
Inherits HyperLink
Private m_ResourceID As Integer
Private m_ResouceName As String
Public Property ResourceName() As String
Get
ResourceName = m_ResouceName
End Get
Set(ByVal Value As String)
m_ResouceName = ResourceName
End Set
End Property
Public Property ResourceID() As String
Get
ResourceID = m_ResourceID
End Get
Set(ByVal Value As String)
m_ResourceID = ResourceID
End Set
End Property
End Class
Can I able to add this control in the datagrid Itemtemplate
<asp:TemplateColumn>
<ItemTemplate>
'HERE </ItemTemplate>
</asp:TemplateColumn>
|
|
|
|
|
danasegaranea wrote: Can I able to add this control in the datagrid Itemtemplate
Yes you can do that. What's the problem you are facing here ?
|
|
|
|
|
Thanks for the post Navaneeth,
I tried like this
<asp:TemplateColumn>
<ItemTemplate>
<asp:ResourceHyperLink ID="lblResource_First" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ResourcesName_Left") %>' BorderColor="white" >
</asp:ResourceHyperLink>
</ItemTemplate>
</asp:TemplateColumn>
And got the error as
The active schema doesnot support
|
|
|
|
|
Have you tried putting a simple text value ? Remove DataBinder.Eval(Container.DataItem, "ResourcesName_Left") and put a simple text there. Just check if it is working ?
|
|
|
|
|
I tried like this
<ItemTemplate>
<asp:ResourceHyperLink ID="lblResource_First" Runat="server" Text='My' BorderColor="white" >
</asp:ResourceHyperLink>
</ItemTemplate>
<asp:TemplateColumn>
and got the error as
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type System.Web.UI.WebControls.ResourceHyperLink from assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
Source Error:
Line 322: <asp:TemplateColumn>
Line 323: <ItemTemplate>
Line 324: <asp:ResourceHyperLink ID="lblResource_First" Runat="server" Text='My' BorderColor="white" >
Line 325: </asp:ResourceHyperLink>
Line 326: </ItemTemplate>
|
|
|
|
|
It looks like you haven't registered your control assembly. So default ASP.NET will look in System.Web.UI.WebControls and throws this error. Add the below tag to top of your page.
<%@ Register Assembly="AssemblyName" Namespace="YourNameSpace" TagPrefix="cc1" %> In your sample, call this like
<cc1:ResourceHyperLink ID="lblResource_First" Runat="server" Text='My' BorderColor="white" > </cc1:ResourceHyperLink>
|
|
|
|
|
Hi, i am developing a search engine.when i type a keyword in text box,the matched word should be highlighted and all the results should be appeared.
sending sample code would be appreciable.
Thanks n regards
Krishna PRASAD.
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
I guess you want to parse the page, so that when you show it, you've wrapped the word in question in a div that sets a style to change it's color. Like Google does.
So, you've got the rest done, and just need to get the syntax highlighting to work ?
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 yadlaprasad,
You wanna make use of Google's strategy which simplifies your search structure. I seen one article based on it, which helps you alot. Please check out this link.
http://www.codeproject.com/KB/IP/Spideroo.aspx
Hope this will help you.
Thanks & Regards
|
|
|
|
|
I'm new to custom controls and having trouble, am working with VS2008: I'm trying to edit an application that uses javascript input control on the page, and PostBackEventHandler and PostBackDataHandler to handle postbacks
We have a main aspx page with a set of controls nested inside one another. I want to create a new nested control consisting of a textbox and an adjacent hyperlink to trigger storage of the contents of the textbox in the class variables of the parent control. I created a simple test app that just includes the custom control directly in the main webpage's codebehind, but can't get the postback working. If I enable script debugging, I get error "Microsoft JScript runtime error: Object expected" at the "__doPostBack('__Page','Hello')" part of the script (from the GetPostBackEventReference") call. Simplified code for my custom control is included below, and below that is the code I include in the .aspx.cs page's codebehind where I'm trying to use the control.
Thank you for any help!
public class MyTestClass : Control, IPostBackEventHandler, IPostBackDataHandler
{
string textBoxValue;
System.Web.UI.Page myPage;
MyTestClass(System.Web.UI.Page myPage)
{
this.myPage = myPage;
}
public event EventHandler LinkClick;
public void RaisePostDataChangedEvent() { }
public void RaisePostBackEvent(string eventArgument)
{
this.LinkClick(this, new EventArgs());
}
public bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection)
{
this.textBoxValue = postCollection[this.UniqueID];
return true;
}
protected override void Render(HtmlTextWriter writer)
{
writer.Write("<script language=\"javascript\"> function Test(){ " + myPage.ClientScript.GetPostBackEventReference(myPage, "Hello") + "}</script>");
writer.Write("<INPUT type=\"text\" name=\"" + this.UniqueID + "\" id=\"" + this.ClientID + "\" class=\"size\" value=\"\"/>");
writer.Write("<a name=\"" + this.UniqueID + "\" href=\"#null\" onclick=\"Test();return false;\">myHyperlinkText</a>");
}
}
Codebehind of the web page:
public class MyTestClass : Control, IPostBackEventHandler, IPostBackDataHandler
{
string textBoxValue;
System.Web.UI.Page myPage;
public MyTestClass(System.Web.UI.Page myPage)
{
this.myPage = myPage;
}
public event EventHandler LinkClick;
public void RaisePostDataChangedEvent() { }
public void RaisePostBackEvent(string eventArgument)
{
this.LinkClick(this, new EventArgs());
}
public bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection)
{
this.textBoxValue = postCollection[this.UniqueID];
return true;
}
protected override void Render(HtmlTextWriter writer)
{
writer.Write("<script language=\"javascript\"> function Test(){ " + myPage.ClientScript.GetPostBackEventReference(myPage, "Hello") + "}</script>");
writer.Write("<INPUT type=\"text\" name=\"" + this.UniqueID + "\" id=\"" + this.ClientID + "\" class=\"size\" value=\"\"/>");
writer.Write("<a name=\"" + this.UniqueID + "\" href=\"#null\" onclick=\"Test();return false;\">myHyperlinkText</a>");
}
}
|
|
|
|
|
Hi Friends,
How are you?,can anyone tell me how to write a trigger code.Kindly tell me please....
Thanks & Regards
Senthil Kumar
|
|
|
|
|
senthilsstil wrote: can anyone tell me how to write a trigger code.Kindly tell me please....
Google[^] not working for you ?
|
|
|
|
|
You should ask this in the SQL forum instead.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i have my form names and user names in the database , which tells , which form pertains to which user.
Now my question is , still there is any need to utilize the autorization tag in the web.config file ?
I am authorizing the user from checking the formnames from the database .
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
So what's the problem you are facing ? Already you are doing authorization from database. Then why you are worrying about the authorization tags in the web.config ?
|
|
|
|
|
i wanted to confirm if i have limited users , only then i should go for the authorization concepts ? otherwise , i don;t need to worry at all .
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
I think it's better to stick on the method which you are using now and working fine for you.
|
|
|
|
|
hai i new to using masterpage when i use this code any of page in my website javascript code appears how to overcome this problem very urgent
<script language=javascript>function test()
{
alert(document.getElementById("editName").value));
}
</script>
but without using masterpage this code working perfectly
|
|
|
|