.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Asad Ali
Fauzul Azmi
Post New Web Links

ajaxToolkit:AutoCompleteExtender should filer record based on enrting the text value

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :ASP.Net
 

Hi All,

I am using ajaxToolkit:AutoCompleteExtender.

<asp:TextBox runat="server" ID="myTextBox" Width="300" autocomplete="off" AutoCompleteType="FirstName" />

            <ajaxToolkit:AutoCompleteExtender

                runat="server"

                ID="autoComplete1"

                TargetControlID="myTextBox"

                ServicePath="autoComplete.asmx"

                ServiceMethod="GetCompletionList"

                MinimumPrefixLength="2"

  &n


View Complete Post


More Related Resource Links

How can i update treeview root node every time based on the record entries

  
Hi all, I will have an mdi form and with a treeview which has it's initial property as visible =false. If i select an option from menu a child form will exists i will fill some details and click on save when ever click on save i will make the root node of the treeview to some name as File[batch count:0]. Now if i select another option from menu another form will appear and if i fill it with some details and click on save i would like to change the root node name to File[batch count:1] and a child node should exists with some name

Infopath 2007 Repeating Table - Multiple Value Column Text - Hiding Rows based on Column text values

  
Infopath 2007 browser based form Full Trust Example: I have a repeating table (FruitChoice) that has multiple columns. Both drop down list point to sharepoint list data sources. Choose your tree ft. drop down list – 6Ft Choose your Department drop down list - 103 This repeating table is conditional on the drop down values. This works great. Trees     Fruit       Cost   Date Ordered    Date Delivery Department 6Ft        Peaches                                                        103 3Ft        Apples                                                          102 3Ft        Peaches         &

Infopath 2007 Repeating Table hide row based on Text values of column

  
Infopath 2007 browser based form Full Trust Example: I have a repeating table (FruitChoice) that has multiple columns. Both drop down list point to sharepoint list data sources. Choose your tree ft. drop down list – 6Ft Choose your Department drop down list - 103 This repeating table is conditional on the drop down values. This works great. Trees     Fruit       Cost   Date Ordered    Date Delivery Department 6Ft        Peaches                                                        103 3Ft        Apples                                                          102 3Ft        Peaches         &

Reading each record from a text file and sending email

  
Hi All, I have a text file (CSV) which has only three fields (Name, Email, SendYN). I want to read each record from this text file and send email to those records where SendYN field has Y. I had created Flat File connection and a Flat File source in a data flow which uses Flat file connection. Now I stuck how to move further. Which control I need to add and where to identify whether SenderYN = Y and how to send email? I am new to SSIS. Thanks.

Hide Label Based on Label Text?

  

Is it possible to display or hide a label based on the text rendered in it?
I have a label that will display the value of a control on the previous page. If the value rendered is "0" then I want to hide the label or hide the label and one more label associated with it. (or if the value is more than "0" make it visible)

Any suggestions would be great.

Thanks



How to save a multiple user control to a few single record text?

  
I have a list with people pecker control that admits multiple users.
I like to have another list with one record for each user in the control that loaded before.
Is there any way in InfoPath or in a workflow to use something like FOR EACH to take one by one user in a control and write/update records after that?
Thank in advance
Ramiro

select record based on / match selected date

  
 
with the sql statement below, i try to select the records based on the selected date, it return no rows from adapter filled datatable. 
however, when i run the query in sql query in sql server studio management, it returns records. 
date format = 09/28/2010

string[] splitDT = txtSelectedDate.Text.Split('/');

            string strRearrangeDT = splitDT[0] + "/" + splitDT[1] + "/" + splitDT[2];

