.net - Adding A HTML Control IN C# In A Web Application?


I want to add a html control in C# which will display all the text from an html page selectively with the title given in my html page

View Answers
Very similar questions
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]....

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.

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?

Flash :: Securing .net Web Services For Flex / AIR Applications stackoverflow.com

What would be the best way to secure .net web services used by a flex application (both desktop and browser) that requires login? I thought about requesting the user and password in every method of the web service, and having them stored as variables in the flex app, but I don't feel like this is the most elegant way.

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?

JQuery :: How To Convert Simple Html To .net Control forums.asp.net

how to convert simple html to .net control [Code]....

Web Forms :: How To Use Html In String Variable In System.net.mail forums.asp.net

I have a task to send mail for updated values my code is below i cant able to set proper format for that [Code]....

How To Return The Full File Path In A C# Web Application stackoverflow.com

I have a VS 2008 web application that I need to capture the full file path (directories and file name) from the selected file. So user selects a file and then clicks on one of the buttons which transfers control to my code for processing. So how do I get the file path? I can get the file name, but not the path.

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

.net - Call HTML Control In Code Behind? stackoverflow.com

How can I get gridview HTML textbox value in .aspx.cs code?? E.g. : <input id="Frequency" name="customerName" type="text" style="width: 44px" />If i use the bellow code ,Then i can get the value on selectedIndex event. string n = String.Format("{0}", Request.QueryString['customerName']); I want to use bellow syntax.TextBox_Label1 = (TextBox)e.Row.FindControl("Frequency"); i don't want to user the runat="server" on HTML control .From Gridview i need to call a popup,Popup return a value ,I use the bellow code on javascript to do that window.opener.document.getElementById("customerName").value = val; window.close(); In my gridview .if i put the runat="server" then return value not set ,So i need to remove the runat="server".It also not work if i put the Asp:TextBox on Grid.Help me to Return popup value on gridview Asp:TextBox

Web Forms :: How To Access HTML Control Value From Server-side Code forums.asp.net

I have to access my html control and get its value from my server-side code. Is there anybody who could suggest how I could do it? My html control is very simple: <input type=text> But the thing is: I can't make it <input type=text runat=server> cause in this case my jquery functionality (datepicker) does not work.

Web Forms :: Can't Reference An Html Element From Code Behind In A User Control forums.asp.net

Here is the contents of my test.ascx file: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="test.ascx.cs" Inherits="UserControls_test" %> <p id="XXX">aaa</p> and here is the contents of my test.ascx.cs file: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class UserControls_test : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { this.XXX.InnerHtml = "BBB"; } } I get an error when I refer to the id, "XXX" (underlined above) in code behind which reads: 'UserControls_test' does not contain a definition for 'XXX' and no extension method 'XXX' accepting a first argument of type 'UserControls_test' could be found (are you missing a using directive or an assembly reference?) I have tried XXX.InnerHtml and I have tried this.XXX.InnerHtml and get same problem. How do I successfully refer to ID'ed HTML elements in code behind?

Web Forms :: Adding Elements Before And After Link Element In Menu Control forums.asp.net

I wonder if there is anyway to actually add a HTML element before or/and after the actuall <a>-element thats rendered by the Menu control. For instance I whould like my out put HTML to look like [Code]....

How To Change Html Elements Attribute At Run Time In Web User Control forums.asp.net

I have a web user control menu of page. Now I want HOME (which is an hyperlink text) in menu to be Bold at the time default.aspx Loaded (Load event)! How can I do that If any one can provide code! I am using VB .Net at back.

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#.

Web Forms :: Insert Html Tage To Sqlserver Database Through Textbox(asp.net 2.0)? forums.asp.net

Insert html tage to sqlserver database through asp.net textbox Display it lable control

C# - Getting Geographical Coordinates From Web Application? stackoverflow.com

I want to learn a user's location from his mobile device by web application. When user opens the website, with the help of a script we will learn if the device has a gps hardware.And if the device has gps hardware what are the current coordinates? I'm developing my project using ASP.NET

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

C# - How To Display Windows.Form.MessageBox In Web Application stackoverflow.com

I want to display my validation error messages in the MessageBox. I have Four TextBoxes and One Button control. When I click the Button Control, the TextBoxes without the text to be shown in the MessageBox. I have almost done this, but the problem is When I click the Button, the MessageBox is opened as a minimized window. So it is difficult for the end user to realize. I want to display the MessageBox to the user when button clicks. Here is my code, In the Button Click Event [code]....

