Forum Array

Web Forms :: Login Form - Storing Password?

I am using web (asp.net 3.5). c#In my login form i accept username and password.what is best way of fecthing username and password from user and saving in sqlserver in terms of security .Is encription and decription only way? then how do i implement it?

View Answers

Very Similar Questions

Web Forms :: Should Go To Login Form After Clicking Link In Mail
forums.asp.net
I am sending a mail, in this Emailbody see the code below Emailbody += "<td nowrap=nowrap><a href=http://pms.winrock.org.in/SubContractFin.aspx?id=" + lblSubConNo.Text + "><strong>Click Here</strong></a></td>"; whernever user get thi mail there is a link (Click Here) in this mail which redirects to SubContractFin.aspx form with a query string id. thorugh this query string I am doing somthing on SubContractFin.aspx form.Now I want that if a user click this link it should goes to my login.aspx form and after successful user login it goes to SubContractFin.aspx form with same query string id.So how I need change my email body code.

Web Forms :: Fill Html Form And Send Mail?
forums.asp.net
the members are occuring html form and adding one submit  (id must btnPost) in fck editor. and saving. visitors are visting to this page and filling this form and click btnPost. I want to send mail this fill form . but texts, selects, radios must be  like fill form. how can I this.

Web Forms :: Use Windows Form To Authenticate Against Asp
forums.asp.net
I have a ASP.NET website which uses the standard ASP.NET Login Control for authenticating users. The user information is stored in a SQL Server database which is not accessible from client side. I want to write a standalone desktop windows form application which requires user to login with the same credential (username and password) used on the website. For the web-based form authentication, it's simple just to use the login control. Howerver, I have no idea for how to deal with the login for windows form application. My naive idea is to create a login web service which windows form application can utilize.

Web Forms :: Turning Off Saved Passwords/autocomplete?
forums.asp.net
I have an application where I don't want the browser to be able to remember passwords. I can see the AutoCompleteType = disable and that seems to work in IE, but I also need to support FireFox. Setting autocomplete="off" doesn't seem to do anything. Is there anyway for me to kill the autocomplete of a password text box in FireFox?

Web Forms :: Custom Validator For Comparing Passwords?
forums.asp.net
I need to create a "real time validator"  to compare values from two TextBoxes without having to do a postback. They are password fields, so I need to make sure that the value of both is the same, and at the same time, I'd like to be able to indicate whether the length of these values complies with a minimum length that I specify. I'm also aiming to have this "validator" update as the TextBoxes are filled.

Web Forms :: Storing Session Data Continuously?
forums.asp.net
Is it possible to store gridview session data after each postback. I have a gridview and a checkbox within. Each time a user clicks the checkbox, I like to store the gridview ID in a session. After browsing through various pages, I like this session datato continuously store the information up to 20mins? How can I continously store the session variable. Say a text box and if I enter 1 click on a hyperlink (where session variable is stored) return back to the page, enter 2 click hyperlink then I should get in the session 12?

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.

Web Forms :: Visual Web Developer 2008 Express Book By Eric Griffin
forums.asp.net
I am using the above book to learn ASP.NET 3.5 SQL server 2005 and C#. When I run the code as is given in Listing 5-7 I get 1 error message and 5 warnings. Language="C#" MasterPageFile="~/Admin/MasterPages/PersonalPorter.master" AutoEventWireup="false" CodeFile="Default.aspx.cs" Inherits="Main" <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="server" </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="PersonalPortalContent" Runat="server" </asp:Content> Error 1 The directive 'master' is unknown. C:UsersdavebeckinghamDocumentsVisual Studio 2008WebSitesPersonalPortal2Default.aspx 1  Warning 2 Validation (ASP.Net): This attribute name must be followed by an equal (=) sign and a value. If the value is in quotation marks, the quotation marks must match. C:UsersdavebeckinghamDocumentsVisual Studio 2008WebSitesPersonalPortal2Default.aspx 1 5 C:...PersonalPortal2...................

Web Forms :: Can't Delete Web Part?
forums.asp.net
I have custom user controls each with a SQLDatasource and a GridView in a DeclarativeCatalogPart.  When I try to delete a control from a WebPartZone I get the following error.The SqlDataSource control 'SDSOnCall' does not have a naming container.  Ensure that the control is added to the page before calling DataBind.

