Filtering Names On The Basis Of First Character Of The Name?
Jul 29, 2010
i have a page in which i am displaying the name of all the users i want to filter their names on the basis of first character for that i want to show A B C D ....X Y Z filters on the top on clicking of which it will filter the names accordingly my problem is not the query part but how to add these letters do i have to add 26 link buttons separately or there is some work around for example you might have seen such type of behavior in some music sites for filtering the songs with starting character.
View 2 Replies
Similar Messages:
Mar 7, 2011
I have a site that allow the user to request a secret report in a pdf format. My idea is to put the generated pdf files in a public folder with disabled directory browsing. Each file name consists of 128 characters that are uniquely and cryptographically generated. The legitimate user will be given the link of his/her own report.
View 2 Replies
Mar 14, 2010
I have a standard gridview, with the standard paging and sorting interface enabled.The application holds appointments for three organisational units, with a maximum of 3000 appointment records being returned across all three units. The appointment records are quite small.
The choice I am faced with is to:
1. Have an Org Unit dropdown which returns to the datasource on change of selection and at inital databind, and returns appointment records for one org unit at a time i.e. approx 1000 records.
2. Have the objectdatasource return all 3000 appointment records for all org units at initial databind, and filter the objectdatasource by org unit on change of selection, thereby saving a trip to the datasource.
I guess the question boils down to identifying the point at which querying the datasource by org unit is more efficient than filtering the records returned by org unit.
Is 3000 records a lot for a gridview to be paging and sorting etc.
View 3 Replies
Jun 1, 2010
I have been working with this database for some time. Here is the situation...
I inherited a MS SQL database that has hundreds of tables with similar data. For instance:
FordTampa_customer is a table,
ChevyAtlanta_customer is a table, etc....
All of the columns are the same...just different tables with their own ID field. All I have done...Inside of another database id is created a table called 'Customer' and added an 'Dealer ID' column along with the rest of the other columns in the other tables...
So the combination of the 'Dealer ID' and the 'ID' field are unique.....I know...its not the best way to do things...but I cannot change the old data structure because I cannot have access to it. I am give back-ups on a weekly basis, so this is all I have to work with.
All right, on to the real point of my post...
Currently, I have an application that I use to select all of the data from the 'Ford_customers','Chevy_customers',etc... and inserts them into my new main 'Customer' table. I do this by selecting the table names, bind it to an arraylist, loop through the list and execute an insert statement.
I do this in VB.NET, but I would prefer to do it in a Stored procedure of some kind....I just am not sure how to accomplish it. I use this syntax to get my list of tables:
[Code]....
I am not sure how to take those names from the table and do another select based on that list of names.
View 1 Replies
Jan 14, 2011
My issue is that , need to change the column name(following format "Remove first character and after 3rd character insert colon") of the gridview (which is binded with XMLTextReader). Without changing directly XML file, Required to change the column name dynamically at runtime .
Performance.xml
<Performance>
<Departments>
<Heading>FS</Heading>
<S0015>1</S0015>
<S0020>2</S0020>
<S0025>5</S0025>
<S0030>5</S0030>
<S0035>6</S0035>
</Departments>
<Departments>
<Heading>BS</Heading>
<S0015>0</S0015>
<S0020>3</S0020>
<S0025>5</S0025>
<S0030>1</S0030>
<S0035>3</S0035>
</Departments>
</Performance>
Heading S0015 S0020 S0025 S0030 S0035
FS 1 2 4 5 6
BS 0 3 5 1 3
Required Format: Remove first character and after 3rd character insert colon (S0015 -- 00:15)
Heading 00:15 00:20 00:25 00:30 00:35
FS 1 2 4 5 6
BS 0 3 5 1 3
View 2 Replies
Dec 7, 2010
Norwegian character( å æ ø) does not show instead showing some strange character.
used function below:
utf8 = System.Text.Encoding::get_UTF8();
View 4 Replies
Jul 27, 2010
I looked up the msdn documentation and it says that InvalidUserName is thrown when it does not find the username in the database, which is fine because the user I am creating should not exist in the database. If I use test@example.com, it works, but if I try it with test.@example.com, the status from Membership.CreateUser is InvalidUserName.
View 1 Replies
Jan 25, 2011
How to read character by character in line from text file?
View 1 Replies
Mar 17, 2010
I have a legacy MySQL database which stores the user passwords & salts for a membership system. Both of these values have been hashed using the Ruby framework - roughly like this:
hashedsalt =
Digest::SHA1.hexdigest("--#{Time.now.to_s}--#{login}--")
hashedpassword =
Digest::SHA1.hexdigest("#{hashedsalt}:#{password}")
So both values are stored as 40-character strings (varchar(40)) in MySQL. Now I need to import all of these users into the ASP.NET membership framework for a new web site, which uses a SQL Server database. It is my understanding that the the way I have ASP.NET membership configured, the user passwords and salts are also stored in the membership database (in table aspnet_Membership) as SHA1 hashes, which are then Base64 encoded (see here for details) and stored as nvarchar(128) data.
But from the length of the Base64 encoded strings that are stored (28 characters) it seems that the SHA1 hashes that ASP.NET membership generates are only 20 characters long, rather than 40. From some other reading I have been doing I am thinking this has to do with the number of bits per character/character set/encoding or something related.
So is there some way to convert the 40-character SHA1 hashes to 20-character hashes which I can then transfer to the new ASP.NET membership data table? I'm pretty familiar with ASP.NET membership by now but I feel like I'm just missing this one piece. However, it may also be known that SHA1 in Ruby and SHA1 in .NET are incompatible, so I'm fighting a losing battle.
View 2 Replies
Mar 4, 2010
I want to read a line character by character, in the sense I want to read each and every character on the line. can I can make that line as a string. breaking string into substrings ? if possiblw how.? I m unable to start. can anyone give the code.
View 7 Replies
Sep 21, 2010
in my form i m supposed to calculate the dob as soon as the user enters 14/06/98 it should get 12 yrs automatically there & then only .
how can this be done
View 10 Replies
Jul 13, 2010
I have a string that has content like
<html xmlns:o="urn:schemas-microsoft-com:office:office"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Style-Type" content="text/css"
/><meta name="generator" " /><xml>
<o:DocumentProperties.......</body></html>��������"
I want to split the string on the basis of "</html>". I basically want to eliminate the �� junk after </html>. How can I do that?
View 2 Replies
Jan 19, 2011
I have a Class called Repository for accessing (Read/Write to and from) Database.The projects that require access to the database create an object of Repository and pass the connection string as a constructor parameter for the repository to work for that particular project.
I have few methods in the Repository that i want to be available only if certain connection strings are passed. I don't want them to be available if some different connection string is passed.Is there any way I can accomplish that?I have never used method header technique, if yes, how can i use it? if no, please let me know if there is any other way to achieve my goal.
View 6 Replies
Feb 17, 2010
I want to create an Image to show the used space of each user. I explain it in details. Each user can login and can upload its document on the web. I want to calculate that space and want to show the space used i form of Image like attached. I have calculated the space for logged in user but unable to create Image on basis of this calculated space.
View 5 Replies
Feb 25, 2011
I want to develop a window application for fetch lyrics on basis of artist name and song name. I am using [URL] and to access this API i am using SOAP webservice. when i add this namespace using LyricsLookup.org.lyricwiki; i can access all function of wiki but when i run my application it is giving unable to automatically step into the server.Connecting to the server machine 'lyricwiki.org' failed. The format of the specified network name is invalid This type of error. I am not getting this error clearly.
View 1 Replies
Jan 5, 2011
I have a grid control where i am binding list of stickers. On the above of grid , that is out side grid i have two buttons Create Sticker and Void Sticker. Sticker basically have three properties Active , Void and Expired displayed as text in column. There is condition of adding only one sticker at a time. Also if there is an active sticker then user cannot add another sticker until and unless its is expired or void.
So what i want is that whenever my grid is loaded if there is an column with text active the the create / add sticker will get disabled and void will get enabled. I am using the folloing code
/// <summary>
/// Handles the RowDataBound event of the gvSticker control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Web.UI.WebControls.GridViewRowEventArgs"/> instance containing the event data.</param>
/// <remarks></remarks>
protected void gvSticker_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
{
if (Session["FisherId"] != null)
{
if (e.Row.RowType == DataControlRowType.DataRow)
[Code]....
View 1 Replies
Jan 14, 2010
I have a check-box-List which I bind to a master dataTable(DTA)... I have another dataTable (DTB) which has the values that needs to checked in the check-box-List... So I loop through all items in the check-box-list to see if it exists in the DTB and set checked = true for those items that exists. Now I want to show the checked items first in the Check-box-list box and the unchecked items below that. Is there any way I can do it... A similar solution for List-Box could also be helpful. A Javascript hint is welcome too.
View 1 Replies
Dec 14, 2010
How can I remove or Dispose a session once user navigate from one page to other. I just want to use a session which should expire when user navigate to other page..its same like view state..we don't get viewstate information on page to page. why session: i need to keep one value on page constant on page refresh where as Viewstate will be reset to null on page refresh...and i just don't want to use that session once user navigate to other pages.. where i need to plcae the session dispose in page events or methods?..or is there any way to keep viewstate on page refresh?
View 9 Replies
Jul 3, 2010
I am using asp.net 3-tier architecture, language c# for creating a web application. In presentation layer, I want to populate a textbox when I select an option from a drop down list. Under the code sample from .aspx page is given:
<asp:TableRow ID="TableRow4" runat="server">
<asp:TableCell ID="TableCell5" runat="server">
<asp:Label ID="lblCat" runat="server" Text="Product "></asp:Label>
[code]...
View 2 Replies
Mar 2, 2011
in my web appliaction there are many pages which use data from backend . and all these pages run according user login in application.every user gat different data according data availability for particular user .And data is not static for user in database it can be update ,delete,and may be new data inserted for user, frequently . in this case roundtrip for data on sql serverv increased and it cause of load on sql server. in this csae i want to implement caching on my pages. But I am not able to do this because i have no idea about how implement caching on the basis of particular user data .
View 10 Replies
Jul 12, 2010
I wanna search operation on the basis of the keyword write in the text box and search the subsequent result from the database..
View 2 Replies
Mar 4, 2010
I required to load dropdown with the section name on the basis of UserProfile when the page load anytime.
The dropdown is bounded by sqldatasource configured to TblSections.
TblSections with datafields sectionId(numeric) and Description.
There is another table Users with field sectionId and UProfile.
There is a gridview grvResult bounded by objecdatasource configured to TblFltReg.
TblFltReg has field Owner(numeric).
Actually Owner and SectionId are same.
I don't know how to do this task.
View 5 Replies
Sep 21, 2010
i have a form in which i need to show designation name say s/w developer on the basis of design code taken from the other table. there are act 2 tables designation & emp . designation has its id & name both and emp has all the other fields ie emp id, salary , name, designation,and the other.
View 17 Replies
Mar 26, 2010
I i want to schedule an asp.net page on my hosting, how to achieve it?
for instance, i have a page named myservice.aspx runing on my website.com/myservice.aspx
i want to run this page on every 24 hours.
View 4 Replies
Oct 5, 2010
I am trying to get gridview populated on the basis of Date as a search parameter.Date Textbox is taking date as MM-dd-yyyy.Date format in table is dd/MM/yyyy HH:mm:ss.The problem is that when I give date for example 30-04-2010, the data is not populating to gridview as the date in the table is 30/04/2010 12:00:00 .Actually I want to know query.
View 5 Replies