Controlling Outside Applications - Resize Multiple Applications And Send Keystrokes To Each One www.xtremevbtalk.com

I am working on a project that is used for key broadcasting. Don't worry nothing illegal, I'm making a multibox application for world of warcraft. However I am having trouble when it comes to launching and manipulating other applications from another. [Code]...

Web Forms :: Clear The OutputCache Across Web Applications? forums.asp.net

Is it possible to clear the output cache of one asp.net web application from inside another asp.net web application? Reason being... We have several wep applications structured like... [URL] Pages in /area1/ and /area2/ are cached and are managed through /intranet/cms/. When a page is edited using /intranet/cms/ I want to clear it out of the cache in the appropriate /area#/ application. I already tried using a VaryByCustom that looks up a guid stored in the HttpContext.Cache but that seems to be cached per web application, that doesn't work. Really if there were any way of passing data between web applications on a single server, that would solve my problem, since I can use that + VaryByCustom. One thought was to create some file and useHttpResponse.AddFileDependency to make it a dependency in both applications- but this is less than ideal because I have many pages and therefore would need many files. Another idea is to create some URL in the /areaN/ apps that clears the cache for a given page and just make a request from the /intranet/cms/ app to that URL to clear the cache.  This would work, but seems a bit clunky.

How To Create ASP.NET AJAX-Enabled Web Site In Visual Web Developer Express Edition forums.asp.net

I've upgraded from Visual Web Developer Express Edition 2005 to the 2008 version.. What's the equivalent of "ASP.NET AJAX-Enabled Web Site" in the File > New web site dialog..

Web Forms :: Web Control - Multiple Selection Drop Down? forums.asp.net

Am creating a user control for multiple selection drop down( i e dropdown with checkbox list) as shown. It works fine if i have only one instance of the control in a page. But it fails for more than one. I guess its java script client id issue. but i checked even that but unable to found :- This is my .ASCX file. [Code]....

Web Forms :: Passing Multiple Parameters To An Exe From Web Application forums.asp.net

I need to execute the following exe file with multiple arguments from asp.net web application "C:Program FilesSysteminvoke.exe" /project "UPLOAD" /app "Default App" /task "XMLGEN" /parm.OutputDirectory "c: emp" I tried the following asp.net code, [code]....

Only One Instance Of A Scriptmanager Can Exist On A Page? stackoverflow.com

I design an ASP.NET web usercontrol and with a maskeditor and scriptmanager, I always get an object reference not set to an instance of an object exception at runtime. Stacktrace is: [InvalidOperationException: Only one instance of a ScriptManager can be added to the page.] System.Web.UI.ScriptManager.OnInit(EventArgs e) +384613 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Control.InitRecursive(Control namingContainer) +210 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

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.

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?

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?

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]...

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 :: 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.

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>

Cannot View My Command Button In My First Web Application www.vbcity.com

Really need help on this matter.. I am really new with VB.net.. I've installed VS.Net.. Try to create my first web application. In my web form form, I've added a label, text box and command button for testing.. In my Label property, I've set the Label's text and text box's text to "Testing" (for example").. When I build and browse my web form, I could only see my label text and my text box text (Testing). However, I've couldn't see my text box border and command button... Anybody.. pls help me...

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

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# - 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.

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?

What Are The Events Triggered After Clicking On A Href Link In A .Net Application stackoverflow.com

My client wants to pass values through the query string, but they don't want the query string to be displayed in the browser's address bar. The values being passed are for tracking purposes. I know that postback doesn't happen after you click on href link.Is there any way I can get the value out of the query string without displaying it in the browser's address bar? I think this may be impossible, but I may be wrong; I'm hoping to see if anyone has any answers.

C# - How To Create Simple Stacked/segmented Html Bar stackoverflow.com