Web Forms :: Web Page That Allows Multiple Database Row Updates
forums.asp.net
We currently have a page with a listview control that has textboxes and an update button for each row. Users are able to update the database one row at a time.This is problematic in countries where the internet connections are very slow because a round trip is needed for each row update and this can become impossible to use.We need to create a page which allows multiple row updates so that each round trip is more productive.  There woudl be just one update button on each page and users could enter values into each row.  Clicking the update button would update each changed row of the database.We currently use linq 2 sql.  I would imagine that we could still use this in the above scenario??? Or is there a better data connection methode to use in this scenario.

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

Web Forms :: Showing Excel On Web Page?
forums.asp.net
I want to show Excel objects and its functionality on my web page. Is there any way to do so? I want to show it the way google spreadsheet is.

Web Forms :: Turning Off The Timer?
forums.asp.net
I think I know the answer to this, just want to make sure.  Question:  there's no way to turn off a timer in ASP.NET on the client side (easily—I've seen the undocumented hacks on the net).  Therefore, you have to set up you own logic client side while the timer is running server side, correct?  I went through these examples and understand them: http://www.asp.net/AJAX/Documentation/Live/tutorials/IntroToTimerControl.aspx http://www.asp.net/AJAX/Documentation/Live/tutorials/TimerControlWithUpdatePanelsTutorial.aspx So, the pseudocode for a trigger done programically—so you do something when somebody clicks a button Button1 would be-- after you set up a ScriptManager, UpdatePanel and suitable ASync PostBack triggers in XAML (as per the above links) so that the Ticks event is triggered in the UpdatePanel: public partial class MyWebForm : System.Web.UI.Page     { bool myTriggeringBoolean; //used to turn off and on code in the Timer's Tick event [code]....

Web Forms :: Turning Off An Anchor?
forums.asp.net
I have a simple navigation control which takes a property "ActiveLink" that should turn off an anchor tag. Whether I use an HtmlAnchor or an asp:HyperLink doesn't matter to me, but how do I get the server to turn off the anchor and just get it to show the text? Do I need to show both an anchor AND a label and swap them out in turn? It seems kind of redundant. The HtmlAnchor.Disabled property isn't doing it, and neither is the HyperLink.Enabled property.

Web Forms :: How To Open Link To Pdf File In New Tab Using HTML
forums.asp.net
I have an html page which contains link to open pdf file. however this link opens in adobe reader when i click on it. I have set target property to blank. but it doesnt work either. I want to open this pdf file in new tab in the same window.

Web Forms :: Turning Markup Into Codebehind Code
forums.asp.net
I have the following markup for a paypal button but i want to be able to set some variables from the code behind eg the cost/price and ammount, im new to aspx and im not sure weather i have todo the whole form from the code behind or weather or not i can access the form from the code behind, Code below. [Code]....

Web Forms :: Turning Off The Autocomplete Feature For A Textbox
forums.asp.net
One thing I really love about web browsers, is the autocomplete feature they have for different controls, like textboxes in forms.  However, some times users get confused with the dropdown appearing.  So, we would like to be able to disable the autocomplete feature for some textboxes on some of our ASP.NET WebForms pages.  Isn't there a property which controls that?  Or is that done through JavaScript?

Creating A Log In Web Form To Access A Website
visualbasic.ittoolbox.com
What's the best way to create a log in web form to access a portion of thewebsite?Shelly BrownDirector of Web Services email@removed

Web Link On A Form
www.xtremevbtalk.com
Is there any function which will lunch default webbrowser with url of my website? If I only know where is stored any info about webbrowser it could be much easier to do it.

Web Link On Form
www.vbforums.com
Hi Friends, yet another one ?? I want to create a web link on the form so that when the user click on the link, the browser open the url.A label is enough for link but How to activate the browser whenuser click on it ???Thank You all for ur grt hlp....

Web Link In VB6 Form
www.vbcity.com
I'm sure there's some easy way to put a clickable URL on a form. I'd prefer if it just called the default browser.So, is this one of those "it should be easy" questions, or can somebody give me a hand?Thanks

Web Forms :: Create A Link Button Dynamically?
forums.asp.net
I have this page that can view all the products... the products can also be viewed alphabetically by clicking a letter from a - z A B C D E F and so on...  <--- Like this.. my problem is what control will I choose (because im confused what control to use)? and how to dynamically add this to the page?

Web Forms :: Open Excel File From Link?
forums.asp.net
I have a requirement where i need to open excel file from system using link i build link from code <a href="path fo file"> but this does not work from aspx page if i put same thing in seperate html page nd run it works fine

