Line And Points Using C# Chart Control?


I have data in data table like below. I am trying to make graph like below using asp.net chart control (made graph in excel with some test data) points are X and Y values. lines are linear, exponential, logarithmic and power values. how can I make this chart in asp.net (vb.net or c#)? I am newbie to chart control.

View Answers
Very similar questions
How To Control On HTML Elements By Using C# Code forums.asp.net

How can I control on HTML elements by using C# code in asp.net pages. For example: I want to change the content of span tag or td tag when load page... that's mean write code c# in Default.aspx.cs for example to change Span content

Forms Data Controls :: Insert Data Using EntityDataSource In FormView - C# forums.asp.net

I am new to formview .My formview works fine, when I insert data into the database directly and then do an update on it. It throws an error when I try to insert a new record.  The error just says "An error occurred while updating the entries. See the inner exception for details." How to insert data into the table using an entity dastasource?

Forms Data Controls :: C# DataList Editing Example Using Data From A Database forums.asp.net

I am relatively new to the .Net development world and I am trying to convert the C# DataList Editing example shown on the ASP.net Quickstart Tutorials page to use a actual database for the datasource, instead of the in-memory example that is given... Can someone give me an example of how the behind code would look like when using a database for this example, instead of using the data in-memory, as the example does... I have the DataList template setup correctly to look like the example does, I just cannot figure out how to load my data in from my database. Any SQL database example, with two or three fields, would be enough to illustrate how this can be done... note that I am looking for a specific solution to the example given on the Quickstart Tutorial.

Forms Data Controls :: Best Way To Select Data Using A Query Built By Controls forums.asp.net

er trying to develop in asp.net and I think  this is the best site that I visited ever.I'm  trying to develop webapplications with some controls like calendars, textbox, check box etc. in order to allows to the user to built a query made by himself (and complementing with strings), and of course only to display data according to the gathered information by  the controls.

C# - Turning HTML Div Code Into A Control? stackoverflow.com

I have bunch of HTML code I am using to make rounded edge boxes on my controls. Is there a way to take this code and turn it into some kind of control or something so I do not have to keep pasting 10 lines of HTML code around everything I do? <div id="BottomBody"> <div class="box1024" > <div class="content1024">[code].... One additional thing to note, the number HTML tags used inside the inner most DIV will change depending on where I use it in my site. So in some cases I will only have 1 tag and 1 tag but in other cases I could have 1 tag, 1 tag, 3 tags, and a HTML table. How can I make that work?

C# - Change Rendering Order Of Controls? stackoverflow.com

I found this article on how to manipulate the rendering sequence of asp.net controls.: [URL]I placed some placeholders on the page to encapsulate the controls i want to move around. The problem is, that RenderChildren does render the controls without the html i placed into the placeholder like this: <asp:PlaceHolder id="phOneToMove" Runat="server" Visible="true"> <tr> <td><asp:Literal id="label1" Runat="server">Caption</asp:Literal></td> <td> <asp:TextBox ID="textbox1" runat="server"></asp:TextBox> </td> <td> <asp:RequiredFieldValidator ID="validator1" Enabled="true" ControlToValidate="textbox1" runat="server" EnableClientScript="False" ErrorMessage="error"></asp:RequiredFieldValidator> </td> </tr> </asp:PlaceHolder> The controls are rendered without the tr and td around.How can I handle this? All I want is to change the order of the placeholders like in this example phOneToMove.

C# - Creating A Generic Data Editing User Control? stackoverflow.com

I have a user control which has a Gridview and a listview, I want to make this control generic so that I can just pass the type of the class I want to edit, which would be a linq entity, and then it would automatically do the rest, so far I havent had any success and I was wondering if anybody knows a tutorial or some info about doing this?

C# - Add Controls Dynamically To Form? stackoverflow.com

I do not know how to add controls dynamically to the form using c#.net, I know this with vb.net but i need to know the syntax in c#.

Forms Data Controls :: How To Change The Column's Name Of Dataset Programmatically With C# forums.asp.net

Base on different conditions the progam uses different Sql which every one has different select names. How can I change the Dataset Columns name programmitcally which matchs the FormView  Order . Or some how change the   <%#Eval("Order")%> text in asp:TextBox <asp:FormView ID="DetailView" runat="server" Width="704px" OnPageIndexChanging="DetailView_PageIndexChanging"> <ItemTemplate> <table height="400" cellpadding="0" cellspacing="0" style="width: 511px"> <tr><td width="%50" valign="top" >TR</td><td> <asp:TextBox ID="TextBox5" Text='<%#Eval("Order")%>' runat="server" Width="192px"></asp:TextBox> </td><td></tr>,/table> </ItemTemplate> </asp:FormView>

C# - TreeView Control Unexpected Event Behavior? stackoverflow.com

In the MSDN is writen about TreeNode that: "By default, a node is in selection mode." "To put a node into selection mode, set the node's NavigateUrl property to an empty string." "When a node is in selection mode, use the SelectAction property to specify which event or events are raised when a node is selected." "Setting TreeNodeSelectAction value TreeNodeSelectAction.Select Raises the SelectedNodeChanged event when a node is selected." Here is the problem and possibly a bug in the control: When I set the TreeNode object PopulateOnDemand value to true and call the Collapse() function on that node.Then the TreeNodeExpanded event is raised in addition to the SelectedNodeChanged event.This is in complate contradiction to what is writen in the MSDN.According to the MSDN this sould happen only if TreeNodeSelectAction Property is set to TreeNodeSelectAction.SelectExpand value. Here is the code: <asp:TreeView ID="TreeView1" runat="server" AutoGenerateDataBindings="False" onselectednodechanged="TreeView1_SelectedNodeChanged" ontreenodepopulate="TreeView1_TreeNodePopulate"> [code]...

C# - Should Add Control Event Handlers Programmatically Within Page_Init stackoverflow.com

I want to add event handlers programmatically to the server controls rather than using their predefined OnClick properties, etc. But which would be considered a better practice for defining handlers: Define them in Page_Init Define them in Page_Load

Forms Data Controls :: Retrieve Column Data From GridView For RowDeleting In C# forums.asp.net

The date displays just fine in the grid.  I am having trouble with deleting the row in the grid.  I have researched and played with different things with the grid, but I can't seem to get it to work.  Most examples are in VB and I coding is C#.   What happens is the code (see *** in C#) doesn't return the column 0 (UserName) from the GridView.  So the next statement blows up becasue there is no UserName.  I used a ASP.Net VB book I got from a VB class I took to come up with the code. When I typed in "grdUsers.Rows(e.RowIndex)"... I got help from Intellisense, but the rest of the line ".Cells(0).Text"... I got no help.  I included below the code that I think is pertinent to the problem I'm having. [Code]....

C# - Find Control On Page By Id? stackoverflow.com

Is there a simple way to find a control in ASP.NET by id (in any nested container)? Other than traversing whole controls tree. Something like this example: TextBox tb = new TextBox() { ID = "textboxId"}; panel3.Controls.Add(tb); And in other method/class: TextBox nameTextbox = MethodToFindControl("textboxId") as TextBox;

C# - Control For Presenting Workflow? stackoverflow.com

I write an application in asp.net and I have something like state machine which can be modified by user (nodes, paths and directions of paths). Is there any nice controll I can use to display this data ? Just display, there is no need to do anything with it

C# - Using JSON In .Net? stackoverflow.com

What libraries are available to handle JSON in .Net? I've seen this: [URL]..but would prefer a native library, if possible.

Want To Create Html Link Using C# - Dynamically. forums.asp.net

I have a link in my site like this. <a href=""><fontstyle="font-size:small;font-family:Arial;"id="mylink">Please Click here to see Details.</font></a> I want to create this link dynamically (In the button click) using C#.I am looking for a normal html control. I am not using linkbutton.

Adding Menu Controls To Menu Without Using Menu Editor www.xtremevbtalk.com

I am trying to make a Visual Basic program that connects to an Access database and searches for its menu options! If there are any menu options that are added to the access database, then the program will automatically display them on the form after it searches for all the records within the database. Is there a thread that already exists that explains how to do this with VB Code? Is the following thread - something I can use in this regard: http://www.xtremevbtalk.com/show...u+items+editor on thinker's reply about using a resource file? I wasn't sure...Thanks,Stephen

Using Batch File To Pass Command Line Arguments To Access 2000 www.xtremevbtalk.com

Hello allI am writing a few batch file that start a Access 2000 DB. I wish to pass an argument to start up the correct application after a splash sceen has been displayed.I have tried the "msaccess_path.exe" "DBName.mdb" cmd/ "parameter" but when I use the Command function in VB there is nothing passed in. I have tried making the mdb an mde and using - DBName Parameter but again no luck.Are the help files lying to me or am I a num nut.Pleased to hear from anyone.ThanksMatty

C# - Parse Using Regex Class Of System.Text.RegularExpressions stackoverflow.com

I have a string which i need to parse using Regex class of System.Text.RegularExpressions. I need to find if the first 2 characters of the string are either "00" or "07" or "16" or "23".

Web Forms :: How To Download The Saved Word Document From Ms Access Database Using C# forums.asp.net

In my application, getting the word document from users and i saved that doucment in access database. Data type is OLE Object. I want to know how to retrieve the document from db?

Forms Data Controls :: Way Of Using Conditional Formatting On A Cell In A Gridview forums.asp.net

Is there a way of using conditional formatting on a cell in a gridview?I have tried the following code to no avail.    if (e.Row.RowType == DataControlRowType.DataRow)     {           if (e.Row.Cells[1].Text == "Dull")

C# - Using Outputcache Together With Urlrewriting stackoverflow.com

I've got a problem using outputcache together with urlrewriting. We've got an application that rewrites url (IE [URL]). Based on the URL (/about/) we figure out which content to show. Now we're trying to add outputcache to that page: < %@ outputcache duration="600" location="Server" varybyparam="Custom" varybycustom="RawURL" %> And in the Global.asax we override GetVaryByCustomString like below: public override string GetVaryByCustomString(HttpContext context, string custom) { if (custom == "RawUrl") { return context.Request.RawUrl; } else { return string.Empty; } } However, when we publish the page i'd like to invalidate the cache so that the editors see the change directly. But no matter what I try, I cannot seem to invalidate the cache. If I'd like to invalidate "/about/" I would like to do this: HttpResponse.RemoveOutputCacheItem("/about/"); That doesn't work unfortunately. The only thing that seems to work is: HttpResponse.RemoveOutputCacheItem("/page.aspx"); This clears the cache for all my pages, not just "/about/". Is there any way to invalidate the cache based on the url? Or should we provide a cache key or something per page to be able to invalidate the cache programmatically?

DataSource Controls :: Looping Records Using SELECT Vs Cursor? forums.asp.net

I am curious, if it's better to iterate through a set of records using cursor or using a WHILE (SELECT ..) ? I have read that cursors can be expensive, so may be WHILE (SELECT..) is a better approach.But I am not sure ? EXAMPLE OF WHILE (SELECT..) is as below DECLARE @warehouseId INT DECLARE @warehouseIds TABLE ( WarehouseId INT ) [code]...

Forms Data Controls :: Handling A Gridview With Multiple Checkboxes And Radiobuttons Using Javascript forums.asp.net

I'm fairly new working with Javascript. I'm working on an issue where I have a GridView with multiple Checkboxes and Radiobuttons. A user can check multiple checkboxes and if a radiobutton is selected, a checkbox has to be selected. This scenario is working fine, presently with existing asp.net code. But, I want to automate it using Javascript, so that I could avoid a postback. 

Forms Data Controls :: 2008 - How To Retrieve Data From GRIDVIEW1 Using Column SELECT Button forums.asp.net

I am using ASPNET2008 with VB Scripting and not C# Scripting I am encountering new problem. On the WebFrm1, I just don't know how to write the coding to retrieve the CUSTOMERID data in order to retrieve the details from SQL SERVER table  to fill the textbox controls.Here is the decription of the GRIDVIEW column In the GRIDVIEW1 on the left edge one of the column is SELECT button which let the userclick on it to select the specific CUSTOMERID on the column next to it on the right. Here are the coding from SOURCE <asp:ButtonField ButtonType="Button" Text="Select" CommandName="SelectClick"     DataTextField="CustomerID" > </asp:ButtonField>

C# Return Identity After Insert Using SQL DB bytes.com

I need to know how to return th Id after inserting row, I can do it by many ways, but I need to know why my code doesn't work? [Code]....

WshShell.exec - Send A Command Line Parameter Using The StrQGET String forums.asp.net

Converting vbscript to .NET. I am not sure how to send a command line parameter using the strQGET string. What should I be looking at to execute that file? Code shown below is not fully converted but I think tries to get across what I need to do. public void LockFileSource(string _strQVCSFolderPath, string _strFileName) { // LOCK FILE, passed to method, IN QWIN (QVCS: http://www.qumasoft.com/manual/qget.html) // QWIN COMMAND LINE OPTIONS // qget = You use qget to retrieve a specific revision of a file that you previously stored in a QVCS archive. // -1 = Indicates that the revision is to be locked. Use qput to update the locked revision. string strQGet= @"\server1ecommerceqvcsqget -l " + _strQVCSFolderPath + " "; wshShell.currentdirectory = _strQVCSFolderPath; Set objFSO = CreateObject("Scripting.FileSystemObject") if (objFSO.FileExists(_strQVCSFolderPath + _strFileName)) { wshShell.exec(strQGet) ......... }

C# - Receiving System.FormatException After Using ClientScript? stackoverflow.com

I'm trying to code an onclick behaviour for a GridView by using the following codebehind-code: protected void gridProcesses_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';"; e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';"; e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.gridProcesses, "SelectProcess$" + e.Row.Cells[0].Text); [Code]....

Forms Data Controls :: How To Disable / Enable Line Editing If Credentials Are Correct forums.asp.net

Have a gridview that is populated via a DB, which is populated by another tool.  That tool records all the data, including the user that submitted it. The site also enables editing, but I want only the user that submitted the data to have the ability to edit HIS data only, even though the grid view is displaying other people's datas. So currently the gridview has "ShowEditButton="True" So on the far left, there is the Edit option for all lines, for all users, for any user viewing the site. I want to do a verification where, [Code]....

Forms Data Controls :: Update Gridview Cell Width When Text Is Multi-lined forums.asp.net

I have a gridview which is being populated with some datatable, currently one of the column can have multiline text, the issue is whenever the text is huge, the formatting of grid gets distorted, all the cells in the grid get expanded to accomodate the text. However I would like only a single cell or may be single row which has huge text to expand whereas all the other rows should remain with the initial "HEIGHT" only..

C# - How To Point URL From Global File Using URL Routing 3.5 Without Parameters stackoverflow.com

How to point url from Global file using URL routing 3.5 asp.net without parameters? For example: [code]....

Displaying Data In Marquee From Database By Using C# forums.asp.net

I have been developing a web application.On home page i have a news section using marquee tag i m scrolling news.But it is static data..But now i want to display data from my sql server 2005...I have used string builder and pass data between marquee tag.Is there any wy in asp.net to achieve this problem...

Forms Data Controls :: Make The Cardview Using Datalist? forums.asp.net

how to make the cardview using datalist in asp.net

Forms Data Controls :: Main Difference Between Using Gridview And Datalist forums.asp.net

I am building a website which include a shopping cart. I have been following some of tutorials in this website and also a book called ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit. And Althought both this website and the book have been great help, I am at the point of creating my shopping cart as explained in the book. However the problem which I am facing is as follow: In the book in the databse which has been used there are two tables that form menu, called MenuItemTable and SizeAndPrice, and it has used Datalist and repeater to show the menu. However in my database I only have one table representing the menu and I have used Gridview to show the menu. But my question is that is DataList is only suitable for when we are trying to extract information from more than one table or could it be used even if ther is only one table representing the menu.

Forms Data Controls :: Show Calendar Using Datalist? forums.asp.net

have a problem...i have to show a calendar using datalists.....the format is like this:- http://sualumni.org/event_calendar.aspi have to show upcoming events datewise...but that is seperate issue...but the point here is...how to program a datalist to show this form of calendar according to day name(sun, mon...etc.), month, number of days in a month

How To Set The TextBox Control's Text Property Using A Variable www.vbforums.com

How do I set the TextBox Control's Text Property using a variable... <% Dim textWanted As String%> ... <% textWanted = myReader.Item("info").ToString%> ... <asp:TextBox ID="TextBox6" runat="server" Text="<%= textWanted %>" > </asp:TextBox>

AJAX :: Using Modalpopupextender With Web User Control? forums.asp.net

I want to show a modal popup when the record is inserted successfully, and i want to show this message on multiple pages, So i thought of creating a 'Web-user control'.But i am  not sure, how to use this control with Modalpop up( How should i give Ok control ID , Cancel control id) [Code].... and my Modal popup code is: [Code].... Error Is : Microsoft JScript runtime error: Sys.ArgumentNullException: Value cannot be null. Parameter name: element

AJAX :: Using ModalPopupExtender With User Control? forums.asp.net

I have a simple question but I could not find the answer after hours of searching on the internet.How do I refer OkControlID and CancelControlID that is inside of my user control?For example, my user control is and input form with OK and Cancel buttons. How do I refer to it in the ModalPopupExtender?Here's my code: <asp:Button ID="ShowPopup" runat="server" Text="Button"/><uc1:MyControl ID="MyControl1" runat="server" /><cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"            TargetControlID="ShowPopup"  PopupControlID="MyControl1"   OkControlID="MyControl1.OK" CancelControlID="MyControl1.Cancel"           BackgroundCssClass="modalBackground"/> I have made OK and Cancel public property inside my user control which return the corresponding button, but ti still does not work.

AJAX :: Using Modalpopupextender Within A Custom User Control? forums.asp.net

I have a modalpopupextender inside a custom user control and when the user clicks on a imagebutton in the custom user control, this modalpopup has to be displayed to the user for inputs. The problem that I am facing is that nothhing is getting displyed even after clicking the image button. i am using master pages and this custom user control is being added dynamically to one of the child pages. I have added the scriptmanager as a part of the child page rather than as a part of the user control because there are multiple custom user controls present in this page. Lemme go to the code: This is the snippet present in the custom user control: [Code]....

Rendering An Unordered List Using C#? stackoverflow.com

I need to render a unordered list with the data obtained from database using asp.net/C#.My data looks something like this. id Name Depth 1 ELECTRONICS 0 2 TELEVISIONS 1 3 Tube 2 4 LCD 2 5 Plasma 2 6 Portable electronics 1 7 MP3 Player 2 8 Flash 3 9 CD Players 2 10 2 Way Radio 2 using the above sample data I need to render an unordered list based on the depth, in the following format [code]...

Web Forms :: How To Link .cs(class File) With .aspx.cs File forums.asp.net

i have created basic .aspx files .one is login.aspx and registration.aspx...Now in my solution explorer i also added class file i.e StudentInfo.cs and wrote some properties in it...now my question is 1. i want to connect Studentinfo.cs class to my login.aspx.cs...So that i can call the methods in Studentinfo.cs..how to do it?

How To Add Simple HTML To Panel Control Which Is Part Of A Multiview Control stackoverflow.com

I have a multi view which contains a view which contains a panel. the name of this panel is "Panel1"I have the following code and my HTML does not display in the rendered page. Any idea why this isn't working, i must be doing something wrong? sw = simple html statement, any would produce same result. String mstring = sw.ToString(); Panel1.Controls.Add(new LiteralControl(mstring)); i am using dotnetnuke also, not sure if that is where the issue is.

Web Forms :: How To Create A New HTML Control Which Contain Multiple HTML Control forums.asp.net

I am realizing a table with multiple rows for a Sharepoint webpart. In this project, I would like to have a new html control which contain a LinkHtml in one column and another label in another column. Essentially this html control would be a row used for my html table. At the moment i am doing a row like this in the main class : [Code]....

Forms Data Controls :: Failed To Load Viewstate When Gridview Control - Replace Gridview With Datagrid forums.asp.net

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. The above error occurs with gridview control , when used with template field columns with item template / and edit templates etc. updating a row within gridview, at the time of loadiong it loads perfectly fined, but when tried to modify an existing row within gridview control, then it produces the error. Make sure the grid view control has to be a child control which manages the child table info with in a master form. to reproduce the above problem the grid view must be loading the child records info of a master within the masterform, meaning both master data and gridview data all to be managed in one single form. I had to replace gridview control with datagrid and then it worked perfectly fine. I wasted almost 4 days of my time., there is no way we could figure out the problem. here is the full info of the problem. Server Error in '/' Application. Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. Source Error: [Code].... Stack Trace: [HttpException (0x80004005): Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.]   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +306   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134   System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221   System.Web.UI.Page.LoadAllState() +312   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661 Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082

Forms Data Controls :: How To Find Control Xxx In ControlParameter Error forums.asp.net

I get following error for different controls in my Gridview <asp:Conrolparameter tag I dont know how can I fix the code and work it [Code]....

Forms Data Controls :: Getting Error / Could Not Find Control 'GridView1' In ControlParameter 'ID' forums.asp.net

I am working on a project and I need to use Master/Details view, the problem is everything works fine except when I place the Master (gridview) and Details(FromView) in different content holder. The error I get is: Could not find control 'GridView1' in ControlParameter 'ID'. Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Could not find control 'GridView1' in ControlParameter 'ID'. My code is: [Code].... [Code].... [Code].... [Code]....

Forms Data Controls :: How To Bind Data To A Control On A Gridview forums.asp.net

what i have is a gridview and i have added a new control , textbox, what i want to do is bind the value from a particular column in the Usercontext.searchedresults ( datatable) to it. The issue is that the datasource for the gridview is a Dataview (whcih is a filtered number of columns from the datatable) that does not have that column in it but the Usercontext.searchedresults does have it. i tried the following but doesnt seem to work Text='<%# UserContext.SearchResults.Select("INV_NO = " + DataBinder.Eval(Container.DataItem, "InvoiceNo") + " && INV_LINE_NO = " + DataBinder.Eval(Container.DataItem, "InvoiceLineNo"))[0]["D1_CODE"] %>'> NB: D1_CODE is the new column ..

Forms Data Controls :: Calendar Control: Bind Data? forums.asp.net

I need to bind some data to my ASP.Net 3.5 calendar control. The data will be appointments and the fields are appointment datetime and title. The title field should display in the proper day of the month. Also, when a user clicks on a date in the month calendar, they should be redirected to a form to add a new appointment.

Forms Data Controls :: Footer Control Hiding? forums.asp.net

I have a footer with 3 textboxes and 2 button.one of two button is hide button, which when gets clicked, suppose to hide footer along with their controls, its has the following code: if(e.CommandName.Equals("Hide"))

Forms Data Controls :: How To Evaluate The Values From A DataList Control (or Any Repeater) forums.asp.net

I have a datalist control which I use the Eval function to set values to different asp controls. I would also like to evaluate the values in order to determine if a control should be created or not (perhaps a better solution would be to just make it visible/hidden?). Depending on the result I would like to show 0-3 images (a system for setting a score for each rowitem). <ItemTemplate> <asp:HyperLink runat="server" Text='<%# Eval("name") %>' NavigateUrl='<%# Eval("url") %>' Target="_blank"></asp:HyperLink> <% If DataBinder.Eval("score") = "1" Then %> <asp:Image ID="Image1" ImageUrl="star.png" runat="server" /> <%   End If %>            </ItemTemplate> It seems that the Eval can only be used with a asp control? So how should I then complete my evaluation? And is it ok to implement this in the ASPX part of the page, even though I do have a code behind?

Forms Data Controls :: Update Information Via Txt Control? forums.asp.net

On the form I have txtFirstName txtLastName txtAddress The GridView is a command "Edit" But I do not want the information update within a GridView. If  click on the "Edit", the data can only change update within the GridView. I wish to correct information in the control txtFirstName, txtLastName, txtAddress when I click "Edit".

Showing Another Form Using Using The Command Button www.vbforums.com

I have trouble in including a form to my project. What i want to do is to create a command button that will call the Form to be displayed. ________________________________Private Sub ADIS_Click()frmForm1.ShowEnd Sub________________________________is this code correct? because every time i run the whole program it only shows the form that i called. Can somebody help me on this? THANKS

Flex :: Reading Large CSV File Line By Line? stackoverflow.com

I need to read a large CSV file (8-15 MB) and generate a LineChart in Flex AIR. Since Chart need data in structurd format like XML. When I read CSV and convert it to XML object 8 MB file size become 24 MB XML object and not able to graph. Best solution is to read Line by line and read only part of data. How can I acheive this in Flex AIR ? Is it possible to read line by line in Flex. Otherwise what are the best ways to draw a graph in FLEX using large data.

DataSource Controls :: Using A Form View Control Instead Of The SQL Statement? forums.asp.net

I hope I have the right forum =) Here is the issue. I have a table: [URL] What I would like to do is retrieve the Grade score based on a number that is between the Max and Min for that Job Title. I presume the sql would be like: "SELECT [Grade]  FROM [NUGGET_Tech_Score] WHERE ([Job_Title] = @Job_Title AND @total BETWEEN [MinScore] and [MaxScore])" However since I am new at this, I am not sure how to get the grade and show it as a label on my form. Should I be using a Form View control instead of the SQL statement?

Forms Data Controls :: Update A Particular Row In A Gridview Using C#? forums.asp.net

i created a gridview, in that i retrived the student names and besids that i put a check box, when ever i check the  check box and click on the Update button, the value of student class will be incremented by one. example if a student is in IX class that student should be Promoted to X class.

Forms Data Controls :: Export The Datatable Values To Excel Using C#? forums.asp.net

i have a datatable to bind the gridview in my page. now i need to have a export button in near gridview, if we click the button then the gridview values (datatable) to excel.

Forms Data Controls :: Databinding To A Gridview Control By Using A Stored Procedure? forums.asp.net

I am trying to populate a gridview control (categoryGW) by using a function who calls a stored procedure. I can connect and retrieve data just fine. But a the last step when I try to bind the result sqldatareader set I get the following error message. "System.InvalidOperationException was unhandled by user code  Message=Invalid attempt to call FieldCount when reader is closed.  Source=System.Data  StackTrace:...." My default.aspx has the following code behind: [Code]....

Forms Data Controls :: Accessing Data In DataList Using C#? forums.asp.net

Basically, for each group of rows belonging to the same category, I'd like to display one big "category" header above those rows.  So, for example, i have the following example data: name, category, ID jim, sales, 2 jane, sales, 5 john, sales 8 randy, marketing, 6 sandy, marketing, 44 I'd like to display it like so: SALES jim, sales, 2 jane, sales, 5 john, sales 8 MARKETING randy, marketing, 6 sandy, marketing, 44 I'm using the Datalist control, and the way I've been approaching it is to store the "current" category within some string variable, and for each row that's displayed, I compare the category with the "current" category variable to see if they're equal; if not equal, then I display a new header for the new category and store the new category in the "current" category variable.  Sounds simple enough, but I'm having trouble on how to approach this (I'm new to ASP.NET, former ASP user). this is what I have so far: <table width="100%"> <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <tr> [Code].... * Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