Rather than try to reinvent the wheel, how to create a stacked/segmented bar or point me to an existing control. Here's what I need: Horizontal bar Standard html Each segment needs to be color coded from css Each segment needs to be a percentage of the total (i.e. if total value = 100, then a value of 10 for one of the segments would be smaller than a value of 50) Should be able to fit seamlessly into an html table cell Should not be an image Should only create a single bar with segments (not multiple bars/segmented bars) Server-side generated, no AJAX This should be as simple as possible given x number of values, create x segments. I'm looking for code examples or already-built controls. EDIT: For completeness: int[] segments = { 10, 5, 45, 20, 20 }; Panel horizontalBar = new Panel(); for(int segmentIndex = 0; segmentIndex < segments.Length; ++ segmentIndex) { horizontalBar.Controls.Add(new Panel() { ID = String.Format("segment-{0}", segmentIndex), Width = Unit.Percentage(segments[segmentIndex]), CssClass = "segment" }); } this.Page.Form.Controls.Add(horizontalBar);

Trigger Visibility For Pure Html Controls? forums.asp.net

I am trying to trigger visibility on and off for pure/standard html controls, mind you these are not asp controls but pure html controls. However, I'm clueless as to how this can be done,

How To Access HTML Control From Code Behind forums.asp.net

my application runs on the client side.  I have to access a display on the asp page via javascript.  I have the following code working properly: ClientSript.RegisterStartupScript(this.GetType(), "allMessages", "<script>document.forms[0].tbDisplay.value='Messages'; </script>"); tbDisplay is a "text box" asp:textbox control.  I need to replace de 'Messages' for avariable.  so instead of printing "Messages" all the time, I can change the information on the variable prior to display the message.  how to change 'Messages' to a variable.

Code Behind Doesn't Recognize Control ID's On HTML Page forums.asp.net

I had a website with a few asp.net controls with id like: btnSave and tbAmount I renamed one of my controls and when I tried to use it in the code behind I get the following error. Error 5 Name 'tbAmount' is not declared.  I was messing around trying to add new controlls rather than rename, but nothing seems to work. And now, none of my controlls that were added to the page are recognized in the code behind. They all have the error: Error 5 Name 'tbAmount' is not declared. Or Error 3 Name 'hfNoteId' is either not declared or not in the current scope. E:NoteTenderNoteTenderMembersManageNote.aspx.vb 33 71 NoteTender Even my button click event handler gives me the following error: Error 2 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. E:NoteTenderNoteTenderMembersManageNote.aspx.vb 27 91 NoteTender I have verified that my inherits is using the correct namespace and class name.

MVC :: Html Helpers / User Controls Dependency Injection? forums.asp.net

I've just started wokring with Asp.Net mvc and i relay love it. One thing I don't know how to do it yet is: If I want to develope a new user control (e. g. PeoplePicker) how I get the data? I don't want to use allways ajax requests, some controls should be initialized when the page is loaded. So I could use the Html Helpers and create own extension. So far this is exactly what i want and it's working. But now to the real problem. I can't use dependency injection in extension methods (I'm using spring.net, but the problem should be in all di frameworks). So which approche is the most common to use this problem? Must I realy pass in the data from my controller? But then the controller must know how my user controls works, I don't want that!

Web Forms :: How To Display Default Image When Image Control Link Is Dead forums.asp.net

i have a website which has a <IMG> and/or <asp:Image> in it. The user has an option to upload an image. so if the user does upload an image it will be displayed in the stated controls above. but if they don't the control displays its alternative text or an "x" icon. can i just place a default image in it if there is no image reference to it to display?

Web Forms :: Menu Control - Skip Navigation Link Error forums.asp.net