Web Forms :: Remove Bad Code On Html Render Page
forums.asp.net
Im woking with aspx. And when I view source HTML I saw some code [Code].... I hate it. It's not clear and not validate.  When I working with PHP or ASP, I can get a pure HTML page. But can't with ASP.NET.

Web Forms :: How To Dynamically Create HTML File From The Code
forums.asp.net
Precisely and concisely, I have aspx page that has only one button "Generate". If the user clicked on this button, one HTML page should be created. The created HTML page should have title "Home" and the Body should contain "Hello World". 1) What is the code that should be written inside "Generate" button in order to accomplish this functionality? 2) Assuming the HTML page gets created, How to store it inside specific folder on the local drive? Or how to store it inside DB?

Web Forms :: Open Link With Aspx?
forums.asp.net
I have a Link in my Gridview and when i click it i want it to open in a page with certain "design". I want when i click the link to take its ID and pass it over the handler. Like for exaple clicking on a news Title and open the article to view the entire article.

Web Forms :: How To Open A New Window Using Link Button
forums.asp.net
I am trying to navigate it to another page using Link Button and in the .cs file, I am using Response.Redirect. But I want it to the open in a new window. The reason why I cant use hyperlink is I cant use Command Arg and Command Name which I am using in the Link Button. I tried the below Javascript, But it's coming as a pop up for the first time when it loads. I don't want it in that way also. Is there a way like Hyperlink '_blank'. public static void OpenNewWindow(string url, Page thispage) { string fullURL = "window.open('" + url + "', '_blank', 'fullscreen = no, status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,titlebar=yes' );"; ScriptManager.RegisterStartupScript(thispage, typeof(string), "OPEN_WINDOW", fullURL, true); } .cs <asp:LinkButton ID="lbtn_photo" runat="server" Text="Upload Photo" OnClick="Upload_Photo"></asp:LinkButton> protected void Upload_Photo(object sender, EventArgs e) { Response.Redirect("UpPhoto.aspx?id=" + Request.QueryString["id"]); }

Web Forms :: Open Link In Masterpage Contentplaceholder?
forums.asp.net
I have a master page that contains a menu, the menu contains links to pages outside the website, how do get those links to open up in the main contentplaceholder  of the master page?  I tried setting the target to the ID of the contentplaceholder but that didnt work.

Web Forms :: How To Add CSS Dynamically (no Link)
forums.asp.net
im trying to add in my form css style dynamically without use HtmlLink class and <link> tag, i want that in HTML Code appears something that:[Code].... I have a CSS External File, and I don't know if exists any way to do this, because all ways that i saw are creating the style individually and adding with Page.Header.Style

Web Forms :: How To Open/close The Panel By One Link Button
forums.asp.net
I am tring to open the panel with clicking linkbutton and to close the same panel using that link button .How can i write close and open in one event .

Web Forms :: Trying To Build Link Button Dynamically?
forums.asp.net
I want to build link buttons dynamically, and the link is clicked run a subroutine. that is one half of my problem. Once that linkbutton is created, then i would like to concatenate that with text that i am placing in a text box.

Web Forms :: Link Button Cannot Open Popup On Single Click
forums.asp.net
i have to open the popup on from the gridview's linkbutton, bnut it open on the double click, not on the single click. LinkButton btn = sender as LinkButton;

Web Forms :: Remove Tag From HTMl Generated By ContentPlaceHolder
forums.asp.net
I have a master page that has one ContentPlaceHolder. When I add content to it on the content pages, it renders a <p> tag to the browser when viewed. This is messing up the layout for me. Is there a way to prevent ASP.NET from rendering the ContentPlaceHolder with a <p> tag?

Web Forms :: How To Open Javascript Url Link In New Full Size Window
forums.asp.net
How can I change the follwoing code to open the link in a new full size window, I don't want to navigate there because they want to just view the next page and not leave existing page. lblProcessNum2.Text = "" & myDataTable.Rows(0)(4) & ""

Web Forms :: How To Insert Link In Different Cities Of Country Dynamically
forums.asp.net
How can i insert link in different cities of country dynamically?

Web Forms :: How To Remove Html Code In A Textbox
forums.asp.net
i pull out some of the data from sql server 2005 iinto a textbox. but it display the data incluced the html code.so, how to solve this issue?

