|
mark merrens wrote: I do hope you don't get inundated with spam
FTFY
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
How do I search users in AD based on attribute?
I was able to get single user :
Dim cred as new NetworkCredential()
cre.UserName="mtID"
cre.Password="myPass"
cre.Domain="myDomain"
try
Using ladp as new LdapConnection("domain.domain.com")
ldap.Bind(cre)
Dim req as new searchRequest("CN=" & userName & ",OU=domain,DC=domain,DC=com","CN=" & userName, Protocol.SearchScope.Subtree)
Dim response as searchResponse= ladp.sendRequest(req)
....
|
|
|
|
|
I have a linq data source control question for a new C# web form 2010 application I am writing. I need to bring in one schedule date table and one main table to the .net 2010 control to display. The schedule table is based upon the current processing month and year. The main table is based upon what was entered on the orginal application web.
Would you setup two separate linq data source obejcts and point them to the appropriate cells in the web form control? Would you select all the data you need from the 2 unrelated tables in one linq statement and bring the data to the web form control? (The schedule dates are used to make data enter easier for the user. This keeps the user from having to enter dates.)
Can you tell how you suggest I accomplish this goal and point me to a references on how to complete my objective?
|
|
|
|
|
Hello guysss..pleas help me with thiss..i want to perform search in my sitee,,bt result should be show in searchresult.aspx page....
there are 8 pages in my site..when some one types anything on search of any of these pages the result must be show in searchresult.aspx page..
plzzz help me
|
|
|
|
|
|
hi everyone,
i want to create a blog service like blogger but i dont know how can do it and i have several problems:
1-when a user register in site,create a subdomain like username
(http://username.mysite.com).
2-what i need to know about speed(load a page).
|
|
|
|
|
When a user registers, create a subdirectory for him. This subdirectory must be mapped to the subdomain in the web server settings. And then add an entry for the subdomain to the domain name server.
These steps are pretty specific for the OS and server used.
|
|
|
|
|
|
Hi All,
I have following code in silverlight, I want to set max width for the StackPanel dynamically in xaml, but its not showing anything, means the width or max width value it is getting is "0". Basically I want to set the maxwidth of xaml to wrap the text inside the textblock
Foloowing is the Silverlight user control xaml:
<UserControl x:Class="TextBlockLayoutTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:converters="clr-namespace:ConvertersSilverlightClassLibrary;assembly=ConvertersSilverlightClassLibrary"
mc:Ignorable="d" x:Name="testUC">
<UserControl.Resources>
<converters:PercentageConverter x:Key="PercentageConverter"/>
</UserControl.Resources>
<Grid x:Name="grid">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="gridCol1" Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="0"
MaxWidth="{Binding ElementName=grid, Path=ActualWidth}">
<TextBlock TextWrapping="Wrap" >
test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
</TextBlock>
</StackPanel>
</Grid>
</UserControl>
public class PercentageConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
double d = System.Convert.ToDouble(value);
d = System.Convert.ToDouble(parameter);
return System.Convert.ToDouble(value) * System.Convert.ToDouble(parameter);
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
throw new NotImplementedException();
}
}
I tried to do the same using converters too, I binded my TextBlock width property with this PercentageConverter class still, the convert method is returning 0 so the textblock is becoming invisible. I tried in all the ways to wrap the text in side the textblock and show it accordning to the maxwidth of stack panel. In anyways its not becoming possible to wrap the text. We are implementing MVVM and Prism so we dont to implement code behind.
Can anybody please help me achieving this without using the code behind.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Please use the Silverlight[^] forum for Silverlight/WPF questions hereafter.
|
|
|
|
|
Since I am working on a my second C# asp.net webforms page that I have ever done, I have the following question:
In a linq to sql connection that I setup with a datacontext object I did not include the organization table in the .dbml file since I received error messages that the objects in the table were already declared in the same namesapce. I can not remove the organization table from the other datacontext object since that other datacontext object is already used in production. (I am adding some webpages that will be a url link offf of the main company page. I want to use the general webssite namespace instead of creating my own to keep the coding easier.)
Basically what can I do to include some of the columns of the organzation table to be joined with the tables in the my new .dbml file.
|
|
|
|
|
In a C#asp.net 2010 detailsview and formveiw controls, I am asking what embedding various linq data source controls in certain cells. Basically I want to embed different datasources so the default dates will appear in diffeent data cells. This allows the user not to have to enter the date unless there are some excpetions. The data would come from different tables in different datacontext production areas. Is this possible? IF so, can you point me to links that I can use to see how to accomplish this task?
|
|
|
|
|
Hi guys, i really need your help because i have a little challenge. I'm working on a web based pharmacy management system. I need to restrict the pages depending on your type of user. For example, a doctor has access to only the prescription module, a store officer to inventory control and stock management, a Pharmacist to Dispensing and Billing Module, a pharmacy technician to Patient Registration while an administrator has access to all pages including User Registration.
I've created a table with four columns - UserName, Password, StaffID, Roles. There are five main roles as determined by the administrator which are Doctor, Pharmacy Techician, Pharmacist, Store Officer, Administrator.
How do i do this programmatically in C# ASP.NET? Thank you so much, Looking forward to your favourable reply
|
|
|
|
|
|
|
|
i want add multi tagging in image using c#
asp.net any one help me please
|
|
|
|
|
You want to do like facebook photo tagging.
|
|
|
|
|
When working with a C#asp.net 2010 web forms, I am wondering if you can take the 'buttons' out of a control and place them somewhere else on the webform and still have them work? I would want those buttons to still refer to the asp.net control that they were originally associated with? I am referring to buttons like insert, delete, and update. In particular I am asking that question about the listview, formview, or detailview control? If this is possible, I am wondering if you can tell how how to accomplish this task and/or point me to a url that I can use as a reference to complete this task?
In addition when working with the buttons within the web form application and preferably not within the asp.net control, can I perform other programming that needs to occur? If so, can you tell point how this would be accomplished? Would I need to put the code in a certain method like a page_load,pre_init, a certain click event?
|
|
|
|
|
if i understand, you want to preform update, insert, delete functions from other location rather than inside common asp.net grid controls like ListView, FormView, DetailsView...
it can be done easily. you just need to call function you want to preform for target control. this is example how to call Update function for FormView outside of FormView
<asp:FormView runat="server" ID="fv" DefaultMode="Edit" DataKeyNames="id" OnItemUpdating="fv_ItemUpdating">
<EditItemTemplate>
<asp:TextBox runat="server" ID="tb" Text='<%#Bind("name") %>' />
<asp:Button runat="server" ID="btn" Text="Edit Inside" CommandName="Update" />
</EditItemTemplate>
</asp:FormView>
<asp:Button runat="server" ID="btn" Text="Edit Outside" OnClick="EditOutside" />
public System.Data.DataTable SomeData()
{
System.Data.DataTable temp = new System.Data.DataTable();
temp.Columns.Add("id");
temp.Columns.Add("name");
System.Data.DataRow dr = temp.NewRow();
dr["id"] = 1;
dr["name"] = "somebody";
temp.Rows.Add(dr);
dr = temp.NewRow();
dr["id"] = 2;
dr["name"] = "someone";
temp.Rows.Add(dr);
return temp;
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
fv.DataSource = SomeData();
fv.DataBind();
}
}
public void fv_ItemUpdating(object sender, FormViewUpdateEventArgs e)
{
string txtValue = (fv.FindControl("tb") as TextBox).Text;
}
public void EditOutside(object sender, EventArgs e)
{
fv.UpdateItem(false);
}
|
|
|
|
|
Thanks! that is exactly what I want to do!
|
|
|
|
|
I am actually generating barcodes.
Now each cell have some information related with a product along with it's barcode generated at runtime.
Now please tell me how can I place this barcode image at a specific position in a cell using coordinates & coding in c#.
I am using asp.net 3.5
|
|
|
|
|
well, you dont need to use coordinates in asp .net. All u have to do is save those dynamically generated images of barcodes (with probably the ID of the product or something to uniquely identify them) and then use the ASP image control to assign the URL to it. Hope that answers the question.
Good luck
|
|
|
|
|
thank you sir
I will try your suggestion
|
|
|
|
|
dear friends
i want crop image add tagging in image (descriptive keywords of image content) using c# asp.net plz any one help me
|
|
|
|