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 ArticleFindByText 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 ArticleRequest 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 ArticleSearch 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 ArticleUpdate 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 ArticleUsing 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 ArticleWeb 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 ArticleSiteMapDatasource usage
Hi, I want to know the usage of SiteMapDatasource and its implementations for TreeView and in Navigations Menusthanks
View Articleuse 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 ArticleHow 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 ArticleDatabind
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 Articlewhy 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 ArticleASP.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 ArticleUser 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 Articlepass 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 ArticleValidation 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 ArticleOpen 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 Articlehow 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 ArticleDisplay 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 ArticleDelete 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