Web Forms :: Can't Open File Msg - May Not Have Permission To Open It
forums.asp.net
I am getting this error "Cannot open file msg. The file may not exist, you may not have permission to open it, or it may be open in another program. Right-click the folder that contains the file, and then click Properties to check your permissions for the folder. "  while reading .msg file.What can be the reason.

Web Forms :: Dynamically Change Embed Video Link?
forums.asp.net
I am trying to dynamically change the url link of an embeded youtube video from the code-behind on our website. Here is the HTML code for the video: [Code].... Basically I need a way to change the video links (in bold above) from the code-behind..

Web Forms :: Getting Name Of Saved File?
forums.asp.net
When saving a file using vb.net: file.SaveAs("c:/xx/xx/xx/xx/xx/" & file.FileName) If a file is saved that already exists, is there a way to capture the saved filename?

Web Forms :: Can Get ContentType For File Already Saved On Server
forums.asp.net
If you upload a file from a webpage, you have the HttpPostedFile object available to you, which has the property .ContentType. However... we have files already uploaded to our server which we need to get the ContentType of. Because these are not HttpPostedFiles I am finding it very difficult to get their ContentType. Is it even possible? This is one of those things you assume will be straightforward and then ends up taking you an hour looking around the framework and Google for some sniff of information...

Web Forms :: How To Retrieve Data Saved In Sql Db Into Checkboxlist
forums.asp.net
I've used checkboxlist to insert data into the sql database... example... checkboxlist have values 1,2,3,4,5... If is select 1,3 and 5 the values stored in databse will be 1,3,5. Now i want to retrieve those values into similar checkboxlist(1,2,3,4,5), but only 1,3 and 5 saved in db should be selected, 2 and 4 unselected....

Web Forms :: Using Dynamically Link Button Creation And Event Handler
forums.asp.net
The below shown Tree view are dynamically created link buttons. These link buttons should be created DYNAMICALLY. I tried to create dynamically and its working fine for 1 and 2 case. But I am not able to get 3 case dynamically when i clickon from 2 case. If I click on Products Link Button it'll display all sub products(i.e, computers, mobiles,...) and if I click on computers  and then only it should display all other sub products like Keyboard, Mouse,... lly, if I click on Mobiles and then only it should display all other sub products like Nokia, Samsung  ,... etc.. [code]....

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?

