|
I am working on asp.net 2000.i have search button in my application..
I have give the keyword or any character, to be displays in the keyword having a form links...
Like I will give the keyword—“Home”
It’s display to how many forms’s found the home keyword, displaying the form links...
This is my query please help me...
|
|
|
|
|
santhoshmohan wrote: asp.net 2000
No such thing.
santhoshmohan wrote: This is my query please help me...
Do you have a database ? Sounds like you need one.
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 )
|
|
|
|
|
use the keyword Like in your select query
kavitha
|
|
|
|
|
I am working on asp.net 2000.i have add menu bar in my application..
I am creating menu bar using java script .
But i am apply my application the menu bar is not display...(overflow the image’s)
How to show the menu items.......
Kindly help me...
|
|
|
|
|
Hi,
I'm having some problem with AJAX, hope to get some work around from you guys here.
I have 2 drop down box and 1 GridView - ddProject, ddTask, GridView1
ddTask is in the UpdatePanel1
GridView1 is in the UpdatePanel2
OnSelectedIndexChanged on ddProject will fill up ddTask which works fine.
My GridView1 will present the data base on the value selected in ddTask, the problem is the where clause in GridView1's Control does not have the ddTask for me to choose.
I put a textbox outside all UpdatePanel and name it txtTask so that GridView1 can refer to this for displaying data, and do a OnSelectedIndexChanged on ddTask but txtTask is not filled with anything when I select from ddTask.
The question is, how do I bring out data from UpdatePanel to controls that are outside the UpdatePanel.
Thanks in advance.
J Liang
|
|
|
|
|
You must add the triggers after the content template in updatepanel.
<asp:scriptmanager id="sc1" runat="server">
<asp:updatepanel id="UpdatePanel1" runat="server">
<contenttemplate>
<asp:dropdownlist id="ddlAuthorID" autopostback="True" runat="server" onselectedindexchanged="ddlAuthorID_SelectedIndexChanged">
<triggers>
<asp:postbacktrigger controlid="ddlAuthorID">
God is always with you.
|
|
|
|
|
You must add triggers after content template in the update panel.
<triggers>
< asp:PostBackTrigger ControlID="ddTask" />
God is always with you.
|
|
|
|
|
Hey,
Thanks man, it works, it actually pass the value out.
But I did some changes to it. I put the txtTask into UpdatePanel2 and add AsyncPostBack for ddTask in UpdatePanel2, so when SelectIndexChanged trigger for ddTask, it update txtTask in UpdatePanel2, now my GridView1 in UpdatePanel2 can refer to txtTask with no problem.
J Liang
|
|
|
|
|
How to retrieve all records from gridview and assign it to datatable when paging is done?
kavitha
|
|
|
|
|
U just got that much of record in grid the record u showing. so use some session or something and keep the datatable . in that scenario u can get the data.
Devjit Das.
|
|
|
|
|
actually my datatable is in session but i m using FindControl which uses RowIndex to search the record but RowIndex is from 0 to 4 in first page.To retrieve 6th record it has to move to second page and get another 5 records .
How to do that?
kavitha
|
|
|
|
|
I have a database with several fields that are Boolean. I want to display a image for the field if the value is true in a DataList view. I code in VB.
The code is as follows:
<asp:DataList ID="ContractDL" runat="server" DataKeyField="ContactID" DataSourceID="ContactsDS"
Style="position: relative">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("ContactLast") %>'></asp:Label>
<img src="images/redcross.jpg" style="position: relative" Visible='<%# IIf(Eval("Emergency") = False, False, True) %>' />
</ItemTemplate>
</asp:DataList>
The code shows the image whether the value is true or false. Thanks for your help.
|
|
|
|
|
williammcq wrote: Visible='<%# IIf(Eval("Emergency") = False, False, True) %>' />
Why do you need IIF ? You've got a bool to start with, I'd be using Not (Eval("Emergency")).
If you make the visible property pass the data object to code behind, you can debug and see what's going wrong.
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 have a dataset that looks like this:
date val1 val2 val3 val4 val5 val6
10/1/2007 1 45 5 6 100 2
10/2/2007 1 45 5 6 100 2
10/3/2007 1 45 5 6 100 2
I need to convert this dataset set to
categories(val1, val2, val3, val4, val5, val6)
series(10/1/12007;1;45;5;6;100;2)
series(10/2/2007;1;45;5;6;100;2)
series(10/2/2007;1;45;5;6;100;2)
etc.
category values are from checkboxlist on the page.
Can you please help me do this?
Best Regards,
mike
|
|
|
|
|
Just iterate through each row in table of dataset
while iterating you can format the way you want
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'ftp://darolketab:.........@darolketab.com/httpdocs/...
<%@ page language="C#" autoeventwireup="true" inherits="Default, App_Web_we3fs5_c" stylesheettheme="bookshop" %>
-^
what's this Error?
|
|
|
|
|
You have published your site on a server that does not support ASP.NET.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi,
I have the following declaration for a web user control in my master.page:
<%@ Register TagPrefix="MyTagPrefix" TagName="MemberZone" Src="~/Includes/Content/Modules/Module_MemberZone.ascx" %>
And in my ASPX source if I have the following:
<!-- Member zone -->
<MyTagPrefix:MemberZone ID="wucMemberZone" runat="server" />
Now the trick comes in... I only want this web user to display on certain pages, that is, all pages in the user account. And you can only access the user account if you have logged on.
How do I do this? Am I doing it incorrectly?
Regards
|
|
|
|
|
Check whether the user is logged in or out and set the visibility of the control accordingly.
Paul Marfleet
|
|
|
|
|
Hi Friend
I am little bit confused the way you implemented or i took it in wrong way
From my understanding you have a User Control ok
that user control is registered in Master Page.
No you are saying that you have to hide show this user control incertain pages ...
Now as you said in Member zone (What is meant by memeber zone ?)
you decalared that used that user control
If i supposed the member zone is part of Master page
just create public property that assign value to it
public bool Shoe MemberZone
{
set{this.wucMemberZone.Visible=value;}
}
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Is this code safe for password encryption in asp.net web forms?
string pass = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text, "md5");
Is there any differentiation between above code and below code?
UTF8Encoding encoder = new UTF8Encoding();
MD5 md5 = new MD5CryptoServiceProvider();
byte[] hashedPassword = md5.ComputeHash(encoder.GetBytes(TextBox1.Text));
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hashedPassword.Length; i++)
{
sb.Append(System.Convert.ToString(hashedPassword[i], 16).ToString());
}
string pass = sb.ToString();
Best Regards...
|
|
|
|
|
I bought a new computer ( with Windows XP Prof ) and I reinstalled Visual Studio 2005 ( Team edition for Software Developers ). However this time I also installed Visual Studio 2005 Service Pack 1 ( since it is claimed that they removed a lot of previous bugs through it) before installing AJAX 1.0.
The problem is that the “LoginView” control does not show up in the web page anymore.
What happened ? Did the “LoginView” control change with the addition of Service Pack 1 ?
If so, what parameters should I change to make it functional again ?
Here my LoginView code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<span class="UserInfoSignIn">You are not logged in.</span>
<!--<asp:Label ID="SignInWarning" CssClass="UserInfoSignIn" runat="server" Text="You are not logged in."></asp:Label>-->
<asp:LoginStatus LoginImageUrl="~/Images/signin.gif" CssClass="login_status" Width="60" Height="20" ID="LoginStatus1" runat="server" />
<a href="Register.aspx">
<img src="Images/register.gif" width="66" height="20" border="0" style="position:absolute; left:35px; top:198px; z-index:3;"/>
</a>
</AnonymousTemplate>
<RoleGroups>
<asp:RoleGroup Roles="Customers">
<ContentTemplate>
<asp:Label ID="UserWarnLb" CssClass="UserInfoText" runat="server" Text="You are logged in as : "></asp:Label>
<asp:LoginName ID="LoginName1" runat="server" FormatString="<b>{0}</b>" CssClass="UserNameText" />
<asp:LoginStatus ID="CustomerStatus" OnLoggedOut="CustomerStatus_LoggedOut" LogoutImageUrl="~/Images/signout.gif" CssClass="login_status" Width="60" Height="20" runat="server" />
</ContentTemplate>
</asp:RoleGroup>
<asp:RoleGroup Roles="SI_administrator">
<ContentTemplate>
<a class="UserDetLink" href="UserDetailsAdmin.aspx">User Details Administration</a>
<a class="UserInfoLink" href="DatabaseAdmin.aspx">Database Administration</a>
<a class="ShopInfoLink" href="ShoppingCartAdmin.aspx">Shopping Cart Adm</a>
<a class="OrdersInfoLink" href="OrdersAdmin.aspx">Orders Adm</a>
<a class="CartoonArticleInfoLink" href="CartoonAdmin.aspx">Cartoons-Articles Adm</a>
<asp:Label ID="UserWarnLb2" CssClass="UserInfoText2" runat="server" Text="You are logged in as "></asp:Label>
<asp:LoginName ID="LoginName2" runat="server" FormatString="<b>{0}</b>" CssClass="UserNameText2" />
<asp:LoginStatus ID="AdministratorStatus" OnLoggedOut="CustomerStatus_LoggedOut" LogoutImageUrl="~/Images/signout.gif" CssClass="login_status" Width="60" Height="20" runat="server" />
</ContentTemplate>
</asp:RoleGroup>
</RoleGroups>
</asp:LoginView>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
I have a custom asp.net calender control that does everything on the client through javascript, and when the user clicks save, the control serializes its state into a hidden field which is then parsed on the server and saved into a database.
The problem i have is how to know when the page is posting back, so the control can save its state in the hidden field. When i add a event handler through Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(MySaveMethod); the changes to the hidden field do not show up on the server, but if i first save the state through a custom click event (onclick="MySaveMethod") and then submit the page i do see the saved state.
It seems that when using the PageRequestManager the controls are already disposed or the postback is already in action and any changes i make is lost.
I want to be able to intercept a postback request, save the control state in the hidden field and retrieve it on the server.
Thanks in advanced
|
|
|
|
|
Hi,
How to create an asp.net application that enables to drag and drop items like a rectangle ,circle etc. shaped elements created using VML(Vector Markup Language) tags in the webform.
cheers,
chakri.
chakravarthy
|
|
|
|
|
what do you mean by "drag & drop" ?
there are plenty of examples of Javascript and DHTML for this
only two letters away from being an asset
|
|
|
|