Menu control is not working. this control is working fine on server .but  having error on local(skip Navigation link  Error) <asp:Menu ID="Menu1" runat="server" Visible="false" Orientation="Horizontal" DynamicVerticalOffset="2" Height="30" StaticEnableDefaultPopOutImage="false" StaticItemFormatString="&nbsp &nbsp {0}"> <StaticMenuStyle BorderStyle="None" BackColor="#009900" /> <StaticMenuItemStyle Font-Names="verdana" ForeColor="White" BorderColor="#009900" BorderStyle="Solid" Font-Bold="True" Font-Size="10pt" /> <DynamicMenuStyle BorderStyle="Outset" BorderColor="Gray" BackColor="#009900" /> <DynamicMenuItemStyle Font-Names="verdana" Font-Size="10pt" Font-Bold="True" BorderStyle="Solid" BorderColor="#80A2D0" /> <StaticHoverStyle BackColor="Black" BorderStyle="Solid" Font-Bold="True" BorderColor="#D9D9FF" /> <DynamicHoverStyle BackColor="Black" BorderStyle="Solid" Font-Bold="True" BorderColor="#D9D9FF" /> <DynamicItemTemplate> <asp:Label ID="Label2" runat="server" Font-Names="verdana" ForeColor="#ffffff" Text='<%# Eval( "Text" ) %>'> </asp:Label> </DynamicItemTemplate> <Items> <asp:MenuItem NavigateUrl="#" Text="Master" Value="Address Book"> <asp:MenuItem NavigateUrl="~/Branch_list.aspx" Text="Branch" Value="Applicant" /> <asp:MenuItem NavigateUrl="~/Commision.aspx" Text="Commision" Value="Carer" /> <asp:MenuItem NavigateUrl="~/PrincipleInsurerCompany_list.aspx" Text="Insurer Company" Value="Carer" /> <asp:MenuItem NavigateUrl="~/Plan_list.aspx" Text="Plans" Value="Carer" /> <asp:MenuItem NavigateUrl="~/Deduction_list.aspx" Text="Deduction" Value="Carer" />..........

.NET Pages Run In Web Configuration forums.asp.net

in asp.net (in .cs file of an .aspx page ) there is no Main() method then how an .aspx page run or  executed ?

Web Forms :: How To Share Master Pages / Ascx Files Across Applications forums.asp.net

We are developing a framework which will be shared accross applications. What is the best way to share master pages, user controls accross applications by preventing other developers to modify the master pages and the user controls ? Is the following way suitable one ? Embedding masterpages and the user controls in a dll and using VirtualPathProvider to load the master pages and user controls dynamically. But in this approach developers can not view the design. Is there any other way to convert master pages and user controls to a different format as developers can able to view design?

Forms Data Controls :: Specific Code Search Through Tool And Application forums.asp.net

I have 25 websites in which each website have 500 pages. I want to know in which page the specific code was implemented let say if i want to know in which page <span>test<span> is implemented under each website. Is there any way to know through any tool or application.

Web Forms :: Rendering Custom Controls And Viewstate? forums.asp.net

When developing custom controls and using them in ASP.NET, what are the answers to the following? - What events to use for loading and saving viewstate for controls (is this the same thing as control state?) and also for custom controls? - Similarly, which events should I use to render controls? Is this PreInit and Load? Is this the same for custom controls?

Integrate HTML / Design With C# Code In MVC? stackoverflow.com

We're working on a new ASP.Net site. The last major site we did was in classic ASP--the procedure we used there was to have the HTML completed first, then "bring it to life" with the ASP code. In the ASP.Net world, how does this work? I.e. how do the designers do their work if much of the mark-up is actually being generated by the server controls? We are also looking at ASP.Net MVC as a potential lightweight alternative. Would be very interested to know what was worked best for people in both scenarios in terms of working with the designers and integrating their work with the code. UPDATE: I refined what I was asking here, not exactly the same question but similar enough so this one could probably be merged with it.

MVC ::difference Between C# And VB.NET? forums.asp.net

I am in the process of learning MVC, and thought I would parallel the work in both C# and VB.NET.  I ran into a snag when right-clicking in an action method inside of a controller to add a view - in C# if I choose to strongly type the view it includes all the objects in the models folder in the drop-down list for selection; however, in VB.NET none of the models are available in the list.  Is there some step I need to take in order to make the models objects available in the drop down for selection?

C# - .Net Equivalent Of JSP Page? stackoverflow.com

What is the .Net equivalent of a JSP page?

C# - .NET Exception Handling Lookup From A Table? stackoverflow.com

My manager designed a table exactly like this [Exception] PK | ExceptionId ExceptionCode varchar(100) ExceptionDesc varchar(255) ExceptionMSG varchar(255) I'm using ASP.NET Webforms and using stored procedures/ADO.NET for DataAccess. Now he does not want me to hard code validation in stored procedures nor in the code behind, but to catch the constraint exception message and look up the same error message in the database and look for the message that we want to show. I wonder if his design will work or should I explain to him that something is wrong here.

Visual Studio :: How To Use Chart Control In Web Developer 2010 forums.asp.net

How to use Chart control in visual web developer 2010?

Web Forms :: Hosting User Control In Page forums.asp.net