Web Forms :: Masterpage Won't Display Picture If Page Is Not Saved In The Same Folder
forums.asp.net
i have a master page in a root and some pages in root and works perfectly, but now i need a different folder (secure) and in this folder i have an Admin page but doesnt show icons from master, only the placeholder. If i change the url from .css (url('images/page-bgglare.png') to (url('../images/page-bgglare.png') works the pages inside the folder but doesnt works the pages in root.

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?

Web Forms :: Add Hardcoded Listitems To Dropdownlist Box?
forums.asp.net
I have the following ddl control within datagrid: <FooterTemplate> <asp:DropDownList id="milestone_add" CssClass="TextBoxes" runat="server"> </asp:DropDownList> </FooterTemplate> How to add list items "yes" , "no"

Web Forms :: Get To Destination Without Clicking Link
forums.asp.net
I have a site on which members can select from a list of links (from a ListView in profiles.aspx) in order to view details of another site member (in profile_detail.aspx), using this code: profiles.aspx and profiles.aspx.vb: [Code].... [Code].... I would like to do the following tasks but need coaching:From a completely different page (in other words, not from profiles.aspx this time), the user clicks on a photo of a site member; the program picks up the UserID associated with the photo from a database table and saves it to a session variable; completely bypasses the profiles.aspx page; goes directly to profile_detail.aspx and displays the correct person. My problem: I don't how to bypass clicking the link on profiles.aspx.In other words, I want to go directly to profile_detail.aspx and apply the UserID session variable in displaying the person who matches that UserID. You could say that I need to programmatically "click a link" found inprofiles.aspx.

Web Forms :: When Clicking On Link Goes To The Bottom Of Page
forums.asp.net
I am having trouble with a  aspx page that when I click on the link to go to the page it opens/starts at the bottom. I want the page to open at the top like normal pages do.

Web Forms :: Starts Download When Clicking The Link
forums.asp.net
i m working on a project with c# asp.net. i listed the thesis on a table and every these has a edit link ( Ex : edit link = ad_disp_these.aspx?these_id=1 ) and theses are stored on sql Server 2005 db in theses table. what i want is, when i clicked the edit link the these which id is related to the link starts downloading.

Web Forms :: How To Avoid Page Flicker When Clicking On A Link
forums.asp.net
I have noticed that many new modern websites (and templates like themforest templates) are being built without any page flicker.What I mean by page flicker is that when you click on a link the hole screen flicker and then the new page is retrieved and viewed.Here are some examples of these new sites (templates) that do not have any page flicker. http://demo.post-interaktive.com/rubicon/html_templates/index.html http://pexeto.com/weblider/index.html http://ambi.crazypandagames.com/index.html I would like to know to make a website like above. I do realize that it must be ajax or javascript. However what I would like is some code.

Web Forms :: Sending Mail With SMTP Doesn't Work?
forums.asp.net
I've been quite looking all around for solutions about my problem but it seems nothing I've found actually works at the moment... When my form is validated, I want to send an automatic mail using SMTP. I have tried using both System.Web.Mail and System.Net.Mail :/ MailMessage message = new MailMessage();

Web Forms :: Register TagPrefix As Simple HTML Tag?
forums.asp.net
I am using my webcontrols widely in application, but I would like to know if it is possible to get rid of usage of <tagprefix:tagname id='' runat='server' /> construction and register control as HTML control instead. For instance: Control MySpecialButton. The usual way to use it is: <uc:MySpecialButton ID='msb1' runat='server' Property1='Custom property1' Property2='Custom property2' /> I would like to change its appearance in HTML as following: <MySpecialButton Property1='Custom property1' Property2='Custom property2'>. Just for it to look like very simple HTML tag.

Web Forms :: Why Simple HTML Select Element Has A Misplaced Focus
forums.asp.net
This was generated from my asp.net page. (ListBox was rendered as select element) I was able to isolate the focus problem from the ListBox to the following HTML. Just copy-paste the HTML bellow and open it in a browser window. The browser renders the Focus in a strange way. I have to solve it for one of our clients. If the Height is set to 185px the focus  doesn't work properly. I tried to play around with different heights. Btw, if the Height is set to 81px there's no problem with the Focus. But I have to have the height at least 170px. [code]...

Web Forms :: How To Restore A WebPartZone After Clicking The Close Arrow Link
forums.asp.net
 http://ondotnet.com/pub/a/dotnet/2005/05/23/webparts_1.html I followed the above tutorial creating 2 WebPartZones, and 2 web server controls onto the WebPartZones.There is an arrow icon in the top-right corner of the web server control on each WebPartsZone. Clicking on the arrow revealed 2 links: Minimize and Close.I clicked the Close link of the Web server control, a UserControl, on the second WebPartZone.  The WebPartZone2 and User Control then were removed from the web page.   When I opened the web site gain later, I still can not see the User Control and WebPartZone2.How can I restore the WebPartZone2 and User Control?  <ZoneTemplate> <uc1:DDS ID="DDS1" title="DDS Search" runat="server" />  </ZoneTemplate>

Web Forms :: How To Send Out Css HTML Mail
forums.asp.net
I need to send out css html mail, but not sure if all mail server support css format. Does anyone have experience sending out css emails?

Web Forms :: How To Send A Mail Using HTML Format
forums.asp.net
I need to send an email of the purchase details. so, I need to send a mail with HTML format. I have tried  and I am receiving only half of the message body. Is there any way to specify the size of the message or any thing wrong with my code. [Code]....

Web Forms :: Send Mail Through A Html Page?
forums.asp.net
I want to send mail through a html page. My html page contains a form having ur name,phone,address etc... I want this content to be sent to an email id. I used the following code. [Code].... Its working but the way the form content is being sent is not good. sending the mail (form content) in a nice customized way. I cannot use any technology besides pure html.

Web Forms :: A Link Target Doesnt Work?
forums.asp.net
i have a link and iframe wich his id is set to "iframe3" ... now in the link target i set the target to "iframe3" now it suppose to open it in the iframe3 , but instead it opens it in a new window ... this is the code :[Code]....

Web Forms :: How To Set Priority On Html Mail Insead Of Plain
forums.asp.net
I got a issue with sending mail. The mail itself is made with plain text & html, it goes away good and all. Now the problem is that some get it like plain some get it like html. Like I tried to send one to myself on hotmail, It looked great was the html, seconds later I open it on my phone the same email address and there was the plain one. Some get the plain when looking on a computer to.How can I set priority on the html text instead of the plain? or is there a way? Second I issue is that I can not send email to some mail's like any address with .pl in it. What could this possibly be? I should say that I do use my own winserver2008 and use the localhost smtp on it.

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

Web Forms :: Enter Key Makes Link Button Work?
forums.asp.net
I have a a link button on my page.   When someone hits the enter key on that page, I would like the link button to fire and event on the code behind page called lnkSearch_Clicked how is this possible?  It currently works great if click, but not when the enter key is pushed. I need to do this on multiple pages, so this is something I DO NOT know how to do off hand. simple ones?  again, mimic the click but with Enter Key only  <asp:LinkButton ID="lnkbtnSearch" runat="server" CssClass="lnkSearch" onclick="lnkbtnSearch_Click" Height="24px" Width="62px">

Web Forms :: How To Get The Full Path To The Directory
forums.asp.net
The path to the directory for the application is [URL] Can I get that with a Request or some other means?

Web Forms :: How To Get Full Path Of File From FileUpload
forums.asp.net
i am using this code to get full path file by file upload [Code].... it worked on localhost but on server the code return only file name how can i get full path of file

Web Forms :: PostedFile.FileName Not Returning Full Path?
forums.asp.net
i have a file upload control as below: <input id="txtLocalResource" style="width:100%" type="file" size="16" name="txtLocalResource" runat="server"> in my code when i look at txtLocalResource.PostedFile.FileName it returns only the filename, the rest of the path is missing? i am using ie8 and vs2010.

Web Forms :: Unable To Get Full Path Of Fileupload In Firefox
forums.asp.net
I am using a FileUpload  server control in my website.. I am retrieving the path of the File using  "FileUpload1.postedFile.FileName" In Internet Explorer I get the real path of the File.. "Eg: D:..est.txt" But In Firefox Iam not getting the Full path of the file .just the File name "Eg: test.txt" 

Web Forms :: Create Child Links For A Link?
forums.asp.net
I want to create child links for a link without using sitemap. For example: i have four links "Home" "About Us" "Contact Us" "Products". I generate these links from my sitemap. Here is my site map code: <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode> <siteMapNode url="default.aspx" title="Home"  description="" /> <siteMapNode url="aboutus.aspx" title="About Us"  description="" /> <siteMapNode url="contactus.aspx" title="Contact Us"  description="" /> <siteMapNode url="products.aspx" title="Products"  description="" /> </siteMapNode> </siteMap> I add two more pages test1.aspx and test2.aspx. Now I want: - These two links are children of "About Us". - When I click test1.apx or test2.aspx the "About Us" title will be highlighted. - I tried add child node to "<siteMapNode url="aboutus.aspx" title="About Us"  description="" />" and it work fine. However, my boss doesn't want me to use this one.

Web Forms :: How To Get Full Path Of File Or Image Selected From Desktop
forums.asp.net
I am trying to select one image file from desktop with file upload control. but i am not able to get the full path of the image if it is selected from desktop. i am getting full path if  the file is selected from any other place but its showing error for the desktop.

Web Forms :: Is Possible To Use The Mvc HTML Helpers
forums.asp.net
I have been using web forms and I have been let down by them. I hate the way it mangles my element id's and names. I want to have full control over my html and have the ability to have multiple forms on one page.  I do not use view state or post backs. All my server communication is done using JQuery ajax and sometimes page methods.  My pages do not make use of any runat=server controls other than occasionally using the repeater.  For now I have been using inline code like the following but I like the mvc html helpers. EXAMPLE: [Code].... At the moment, using the asp.net mvc framework is not an option but I would like to use the HTML helpers in my asp.net application. Is this possible to use the mvc html helpers or do I have to create my ow helpers?

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 :: How To Get Full Path Of Picture By File Upload In Client Machine
forums.asp.net
how can i get full path of picture by file upload in client machine

Web Forms :: Are Server.Htmlencode,Urlencode Useless Functions!
forums.asp.net
For protect against  XSS  we should make all input from textboxes thoht Server.Htmlencode function. 1) If i let a input go thorgh Server.Htmlencode and save it in database. But what happen if i letter show this input data from database on browerser ...if database input data have <script> it will then make Xss!!!!.  2) I use Server.Htmlencode.. and the user write <b>ss<b>...  (label.text = userinput.text;)  and i WANT to show ss in browser. What shuld i do for make this happen ?? 

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