using (SqlConnection sqlconn = new SqlConnection(connstring))
            {
                DataTable dt = new DataTable();
                string strSQL = "SELECT userclaim_details3.id, userclaim_details3.userclaimid, userclaim_details3.userid, userclaim_details3.childcategorytableid, userclaim_details3.statusid, " +
                         "userclaim_details3.amount AS amountname, userclaim_details3.remark AS remarkname, userclaim_details3.datecreated AS datecreatedname, " +
                         "userclaim_details3.datemodified, approvaltable.id AS Expr1, approvaltable.typename AS statusname, usertable2.id AS Expr2, usertable2.name AS uname, " +
                         "childcategorytable.id AS Expr3, childcategorytable.categor

Selecting record based on domain url and email comparison

  

I want to limit the selecting of data records to only the user who created the record, OR a users who's email address belongs to the domain of the record being edited.
So, if the producer has a value in the URL of "www.mydomain.com" and their email address in the Membership is "someone@mydomain.com" they will be able to see the record.


I have the following table:
Table -  Producer
Field: ProducerID
Field: ItemUserID
Field: URL

I have figured out how to select based on the ItemUserID (see code below), but I don't know how to compair the email address values of URL and the Membership.


protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
 {
      if (Page.User.Identity.IsAuthenticated)
    {
     //get id of user logged in
     e.Command.Parameters["@ItemUserID"].Value = Membership.GetUser().ProviderUserKey;
    }
        
 }

Can someone show me how to code my requirements?
Thanks.


how to set primary key in datatable and find the record based on primary key

  

Hi all,

I want to set primary key to my datatable and find the index of my record in my datatable based on that primary key. Can any one please help me regarding this?

Regards,

Ramesh Rathi


No audience was found based on your search request. Refine your search text.

  

I have a setup with seven Audience groups. In Central Admin I can see that each group have several members.

When a try to add an Audience to an item (Page, list item, web part etc) I use the Select Audience Picker Dialog, but when I open the dialog there is an alert message saying:

"No audience was found based on your search request. Refine your search text."

When I make a search for one of my Audiences it shows up.

But I was expecting that the dialog would show me my seven Audiences, without having to search for them first. This behavior wasen't in SharePoint 2007.

Can somebody help? Do I miss a configuration somewhere?

By the way, all the Audiences have been compiled.


egholm

How to make a panel visible based on the validation of a text box?

  


Hi,

I have a text box and some validation on it. I want to make a panel visible only when

it is successfully validated,i.e.,textbox entry is valid.Also,I want to capture the entered valid value(it should be integer within 1-8) in a session,based on this number,I am going to add that many rows in an editable grid view.

How to do that?


SSIS - load table from source text file with multiple record lengths

  

I have a text file that has mulitple records lengths that I need to load into a table.  The file has multiple record types and each record type detemines the length of the record.  Let me try to explain...the file has a balance line 1, multiple detail records, balance line 2, and a trailer record.

The first record is a balance line 1, which has a record length of 144.

Detail records with a record type of inv or crd, will have a record length of 147.  The remaining record types will have a length of 144.

The second to the last record is balance line 2, which has a a record length of 156.

And the trailer record, which has a record length of 162.

Here is a portion of my source file.  I have made each line bold where you can see the rec type.  The record starting with 9999 is the trailer.

077700001BL100000002010100120101008BALANCE FORWARD 0000000000000000001081175D0000000000{0000000000{0000000000{000001081175D00 0000000000{

077701000INV01953172010100120101008GROCERY - DRY 0000000000000000000073504I0000016678K0000000852G0000000000{000000057679D011N 0000093201E010

07779008099000000002010100820101008KC CASH REC. 0000000000000000001081175M0000000000{0000000000{0000000000{000001081175M00 00000000

Based on the rowsize entered on the text box, how to generate a dynamic grid view of that many row?

  

Hi, I have a text box.It is having 2 validation on it(Range validator and req field validator). Now,if I enter an integer within 0-8,just after gettting out of focus of the text box,I need to generate a grid which should contain exactly that many number of rows. Now,My question is: 1.How to capture that number entered in the text box and without any button click event,how to to generate the grid?I suppose,I need to write the code in one of the TextBox event.But,which one and how? Please help me as I am in urgent need.


Load multiple record length text file into table using SSIS

  

I have a text file that has mulitple records lengths that I need to load into a table.  The file has multiple record types and each record type detemines the length of the record.  Let me try to explain...the file has a balance line 1, multiple detail records, balance line 2, and a trailer record.

The first record is a balance line 1, which has a record length of 144.

Detail records with a record type of inv or crd, will have a record length of 147.  The remaining record types will have a length of 144.

The second to the last record is balance line 2, which has a a record length of 156.

And the trailer record, which has a record length of 162.

Here is a portion of my source file.  I have made each line bold where you can see the rec type.  The record starting with 9999 is the trailer.

077700001BL100000002010100120101008BALANCE FORWARD 0000000000000000001081175D0000000000{0000000000{0000000000{000001081175D00 0000000000{

077701000INV01953172010100120101008GROCERY - DRY 0000000000000000000073504I0000016678K0000000852G0000000000{000000057679D011N 0000093201E010

07779008099000000002010100820101008KC CASH REC. 0000000000000000001081175M0000000000{0000000000{0000000000{000001081175M00 00000000

How to show record in Text box using Binding

  

This is my first question in WPF

How to show data in textbox from SQL server database? I have Employee table and like to show the name in text box

my code

<TextBox BorderThickness="2" Height="23" Text="{Binding Path=EmpNo}" HorizontalAlignment="Left" Margin="91,12,0,0" Name="

Creating custom Intellisense-based text editor like Pex for Fun

  

We would like to create a custom text editor which allows our end users to enter .Net code that hooks into our .Net API with Intellisense similar to how it is done on the Pex for Fun website: http://www.pexforfun.com/

Is there a way to build a custom control text editor (or use a 3rd party free or purchased control) that supports .Net Intellisense  in the same way done by Microsoft on the Pex for Fun website?

Thanks.


Can you custom format a single sitemapnode based it's text, url or level (submenu)?

  

The title pretty much states the question.  I have a menu inside my asp.net master page.  This menu pulls from  a web.sitemap file.  I have a css file that formats the individual nodes.  However, I want to format the menu headers a certain way while the submenu's are different.  Namely, I want to put a small image before all the submenu points while not the main sitemapnodes.  So far, I can use css to put the image infront of every node.  But I haven't been able to differentiate between the nodes.  The main node has a blank URL instance.  I thought I could use that in the C# code but I haven't been able to .  Could someone give me a link or show some code on how to do this?  Thanks.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend