Quantcast
Channel: Web Forms
Browsing all 23244 articles
Browse latest View live

How to use a variable or property in a usercontrol from the parent page

Hi,i have a default .aspx page with some user controls on it. I want to initialize some variabales on page initialization. When my usercontrols are getting loaded, i want that they get the value of the...

View Article


FindByText in Dropdown list not Working

This is my Code and any ideas would be appreciatedif ((objRdr["RSurvey4"] != DBNull.Value))            {               string  VarRSurvey4  = (string)objRdr["RSurvey4"].ToString();...

View Article


Request Query String

Hii use:http://site.com/newsPreview.aspx?newsCode=760<meta property="og:image" content="http://site.com/webSite/images/news/760/1_thumb.jpg"/><meta property="og:image"...

View Article

Search Results are NULL then return a Customer Message

I need help with a search on my site. If the user provides a value (in TextBox5) and presses search, then value is passed into a Stored Proc and the results are displayed in a GridView. Everything...

View Article

Update a List of class objects using Lambda Expression

Hi,I have a Generic List which contains a class object named "Product".Product has the following  fields" ProductID, Model , Code, Price, Um  and Details".I am passing the Product object from the view...

View Article


Using Fancybox/Lightbox to show images from image path in sql

I found many tutorials about how to integrate fancybox/lightbox gallery in my asp.net website, but none of them showed me how to display images with fancybox/lightbox from image path that i have put in...

View Article

Web Application Security using TreeView structure

Hi,I'm new to ASP.net and want to ask a question. Pardon me if its the basic one as I'm new to ASP.net development. I'm in process of building a web application. I want to build the menue in a treeview...

View Article

SiteMapDatasource usage

Hi, I want to know the usage of SiteMapDatasource  and its implementations for TreeView and in Navigations Menusthanks

View Article


use an image for hotspots at image map

hi, I want to create an image map whitch it's hotspot will generate dynamically from code behind like bellow:DataSet1.mapDataTable dt = new DataSet1.mapDataTable(); mapTableAdapter ta = new...

View Article


How to tell exact Row Height / Line Height of ListBox

Hi,Please does any one know how to tell the exact Row Height / Line Height that is being used in a standard ListBox control at any one time?Also, is it possible to discover this programmatically? This...

View Article

Databind

Can one do something like this to bind data of a form once a button is clicked:protected void Page_Load(object sender, EventArgs e)    {        Page.DataBind(Page.FindControl(RegistrationButton_Click)...

View Article

why use page.isvalid?

I have a website with validator controls.  They seem to do the job of validating when the user clicks the SUBMIT button.  So why have the Page.validate method and the " if page.isvalid then" statements...

View Article

ASP.NET URL ROUTING

HI, How can i create asp.net routing to work like if i have web site domain  www.mydomain.com  then when user want to see  product detailsthen he can write www.mydomain.com/productname.at same time if...

View Article


User Profile-Pic in file-system, C#.

Project: I am trying to make a small website for my school buddies where they can store basic info about them. Have implemented Scott Mitchell's method so far.Problem : I want to let user store a...

View Article

pass value in hidden field

<asp:HiddenField ID="txt_atleta_patrocionar" runat="server" ViewStateMode="Enabled" Value='<%#Eval("Nome") %>' /> hidden field is outside repeater <asp:Label ID="Label1" runat="server"...

View Article


Validation of Anti-XSRF token failed.

Can someone explain what this error means? It came in the web project template that I am using from Visual Studio 2012. Do I need to keep it? It's in the Site Master page.Validation of Anti-XSRF token...

View Article

Open new window from Dynamic created Hyperlink

Help me to solve the issue.I have create a hyperlink in C# codebehind.HyperLink linkMaterialStatus = new HyperLink();When user clicks the hyperlink instead of navigating in the same screen I need to...

View Article


how to Rewrite url again

hii have many link below like :<a href="Default.aspx?id=1" >link1</a><a href="Default.aspx?id=2" >link2</a>i want show below like...

View Article

Image may be NSFW.
Clik here to view.

Display daily event

Hi, I have a table Events which has fields EventName and EventDateTime. I want to display daily time event on a listview or gridview or anything that looks like this:DATE:                  TIME:June...

View Article

Delete rows from a dynamically created GridView

Hello I have the next code (which is creating a dynamically GridView from TextBox values)using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using...

View Article
Browsing all 23244 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>