Web Forms :: How To Generate HTML Code By Commands From The Code Behind Page
forums.asp.net
how to generate HTML code from the code behind? I would like to build a form that generate an html code inside a for loop. I will let the user enter the photo name and No. of photos Then I will generate an HTML code like this: <a href="http://www.mzinj.org/images/gallery/Photo%20(1).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(1).jpg" alt="" width="345" height="247" /> </a> <br /> <a href="http://www.mzinj.org/images/gallery/Photo%20(2).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(2).jpg" alt="" width="345" height="247" /> </a> <br /> <a href="http://www.mzinj.org/images/gallery/Photo%20(3).jpg" target="_blank"> <img src="http://www.mzinj.org/images/gallery/Photo%20(3).jpg" alt="" width="345" height="247" /> </a> <br /> depending on the No. of the photos the code will be duplicated in the loop Then I will display the result of the loop in label or in a textarea to let the user copy it any where The problem is that while compiling my code it considers the HTML code as a part of the behind file and gives errors on the single quote, the double quote and on the parentheses 

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

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" />..........

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?

Web Forms :: Change String To A Different String?
forums.asp.net
I'm trying to build a web page where the user can send the contents of the web page to someone of their choosing.  The email body is html scraped from the website.  I have it working, but the the problem is that the image src is relative  <img src="/images/filename.jpg"> and I need to make it absolute.  What function is the best for me to use on the string that contains my html to make file path absolute in the method I'm trying to create?  I tried the following, but am getting error "too many characters in character literal" reformattedContent.Replace('src="/images/', 'src="http://' + domain + '/images/');

