|
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
|
|
|
|
|
Click Here[^] for cropping image. For tagging, just search "Image Maps in Html" and you will get many examples for what you want.
Hope this will help.
|
|
|
|
|
|
Using Chrome I can see that this data is held in a table, so you need to use the DOM tree to get to the table and extract the individual items. You could also check if the website makes this data available as pure XML.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I think the data is loaded in browser memory on purpose so you can't scrape the data and parse it.
They must have a subscription service that your client can pay to subscribe to. Data is money, there not giving it away.
|
|
|
|
|
so i need to login programatically.
How can i do that?
|
|
|
|
|
Since I am new to working with C#.asp.net 2010 webforms, I would like suggestions on using a formview control versus a listview control or possibly an asp.net table control.
For the the page I am working with, only one row will be disaplyed at a time while the user either inserts or updates data for that row. I am suppose to have three columns which are: the column name, column value and column description. I also want to
display the various columns by categories.
I know I could accomplish my goal with an asp.net table control, but I do not believe this is the best solution. I only want to use this soltuion if nothing else works.
So far I have used a formview control since it is setup for only one row at a time and it is more customizable than a detailview
control is. What I would to do is setup my three columns that are 'grid' style. I know the detailview is grid style, but you can
not do any extra formatting.
Thus can you tell me with the formview control, can I add an extra column (for the static description of the columns) and make
the column name and column values look more like a grid. If so, how would you accomplish this goal?
I would also like to add a few separator rows that would indicate what category the group of columns are setup for. Can a
formview control meet this requirement? If so, can you point me a reference that i can use to see how to accomplish this task?
If the formview control does not work, can you point me to references where a listview control would meet my requirements?
|
|
|
|
|
I'm not sure I fully understand the requirement but I think looking at using DetailsView with a TemplateField Should solve your problem coz you can do a lot of formatting in it.
This might elaborate on that a bit.
http://msdn.microsoft.com/en-us/library/bb288035.aspx[^]
Good luck
|
|
|
|
|
Hi All,
I have an asp.net application which is consuming a WCF Service which is there in another solution and both are hosted in the same IIS.
I am able to debug the asp.Net application line by line, but if I want to continue the debugging in the WCF service as well, how can I do that. Can anybody please help me in this regard.
Thanks for your help in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
How to get all user attributes if I am using LdapConnection and SearchResponse, I've got to
Dim response as SearchResponde=connection.SendRequest(request)...
????attributes
|
|
|
|
|
Is this an ASP.NET question?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
yes, I my .net web apps I need to query ad
|
|
|
|