I need a folder/file browser control in my ASP.Net page I have created a windows user control using C# and added it to my ASP.net page Here is the source code of it:    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><title> Untitled Page </title></head> <body> <form name="form1" method="post" action="default.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGTRhODPdkC39bBdueaWdgWCc3VlWQ==" /> </div> <div> <OBJECT id="MyWinControl1" height="200" width="200" classid="http:CISFolderFileBrowser.dll#CISFolderFileBrowser.UserControl1" VIEWASTEXT> <PARAM NAME="Title" VALUE="My Title"> </OBJECT>  </div> </form> </body> </html> I am running this page using ASP.Net Development Server But the control is not displayed in browser and no error message is displayed I have checked this url too: [URL]

C# - How To Add The Footer Row Dynamically In Gridview With Textboxes stackoverflow.com

how to add the footer row dynamically in gridview. with textboxes..

Windows User Control Inside Webform Required .NET Framework? forums.asp.net

If I develop a Windows User Control and host it inside an aspx web form, does the user's machine accessing the aspx page needs .NET Framework? Does the Windows User Control hosted inside an aspx or web form requires any downloading of the control similar to an ActiveX control? Or Is it rendered like a HTML page?

Web Forms :: Setup / Configure ELMAH On Website Application? forums.asp.net

I would like to configure ELMAH to my website, so I can log the error message on my SQL Server Database. I have tried and put all the required configuration on the web.config file and copied the files to bin folder but no luck nothing is getting logged on my database. Let me know if you require me to upload my web.config file. The article link as below. http://code.google.com/p/elmah/ http://dotnetslackers.com/articles/aspnet/ErrorLoggingModulesAndHandlers.aspx

Web Forms :: Find The Control In A Page? forums.asp.net

I am having couple of check box in my web page.How to I find them using VB SCRIPT?I want to know which of them is selected?

C# - Best Way To Add A Column To An Existing Dataset stackoverflow.com

I have two extremely long queries that I am running on multiple tables, using an INNER JOIN. The only difference between these two queries is that they take different input values for one of the WHERE clauses, which they get from two separate DropDownLists. The results of these queries are identical, save for the time1/time2 columns.string query1 = "select Name = t1.name, time1=(SELECT hours FROM table3 WHERE street=list1.selectedvalue), t2.address from [table1] t1 INNER JOIN [table2] t2 ON t1.param = t2.param ORDER BY Name"

Forms Data Controls :: Write XML File From Web Service To Display In Gridview forums.asp.net