Web Forms :: Doesn't Support The Format() Function?
forums.asp.net
var date1 = new Date(document.forms.a1.startDate.value); alert(date1.getDate() + '...' + date1.getDay() + '...' + date1.getMonth() + '...' + date1.getYear()); The startDate field has 10/18/2009 and the alert() gives 18...0...9...2009Why does getMonth() return 9 instead of 10??When I type in 101809 in the startDate field, how can I convert it to 10/18/2009?I google and see example of the format() function. I try date1.format('mm/dd/yyyy') but it gives error.It doesn't support the format() function.

Web Forms :: How To Replace URL
forums.asp.net
We have developed a web based application for data anlysis. we want to hide its working URL's with some custome url.e.g [URL]

Web Forms :: Use Database In Html?
forums.asp.net
i want to show the content of data into label...but i want to do this only in html page of asp.net how to use database for labels through html in asp.net.

How To Clear A Status Message On A Web Form When Starting A Process
stackoverflow.com
I have a web form used for importing data from a CSV file. It contains a result panel and a result label, which either show a success message or an error message after the import process. Let me say here I know the page should not be doing the import, but this is legacy code and the client expects only small changes. My problem is that the result message (label) retains it's previous content and visibility during the next import process, because clearing it during Page_Load or at the beginning of the import method only has effect when the import method is complete and thus the postback is complete. At the moment, the only solution I can see is to move the import code into a separate class (as it should be), call the import method asynchronously, clear the result message, and thne set then result message when the complete or error callback from the import process is called.

Web Forms :: How To Replace The Place Of "txtField1" / Error
forums.asp.net
origianal code as belows: (TextBox)repeater.Items[i].FindControl("txtField1")). Text now I already define a string (string newStr="txta") , how to replace the place of "txtField1" by this string newStr (TextBox)repeater.Items[i].FindControl(newStr)).Text <-- error How to fix it?

Web Forms :: Possible Rendering Bug In RadioButtonList With Null Value Listitem
forums.asp.net
I've got a radiobuttonlist with listitems (Not Sure=NULL, yes=1, no=0).  The ListItem for Not Sure has its Value="" which is actually NULL. The SelectedValue is databound to a column within the database. My radiobuttonlist is in a formview EditTemplate, but when the formview is bound to the datasource, the listitem with the NULL value is not rendered at all.  If the formview goes into the InsertTemplate mode, then the option is rendered, and binds correctly to the database on insert. I'm really scratching my head with this. I've viewed the source and the ListItem is definately not rendered! I tried to create a blank form with the RadioButtonList and added the same three options (although not in a formview and databound) and they are rendered. Whats going on?!? Have a look at the following markup: [Code]....

Web Forms :: Get Any String From View Source?
forums.asp.net
i need to convert currency into other country value( ie.  USD To INR) .  if I open  any site to get a value of  that perticular currency value.  Is it possible to get value from view source . if yes then How And Simply  i want to get  full string from view source  where 'UDS' string found. then How i can search a string from ViewSource(which we get  right click of mouse---- View Source) which belong to other site, i have only url that site.