Custom Server Controls :: Turning An Ascx User Control Into A Redistributable Custom Control? forums.asp.net

I followed the article to create a user control, when i came to the last step of consuming the dll, the control doesn't show up on my form.It is just a blank page being showed.When i test the user control on a new form, it works. [Code]....

C# - Parse JSON String Into DataSet? stackoverflow.com

I have to the replication.That time have to pass String as JSON {"Table1" : [ {"Name" : "MyCustomer","Description" : "cutomer","Status" : "1"}, {"Name" : "Kiraa","Description" : "My","Status" : "1",}[code]...... This is my format of JSON result. I want to convert to DataSet.I have installed JSON.NET library. I am using C#.net public bool convertJSONToDataSet(string strBusinessUnit, string strExecutiveCode, string strTableName, String jsonContent) { DataSet dataset = JsonConvert.DeserializeObject<String>(jsonContent);[code]..... here this statement is wrong DataSet dataset = JsonConvert.DeserializeObject<String>(jsonContent); how to covert to a JSON string to a Dataset.

C# - How To Insert Image In Html Action Link stackoverflow.com

I have navigation and many link on my webproject from html action links. They are ugly with underline. I would like to insert some image with name or play with styles of action link.Is it possible? How to do that?

C# - Bind Event To Generated Html Link? stackoverflow.com

I generate in a foreach loop html links ("test which I add to a pre defined literal.ow can I add a void to the generated html link? I tried with runat server and onclick.. but does not work..Goal is to add by the onclick a pre defined void from a API.

C# - Extract Images Link From Html Text String? stackoverflow.com

I want to extract all images link to so I can utilize all images freely. how to do in asp.net c# <div> <img src="/upload/Tom_Cruise-242x300.jpg" alt="Tom_Cruise-242x300.jpg" align="left" border="0" height="300" width="242"> sample text sample text sample text sample text <img src="http://www.sharicons.com/images/rss_icon.jpg" alt="Icon" align="left" border="0" height="100" width="100"> sample text sample text sample text sample text sample text sample text sample text sample text</div>

How Do I Link Layers Together In CS 2 www.photoshopgurus.com

How do i link layers together in CS 2 Can't find the little boxes i used to use in ver 7

C# - Using .NET Regex To Parse WSUS Updates For Currently Installed Packages? social.msdn.microsoft.com

Problem: Current regex pattern does not filter all lines. Adding ^ to the beginning and $ to the ending of the pattern seems to break it as well. If I try it ont gives partial results using options(multiline & case insensitive). Using it in the application returns nothing at all.

C# - Parse CSS Out From <style> Elements? stackoverflow.com

tell me an efficient method of retrieving the CSS between tags on a page of markup in .NET?I've come up with a method which uses recursion, Split() and CompareTo() but is really long-winded, and I feel sure that there must be a far shorter (and more clever) method of doing the same.it is possible to have more than one element on a page, and that the element can be either or .

C# - XML Serialization In .NET? stackoverflow.com

I have xml like this: <?xml version="1.0" encoding="utf-8"?> <session xmlns="http://winscp.net/schema/session/1.0" name="blah@blah.com" start="2011-10-03T15:09:30.481Z"> <ls> [code].... Why is XMLSession.FileList.Count always 0. I hypothesize it has something to do with the declaration above it but I am not sure what is wrong with it. Maybe it can't accept a path, if not, how can I do it?

C# - .Net XML Serialization Based On A XSD? stackoverflow.com

I've been serialising and deserialising .net objects using the XmlSerializer class without problem, however we now need somebody else to look at that data to perform some analysis on it.In order to help with that we've produced an XSD based on our class like so: xsd.exe /t:DataClass Assembly.exe The start of the XSD looks like this: <?xml version="1.0" encoding="utf-8"?> <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="DataClass" nillable="true" type="DataClass" />[code]..... Bizarly, the XML produced does not adhere to the XSD generated from the same class.My question then is, is there a way of telling the XmlSerializer to serialize the object based on a given XSD? As an aside, I've looked at other ways of fixing this: I've tried re-generating the classes from the generated XSD - this seemed to have the same problem.

C# - Serialization Across Projects With Inheritance? stackoverflow.com

I have a base class ("MyBaseClass") in a project called "BaseFramework" which is included in several solutions within the company. There are several derived class's in various projects throughout the company that inherit from "MyBaseClass". If I then create a List and add derived class's to it, it will not serialize. I realise that if I were attempting to serialize this list, and the base class and derived class were in the same project, I could simply apply the "XmlInclude" attribute to the base class and include all of the derived class's. This is however not possible across projects, because that would require a circular dependency.

C# - XML Serialization Assembly For Non-web Projects stackoverflow.com

I am attempting to solve the well known problem of automatically generated serialization assemblies in VS 2010, both VB.NET and C#. The "Generate Serialization Assemblies" option in project settings does nothing for non-web projects (see [URL]). Thus the calls to serializers generate file i/o exceptions that are very unfortunate, and for which there is no cure. The method suggested above does not appear to work with VS2010 and SGEN still runs with /proxytypes enabled.

C# - How To Serialize Only Some Properties In .Net stackoverflow.com

This is for a web project so i have several classes that inherit from Web.UI. I only want to serialize very particular properties (basically, only local properties) I'm aware of the XMLIgnore property that can be placed on a property to ignore items, but this won't work in my context since that would require modifying a bunch of stuff that i really don't want to modify (and probably can't). So how do i tell the xml serializer to ignore everything except for X and Y or tell it to seralize just X and Y? i could just create my own xml in a string builder or something and if that's the only way, so be it. however i'm looking for a method that will employ the built in XML stuff.

C# - Angle Brackets In Page Head Element? stackoverflow.com

PHP experience (which meaby is causing this problem) and Iam having small problem passing data from codebehind to view-source. I declared string variable on codebehind side such as: ... public string mystring = "Scotty"; protected void Page_Load(object sender, EventArgs e) { ... So now I want to use it in view-code but when I put it in angle brackets (<%: or <%=) and put it in head element I got no access to this value. On the other hand when I put it in BODY element everything is ok. My failing example (simplified): <head runat="server"> <script language="javascript"> function beamMeUp() { alert(<%=mystring;%>); } </script> </head> <body> <input type="button" onclick="javascript:beamMeUp" value="Warp6" /> </body> why I can't use it (the <%=mystring;%>) in HEAD but i can use it in BODY ?

C# - Import MD5 Passwords From A PHP App? stackoverflow.com

So I'm in the process of writing an ASP.NET application that requires to import users from a PHP application. The passwords were hashed using MD5 into the database, so the user table records looks more or less like this: user Password user1 827ccb0eea8a706c4c34a16891f84e7b user2 e10adc3949ba59abbe56e057f20f883e And so on. I have access to the PHP source code and I can see that there is no salt or anything else, it is juts a straight MD5 application. Now, Back on my ASP.NET, I tried to use MD5 using the following logic: [Code].... Problem is, that is returning strings like 50-F8-4D-AF-3A-6D-FD-6A-9F-20-C9-F8-EF-42-89-42, which of course is not going to match with the information in the database. What should I do so I don't have to reset 500+ user passwords?

C# - How To Open A Link In A New Window stackoverflow.com

I have a button which redirects the user to another page. Instead, I would like this button to open a new window that points to this location. aspx: <asp:ImageButton ID="img_url" CommandName='<%#Eval("url") %>' OnClick="img_url_Click" runat="server" ImageUrl="~/images/products_details.png" /> cs: protected void img_url_Click(object sender, ImageClickEventArgs e) { ImageButton img = sender as ImageButton; Response.Redirect(img.CommandName.ToString()); }

C# - Open Link In A Different Panel? stackoverflow.com

I have a page that dynamically generated a list of links to a web page (aspx) that opens an image. I do not have direct access to the PDF, only through the ASPX. The code behind is C#. So if I have a page that has codes that looks like this [code]... How do I open the view.aspx link in the cell labels 'Open Image Here'?

C# - Get The HTML Rendered By Control In Code Behind? stackoverflow.com

I want to call the corresponding html inside a Panel in code behind. How can I do that? I have this <asp:Panel ID="MyPanel" runat="server"> // other asp.net controls and html stuffs here. </asp:Panel> I want to get the HTML equivalent of MyPanel and all of its contents in my code behind say in PageLoad or some methods.

Forms Data Controls :: Delete Images From Folder Using Gridview Delete Link? forums.asp.net

Using "Enable Delete" from Gridview control, I can delete (besides, update, sort, paging, etc) data from the database (this is done automatically). However, how can I delete the actual image that resides in my image folder (i.e. from "pix" folder )? What is the best way to delete image? If using code behind, how? Please write a full code for me. Here is my source  code. <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="photoID"

C# - Invoking Server Code After Client Code For A Control INSIDE AJAX PANEL? stackoverflow.com

I've the Javascript code to do a confirmation before deletion of some records function confirmDelete() { if(confirm('Delete all?')) { return true; } else { return false; } } I've the button code here <asp:Button ID="btnDelete" runat="server" onClientClick="return confirmDelete();" onClick="btnDelete_click" /> If i've the button outside an update panel (basically i'm using RadAjaxPanel by Telerik) it is working fine. But when the button is inside an ajax panel, even if i click OK for deleting the records the server side code is not called.

C# - Binding To A List <string> Using DataBinder.Eval? stackoverflow.com

I have the following object: CrossTabDataObject { string RowName{get;set;}; int RowId{get;set;} List<string> CellContents = new List <string>(); //Constructor..... etc. } I'm building a dynamic crosstab grid using GridView in asp.net 3.5 I wish to bind to CellContents[0] for dynamic column 1, CellContents[1] for dynamic column 2 (dynamic column 0 is the RowName field from the CrossTabDataObject) etc. I am using: object boundValueObj = null; Control ctrl = (Control)sender; IDataItemContainer dataItemContainer = (IDataItemContainer)ctrl.NamingContainer; boundValueObj = DataBinder.Eval(dataItemContainer.DataItem, strSelectedID); This code is in the InstantiateIn function of the gridview as I'm creating drop down list templates in each cell of the crosstab. I have code (not shown) that sets strSelectedID depending on the column being created. When strSelectedID is equal to "RowName" for dynamic column [0] the DataBinder.Eval function works fine and sets boundValueObj as expected. The problem comes when strSelectedID is set to "CellContents[n]" where n is the Column Index. DataBinder.Eval only works with properties and fields of objects. How do I get around this?

C# - Can't Pass A Variable To A User Control? stackoverflow.com

I am using the below example code and have a problem where I can't pass the Request.RawUrl value into an object that extends the Control object (class Test below).When I use the line: <Test1:Test runat="server" ID="testControl" Target="<%# Request.RawUrl %>"></Test1:Test> I find that the Target property is never called.If I use this line instead: <Test1:Test runat="server" ID="testControl" Target="<%# Request.RawUrl %> test"></Test1:Test> the string value "<%# Request.RawUrl %> test" is passed to the Target property.f I use this line as explained in many posts online: <Test1:Test runat="server" ID="testControl" Target="<%= Request.RawUrl %>"></Test1:Test> the string value "<%= Request.RawUrl %>" is passed to the Target property.I need to get the value of Request.RawUrl passed to the Target Property of my Test control object. Does anyone have any ideas where I am going wrong?Control: namespace Testing { public class Test : Control [code]...

Web Forms :: Using A Bulletlist Control To Display Links? forums.asp.net

i am creating a navigation menu, where am using a bulletlist control to display links,i am looking for a way to alter the color of the links presented by the control, the control has three modes, text, linkbutton, and hyperlinks. i can manupulate the text version, but the remaining two, which i need to use either of em, remains unchanged i.e blue color with underlines

Forms Data Controls :: Error While Insert Date Using Formview? forums.asp.net

trying to insert date using formview when click insert I got the following error: Data type mismatch criteria What is the problem??

C# - Compare Day And Show Hour Only Using DateTime Formats? stackoverflow.com

I have a DateTime column in my SQL database, how do I check if the Day in that is Today, or yesterday? What I want to is something like: If date is today then the result would be "Today, at " same for yesterday..

Forms Data Controls :: Grid Showing Two Lines And Then The Difference? forums.asp.net

Before I get too involved in this new page, I want to besure I am going to go about it the correct way.  What is needed is a grid of some sort. The query returns groups of records, every two records are related and I need to insert a summary line after each pair of records.  Company 1 current       Company 1 previous *insert a summary of the currency amounts displayed with the two records. Company 2 current Company 2 previous *insert a summary of the currency amounts displayed with the two records. . . and so on What data control should I use to do this (a girdview, datagrid, listview??, something else?) I am running VS. 2008.  I was given a summary sample on a previous post: [URL] But I want to be sure this is what I should actually use.  

Using Visual Web Developer 2008 Express With The AJAX Control Toolbox? bytes.com

I'm using Visual Web Developer 2008 Express with the AJAX control toolbox.I've created a web page using controls from the AJAX tool kit. When I preview the page in the browser from the IDE it looks fine.When I upload the page to a server and try to view the page in IE, none of the AJAX controls are there. Would anyone be able to explain this?

Forms Data Controls :: Select Top 'N' Records From The Dataset Using Filter? forums.asp.net

I have populated the dataset with the values from the data base. Now i want filter the dataset so that the dataset will contains only top N records.

Forms Data Controls :: Get Data From A GridView Without Using Select Column? forums.asp.net

i have a Grid View called: GridView1.. and i have a column of DropDownList with 4 items inside it (Approve Training 1, Approve Training 2, Approve Training 3, Reject)..when the Admin or user choose one of these items and then click on the Button (Process)an event will be called (process_Click)..it should go throw all the GridView rows and check the DropDown list.. and there is if/else statement to control the selected item.. what i don't know how to do is: if the user choose item1 (Approve Training 1) for example. then the ID, GPA, TrainingCode1 will be saved in a DataBase table called Approved.how to get these information from the GridView without using Select column??this is a part of my code: [Code]....

C# - How To Insert A Copy Of A Row (with A New Identity) Using LINQ To SQL stackoverflow.com

I have a number of tables that together make up a "Test" that somebody can take. There are multiple types (scripts) of Test a person can take. I'm working on an Edit function that will allow somebody to edit the Test Questions. I want these edited questions to show up on all new Tests of that type, but still show the old questions when viewing past test scores. To do this each "Test" has a TestId auto-increment identity (along with its name). When a test is edited I want to make a copy of the test with a new TestId and present the questions for editing. So what is the best way to make the copy and insert it into my table using LINQ to SQL? This: DataContext db = new DataContext(ConnectionString); //Copy old test into identical new test but with a different script ID var oldScript = db.TestScripts.Single(ds => ds.TestScriptId == oldScriptID); var newScript = oldScript; db.TestScripts.InsertOnSubmit(newScript); db.SubmitChanges(); of course tells me that I Cannot add an entity that already exists. Is the only way to do this to go through every column in the TestScript and copy it manually, then insert it, and the database will give it a new Id?

Forms Data Controls :: How To Read Data From Stored Proceedure And Display To Gridview Using Object ... forums.asp.net

I have an object datasource which is using Business object as a myconnection The method i have defined under myconnection is Publicstatic DataTable getfn(String dtype, String did, String dprefix, String dname) { datable table = new datatable(); then declared stored proceedure and defined parameters and assighned values In the stored proceedure it has a query like select column1,coloumn2,coloumn3 As Call from table where I need to take data from Call and display it to the gridview through object datasource .

C# - Using HTML.RoutLink To Add Onto The Existing URL? stackoverflow.com

Is there a way to use HTML.RouteLink() to add onto the existing url. For example I have <%: Html.RouteLink(link.Text, link.RouteValues) %> My controller is Pages, and my action is somestring. So the generated url would be localhost/Page/somestring This is fine. However I would link the generated url when I visit http://localhost:1241/Admin/ section to be localhost/Admin/Page/somestring Instead of localhost/Page/somestring This localhost/Page/somestring url is setup in my global.asx file to route to view a page, and the localhost/Admin/Page/somestring url is routed to edit the page. [code].....

Forms Data Controls :: Checkbox Not Firing When Unchecking Using OnCheckedChanged? forums.asp.net

Got a FormView which when you first open is in readonly mode.  There is a button to click which puts you in Edit mode where I can make changes and save back to the database, this is all working great. I have a Checkbox and a textbox, when I untick the checkbox I need it to clear my textbox and it's this bit that is not working.  If I tick the box I can get it to do something, just not when I untick and it is doing my head in.  Here is the code for the main page and the code behind.  There are other fields but to make it easier just stripped it down to the problem area. [Code].... [Code].... [Code].... [Code]....

Forms Data Controls :: Rebind Datalist After Upload An Image Using Jquery? forums.asp.net

I'm using a jquery plugin called uploadify to upload images to my database. I'd like my datalist to be auto-rebind after the images' been uploaded so people could see the changes immediately. Also because this is a feature for admin there is a delete button in the datalist. I used updatePanel for this.   I put __doPostBack('" + upnlUploaded.ClientID + "','') to the javascript so when Images have been uploaded the update panel will postback.  I also have the following two lines to make it working...  <asp:UpdatePanel ID="upnlUploaded" runat="server" UpdateMode="Conditional" OnLoad="upnlUploaded_Load"> <%--upnlUploaded_Load   --%>

C# - Best Way To Get Only Certain Properties Using Reflection? stackoverflow.com

I am trying to come up with the best way to get only certain properties from a type using reflection. How can I differentiate the properties from each other? I understand that I can use binding flags or name. But say I want only a certain four properties. Would the best way be to create a custom attribute for the ones I want then loop through all of the properties to see if they have that attribute?

Forms Data Controls :: Scroll The Text Vertically From Right To Left Using Datalist? forums.asp.net

1. i want to scroll the text vertically from right to left using datalist and read the values from database like as flash news. 2. and also i want to change the flashnews title also for each text scrolling. i tried but it didn't work .. [code]....

Forms Data Controls :: If And Else (Show The Textbox And Hid Textbox) Using Itemtemplate? forums.asp.net

this is my asp code <ItemTemplate>                     <table width="100%" border="0" cellpadding="0" cellspacing="0">                   <tr>                     <td width="19%">TRANS. NO. </td>                     <td width="1%">:</td> [code]... if the ID is NULL in the database the table or the ITEM will be hide...

Forms Data Controls :: Using 'MyDataGrid' In The Correct Syntax To Insert Data? forums.asp.net

Are we using 'MyDataGrid' in the correct syntax to insert data  Code behind reads: [Code].... The front code [URL] for the Gridview reads: [Code]....

RE: Using A DataList Control To Pull Out Information From A Web Method? forums.asp.net

use a DataList control to pull out information from a web method that i am using. My web method is shown below:- I tried posting this question but when i try to show my code the FreeTextBox control does not work on this webiste. Therefore i will keep my question simple.. I have the following web method: [code]...

Forms Data Controls :: Repeat Header Row On Every Page (using Repeater)? forums.asp.net

i'm trying to use repeater (or Datalist) to form my reports, i want 30 rows a page, and every page has a Header Row as the first row, this is common used, but i don't quite know how to do that due to some reason, i cannot use Crystal report or something else, i can only use Repeater/DataList... etc, manually make it by using html tags...

C# - Checking Where All Foreign Key Is Being Used? stackoverflow.com

Lets say there's a table Table1 with Primary key as "MainID" and this MainID is being used as a Foreign key in many tables. Now when I try and delete a record from Table1 who's MainID as foreign key is being used in some child tables, then it throws this exception that "Foreign key conflict n stuff".. Now I want to design my Delete Strored procedure in such a way that first of all checks ALL the child t ables that have that foreign key column "MainID" and if MainID from Table1 is being used in any of the child tables it should return 0 . Based on this 0 value I want an alert box to show that will say "Still in use or watever" and wont let the user delete that record unless ALL the records in child tables have been deleted that were using that mainID from table1. I can't use ON DELETE CASCADE. I want the user to delete child table records manually one by one. Only after child table records using the MainID have been deleted that the user can delete record from Table1

Jquery :: Control The Page Height And Width Using Js? www.codingforums.com

control the page height and width using js/jquery? I have a page that is: width: 980px height: 2500px I would like the page height to be set to around 900px with the viewable scrollbar and all other content not viewable underneath.