How would I display the following code into a GridView. First, I need the application to write the xml file somewhere on my harddrive and then I need it to read it to populate a gridview.   protected void Page_Load(object sender, EventArgs e) { var xmlRequest = new XElement("GetTicketAction", new XAttribute(XNamespace.Xmlns + "xsi",[URL] " new XAttribute(XNamespace.Xmlns + "xsd", "[URL]"), new XElement("CompanyName", Setup.Company), new XElement("IntegrationLoginId", Setup.Username ), new XElement("IntegrationPassword", Setup.Password), new XElement("SrServiceRecid", Setup.SrServiceRecid)) .ToString(); var proxy = new MyWebService.integration_io(); var xmlResponse = proxy.ProcessClientAction(xmlRequest); var parsedXmlResponse = XElement.Parse(xmlResponse);......................

Web Forms :: Way To Highlight Error In 2nd TextBox Like Typing Tutor Application In C Sharp forums.asp.net

When I am building my typing tutor application the errors user made I want to show it in RED into his textbox. I created a LIST to have the index values stored but cannot figure it out how to retieve it and make them display as RED COLOR in UserTexbox. [Code]....

Web Forms :: Same Control Under Each Item Of Check Box List forums.asp.net

my form requirement is i have a checkboxlist control aching,cramping, pain are the checkboxlist items under checkboxlist i need another checkboxlist whose items(arms, legs, thighs,buttocks) are same for all the items in first check box when i select an item in 1st checkboxlist the i should get the 2nd checkboxlist ,and the values have to be specific for each item in 1st checkboxlist

Page Level Security And Control Level Security In MVC Applications forums.asp.net

how to implement page level and control level security in MVC applications. Also I would like to know the definition for Page Level and Control Level Security in MVC. Please refer me if any third party tools avilable to implement security in MVC.

Routing With Parameters In .NET Application? stackoverflow.com

I need to use routing with parameters in my ASP.NET application. public class Global : System.Web.HttpApplication { void Application_Start(object sender, EventArgs e) Then, by navigating to "/Profile" I want to get on Page_Load method Request.Params["Id"] as null and by navigating to "/Profile/1", Request.Params["Id"] as "1".

Getting Error Message While Calling Web Service Method From Application forums.asp.net

i am getting this error message while calling a web service method from my application The underlying connection was closed: The connection was closed unexpectedly i am using asp.net 2.0.

Web Forms :: Passing Multiple Parameters To VB.net Function forums.asp.net

Im wonding what the correct syntax is to pass 2 parameters from a Ascx control into a Vb.net function? Heres what I currently have: <asp:Literal ID="CommentFooterLiteral1" Visible='<%# Eval("Approved") Or IsModerator() %>' Text='<%# FormatFooter(Eval("Anonymous"), Eval("DisplayName"), Eval("CreatedDate")) &#43; " " &#43; GetModeratorStatus(Eval("UserId")) %>' runat="server" /> The Function "FormatFooter", needs to pass in Anonymous and DisplayName parameters. Anyone know the correct syntax for doing this?

Web Forms :: How To Save Asp.net Checkbox Value In Session forums.asp.net

i was trying to save a checkbox value in session and display it in a new page.all other information i saved in session are textbox values. they are displayed correctly. but the checkbox value remain false for some reason. the form i made can send emails to user. checkbox value in the email is correct. [Code]....

C# - Comparing Nullable DateTime's In VB.net? stackoverflow.com

I am a c#/asp.net developer and I am having to work on a VB/asp.net. I started out with VB.NET but after years away from it I'm getting confused with the syntax. I have two variables Dim originalDate as DateTime? Dim newDate as DateTime? Both nullable datetimes, originalDate is a nullable date I am getting from the database and newDate time is set in code, I need to compare them, they can either both have dates, neither have dates or one have and one not. I have a bit of code as follows: if origEndDate = origEndDate then When both origEndDate and origEndDate are "nothing" this statement is false (well when I run it in the watch window it comes back as nothing)! I don't understand why this is the case because I was under the impression doing an "=" compares the two values and as they are the same surely it should be true? What syntax should I be using as in C# I can do the above as so: if (origEndDate == origEndDate) { } and it will come back as true.

How To Handle User History/Log Module For Web Application Interaction forums.asp.net

How can I store the operation of user in the database. like User Web interaction like Insert ,delete,update operation in the datatabase. How can I create history/log  module for web application?

Web Forms :: How To Create Scrolling Control forums.asp.net

How can I create a scrolling box on a page that up/down scrolls text and images that come from a database? Using asp.net 2.0 and vb.net

Security :: How To Create A User Login Control Without The Use Of Web Admin Tool forums.asp.net

I'm looking for a way to create a login control without the use of web admin tool Here are my system requirements Windows 7 Visual Studio 2008 Professional Edition Microsoft SQL Server 2005 Express Edition  ESET Anti-virus but SQL and Studio files excluded from being scanned. I have got a database. I've created the front end of the user login control manually not using the toolbox. Basically what I need is that once a user has registered. He then logs in. when he enters his username and password how do I code it so the database realises it's him/her and takes them to their LOGGED IN user

Web Forms :: How To Access Dynamic Treeview Control forums.asp.net

i want dynamic tree view control for my project .let me Know with  code in c#

Web Forms :: How To Display Column Field In A ListBox Control forums.asp.net

i need to display perticular couln field values in a ListBox control. but database is not in local meachine. i know how to configure a ListBox to display values from localdatabase but how to configure to a remote database ?

Web Forms :: Can Use LINQ To Get Filtered List Of Controls forums.asp.net

I have zero experience with LINQ but had occasion to use it today.  I implemented a working solution but do have a question.First, let me provide the background:I have 20 large web pages that altogether have several hundred data input controls on them.  There are strong similarities between how each type of control is handled.  Rather than wire up each control individually (ie. hard code it in the layout page) foreach (View view in multiView.Controls) foreach (Control ctrl in view.Controls) switch (ctrl.GetType().Name) case "DropDownList": DropDownList ddList = (DropDownList)ctrl; [code]...

C# - Getting Text Of .NET HyperLinkField In GridView stackoverflow.com

I'm trying to get the text of a HyperLinkField in a GridView's OnRowDelete event (the HyperLinkField's text is the primary key of the row I wish to delete). I understand that you can't get the text using the code I've placed below; it only works for BoundFields (for HyperLinkFields, the string is ""). But, I've been unable to find a working answer for getting this text. How do I get the displayed text from a HyperLinkField? (VS2010 w/ ASP.NET 4.0 and C#) GridView Design <asp:GridView ID="teamGridView" runat="server" CssClass="gridView" RowStyle-CssClass="rowStyle" AlternatingRowStyle-CssClass="altRowStyle" HeaderStyle-CssClass="viewsHeader" OnRowEditing="Team_OnRowEditing" OnRowDeleting="Team_OnRowDeleting" OnRowUpdating="Team_OnRowUpdating" [code]...

How To Handle Exceptions In A 3-tier Web Application - Specifically Sql Database Exceptions stackoverflow.com

I'm building the standard 3-tier ASP.NET web application but I'm struggling as to where to do certain things - specifically handling exceptions. I've tried to have a look around on the web for some examples but can't find any which go as far as a whole project showing how everything links together. In my data-tier I'm connecting to SQL Server and doing some stuff. I know I need to catch exceptions that could be raised as a result but I'm not sure where to do it. From what I've read I should be doing it in the UI tier but in that case I'm not sure how to ensure that the connection to the database is closed. Is anyone able to clarify how to do this? Also if anyone knows as to where I could find an example 3-tier web application that follows best practices that would be great too.

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

Accessing Web Server Controls From Jquery? stackoverflow.com

In my C# asp.net 3.5 web application I am having controls like div tag inside that one textbox and one check box and the page is having a submit button. So in this submit button click I want to make the controls inside the div tag visible.. I am calling a JQuery function to do this. All the statements are getting executed but the control is not visible.. Following is the code in my JQuery function $("input[name$='QuestionAndAnswerEditorDiv']").show(); $("input[name$='answerLabel1']").show() $("input[name$='wmd-AnswerTextBox']").show() My div tag and its controls in the user control page are like the following <div id="QuestionAndAnswerEditorDiv" runat="server"> <div id="wmd-button-bar" class="wmd-panel wmd-button-row"></div> <textarea name="QuestionandAnswerTextArea" runat="server" id="AnswerTextBox" onkeyup="prettyPrint();" class="wmd-input editor" cols="92" rows="15"/><div class="wmd-preview text-preview preview" style="-ms-word-wrap: break-word;"></div> As I noticed these controls are make visible=false in another page so they are not coming in the page source.. So Let me know how to work these controls now

Jquery - Web Application Accessing SharePoint Object Model? stackoverflow.com

I have an asp.net 2.0 web application that will run on the same web servers as SharePoint Server 2007. The application should run in its own App Pool (IIS 6.0). The Web Application needs to call the SharePoint Object model API. Is there a resource that explains the required configuration / security settings and other considerations? It is possible that I need to make some settings in SharePoint Admin Console itself; aswell as config files. Script files might need to be located in a specific location in order to be accessible. Assemblies may need to be signed. I can only get partial success running my Web application. But only if it is deployed to a Virtual Directory that resides under the SharePoint Website (in IIS & File system). Even with this setup, I JQuery / Javascript throw errors when accessed (object null); and also images not loading. I have made some changes to the Web applicaton web.config file which have allowed me to run the application albeit the above mentioned issues with scripts and images (Virtual directory properties also set to allow scripts and executables to run). Ajax functionality appears to work OK.

Web Forms :: Accessing Javascript Variable In Label Control? forums.asp.net

I have a javascript variable in the script tag. I am assigning a value to that variable and I want the same value to be assigned to the label control e.g. consider the sample code below : <body><script type="text/javascript"> var a=window.opener.parent.document.getElementById('description').DataValue; </script> < asp:Label ID="lblSubject" runat="server" Width="142px" Font-Bold="True" Font-Size="10pt" Font-Names="Arial" >SUBJECT</asp:Label> </body>  How do I assign the value of variable a to the label?

C# - Add Space After Each Fourth + Sign? stackoverflow.com

I have such a text for example: "A01+B02+C03+D04+E05+F06+G07+H08+I09+J10+K11+L12+M13+N14+O15+P16" I would like to add a space after each fourth '+' sign. This is because if the text is too long in the grid's cell in my page, then it's simply cut off. So I'm thinking to simply wrap the string before binding the data to the grid. I've played around with several string methods, like getting the IndexOf and the adding a space with Insert, or using a StringBuilder to make a completely new string out of the original one, but I just can't get the final solution running.

Web Forms :: How To Know About Calendar Control Modification forums.asp.net

My project is to create a UI where school districts can select dates for a school calendar. On my calendar page I have a Calendar control, a text box for date and a select box for events. In the code behind I modified the DayRender event handler to add color to the calendar depending upon the event for that date: Holidays are green, School opens is pink, Teacher Inservice days are Aqua, etc.  This all works fine. However, when I tried adding a letter to the date to correspond to the event; "O" for school open, "I" for Inservice, etc. I get multiple entries "OO", "II", etc. [code]...

Web Forms :: Calendar Control Data? forums.asp.net

i have a table with some data that use a field named DATE my question is that if i have a date in my database for exmple from 09/26/2010, 09/27/2010that dates will appear on my calendar i was able to managed that.but what if today is 09/29/2010 but theres not data on my database for the 09/28/2010 i need to that day 09/28/2010 can appear on my calendar in red and also that i can't select any forward dates until i insert the 09/28/2010 information.rightnow i have this Protected Sub Calendar3_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles Calendar3.DayRender If Not e.Day.IsOtherMonth Then   [code]... that code will display my 2 records 09/26/2010, 09/27/2010 in the calendar dates,but if the user didn't insert anything on the 09/28/2010 and today its 09/29/2010 i need that the calendar wont le me select any dates until the user insert 09/28/2010 data. i hope i was able to explain.

Web Forms :: Validation For Calendar Control? forums.asp.net

I have created a calendar control in asp.net mvc using linq to sql.I have used jquery to create calendar control . I have to validate my calendar control as a required field.

Web Forms :: Can Set Default Page Control's Property In Global.asax forums.asp.net

I face some problem. I have default.aspx page, where user make some operations. There're available some panel on this page to show notifications. If exception will appear I want to handle it with Application_Error method in the global.asax file, but I don't want to redirect user to another page. I want to make notification area visible (on the default.aspx ) and show error message in that place. How can I make it? Can I set default page control's property in global.asax? Or there're some otheк solution?

Built A Hosted Web Application? stackoverflow.com

We have built a hosted web application, that is developed in a way that each customer is connected to an individual database. This application is a web plattform/publishing system, and has been working very well so far with this design. We also have a main database.Now we are about to make some changes in our pricing model, which would introduce free accounts. This should (hopefully) generate a lot of more accounts.Is there a problem having a lot of databases, say many thousands (currently about twenty)? There are lots of advantages: security by separation, scalability, easily extract customer specific data (part of scalability too), etc.

Design An Application That Allows Data To Be Input Over The Web Via Php bytes.com

I am a scientific programmer new to PHP. I am trying to design an application that allows data to be input over the web via php to a mysql database and retrieved and displayed. The server runs apache on a linux box. There must be some templates or such-like for this simple sort of thing (what I am trying to do is purely functional rather than pretty)?

C# - SOAP WebService And .Net? stackoverflow.com

I have to connect with PHP WebService via SOAP from a .Net (C#, WPF) application. I added reference to this service, some proxies were generated.When I invoked some function: var client = new someAPIPortTypeClient(); XmlNode[] response = client.status(arg1, arg2); I got response: [code]...

SOAP, PHP, RPC And C# .Net bytes.com

I have an app that calls a webservice written in PHP. I have referenced the WSDL and when sending data to the server, methods like following work fine: soapservice MySoap=new soapservice (); MySoap.search("arg1","arg2"); However, when I need to receive data from the server or extract results, I am not sure what to do. None of the methods list any data type returns. Of course, I know what should be returned and we had been using "RPCResult" and XML documents from a SoapReader in VB6 using the SOAP SDK. Assuming I am going to retrieve an RPCResult and XML file from the above method, does anyone have any advice?

Ajax :: Web Applications - How To Do Search Engine Optimization stackoverflow.com

How is the relationship between crawlers and ajax applications? Do the web crawlers or browsers read dynamically created meta tags? I thought about: -Adding anchors to the page -Creating permalinks to the content -Dynamically adding meta tags. [URL]