Web Forms :: Radiobuttonlist - Insertion In Movement Table Done?
forums.asp.net
I have a radiobuttonlist which contains Movement and Backup I wanna do that when Movement is clicked in radiobuttonlist insertion in Movement table will be done and when Backup is clicked ,insertion in backup Table will be done I dnt know who do i code if movement { do insertion in movement } if Backup { do insertion in backup }

Web Forms :: Set Define Region Boxes In Mainpage?
forums.asp.net
I am trying to create a main page for my website. However I would like to incorporate different boxed regions on the front page like the main page of ASP.net (www.asp.net) . Where they have boxed regions for Welcome, News, Feature Ads, Latest Blogs, Articles of the Day, etc. 

Web Forms :: How To Show The Time Needed For A Page To Show
forums.asp.net
I wnat to evaluate the performance of my web page. How can I show the time comsued of a page?

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?

Web Forms :: Display Photo Using URL String?
forums.asp.net
I have a member site that allows the members to upload their photo to their page. In addition they have a public accessible .aspx page that I would like to have their photo displayed on. Using the www.mysite.com/webpage.aspx?MemberID=johnsmith method to call the photo associated with the memberID, how do I call the photo in my page? My member's photos are saved in a folder and NOT in a database. Each of the member's photos are automatically saved with a filename that is their "MemberID".png.

Web Forms :: Display Vowels In A Given String?
forums.asp.net
i want to display vowels and consonants in a given string. i have taken a txtbox and btn if the btn is pressed it has to show vowels and consonants separately.

Web Forms :: Display String Through Keyvalue Pair Using Object
forums.asp.net
<% if (this._arr_design.Count > 0) { %> <% foreach (Ameronix.Teeone.Models.Design obj_design in this._arr_design) { %> <tr> <td style="width: 254px; height: 27px;"><%= obj_design.name_design.ToString() %> <div class="thumbnails"> <% foreach (System.Collections.Generic.KeyValuePair<int, Ameronix.Teeone.Models.DesignSection> kvp in obj_design.arr_design_section) { %> <div class="thumbnail"><a href="/snapshots/processed/designs/<%= obj_design.id_design %>_<%= kvp.Value.id_design_section %>.jpg" rel="lightbox"><img src="../resources/get_image.aspx?src=/snapshots/processed/designs/<%= obj_design.id_design%>_<%= kvp.Value.id_design_section %>.jpg&width=50&height=50" /></a></div> C# Code................... This code is used to display the snapshots of processed images on the page, but the first images is displayed in the place of second one as well.Not able to sort it ..These images r stored in the SQL table.There is a repeat of image.

Web Forms :: Use Cookie's Parameter With Subkeys
forums.asp.net
I have a datasource with parameters for the SELECT clause and I want to use an asp:CookieParameter but my cookie has several subkeys. For example, the main cookie is named "teres_soft" and the subkey I want to use is "branch_code" so I get this value using a Request.Cookie("teres_soft")("branch_code"). I can easily set such a parameter if my cookie does not have any subkeys but, is it possible to use a cookie's subkey in the SELECT asp:CookieParameter?

Web Forms :: Browser System Info / Get Browser Operating System Name And Version
forums.asp.net
How to get browser operating system name and version in asp.net2.0 (c#)

Web Forms :: Regular Expression For Multiple Date Formats?
forums.asp.net
I am trying to get a regular expression to validate the following date formats ONLY: MM/DD/YY MM-DD-YY MM/DD/YYYY MM-DD-YYYY

Forms Data Controls :: Store DataList Item In Session Collection
forums.asp.net
I have a datalist with multiple Items. I want to be able to click a link in one of those datalist items. Upon clicking the link I need it to reference the datalist item in a session collection.

Store Form Data In Tables For User Session?
forums.asp.net
I am using Visual Studio 2008. I created a New Project ASP.NET Web Application. I created a Textbox named VisitorName.  The visitor puts in their name and it goes in VisitorName.Text There is a Label that says "Which do you own?" There is a RadioButtonList.  It has Cat, Dog and None. There is a button that says Add to list. The button needs to add the results of the above items and put them in the list. Now you keep adding people and their pets. Once there are all entered you press send and I get the results for everyone entered during that session via email. I have no database access and the information does not need to be stored in such a way. I would like to use a datatable or datalist or something to that sort. Oh and I would like the visitor to be able to click on a name in the table and edit the data using the form controls not in the datalist or datatable itself.