I had a dropshadow extender attached to a gridview. I was getting an error: Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element So I removed the extender and I have a break point on: If Not Page.IsPostBack Then And it never stops there anymore. Page comes up though. I have restarted VS and rebooted. The app consists of a WebSite and WCF.
I have a custom user control which contains a asp hiddenfield object. The value of this hidden field is being set using javascript and I have verified that the value is being set properly. When a postback occurs the new value is not being saved and I cannot access it in my code.
I believe the problem is because the user control is not saved in viewstate and therefore the hidden field value is not saved accross postback. How can I make the hidden field save its value? I tried accessing it from the early page cycles and still no luck.
I have a requirement where I have a webpart and two ImageButtons(imgGV, imgLV) and a hidden input textbox('ctl00$MainHeaderContent$txtType') in an aspx page. I need to change templates to this Webpart either to show results in "Grid View" or as "List View" on the click of this ImageButtons. I added code in the page_load of .aspx page as
When I am clicking the specific ImageButton, it has to write into hidden field either "GV" or "LV". In the webpart CreateChildControls I assign templates based on the text in Hidden field either "GV" (Grid Template) else "LV" (List Template). In the CreateChildControls of Webpart for the template change, I am getting the Hidden value as empty. I am using coding as
HtmlInputHidden t = new HtmlInputHidden(); t = (HtmlInputHidden)this.Page.FindControl("ctl00$MainHeaderContent$txtType"); if (t.Value=="GV") { assign one template} else { another template}.
I am getting t.Value="". Question is: Is it like if we add some text in a hidden textbox using the Javascript function in an aspx page, the same textbox value in the same aspx page but in the Webpart class in the CreateChildControls method using the code as this(webpart).page.FindControl("Textbox").text is showing empty. So the text added using Javascript into Textbox is it not available in the code behind code using "Text" property of the same Textbox?.
i have vs 2k8 and vs 2010 beta 2 running side by side on a machine. i went to install mvc rc 2 today, and it errored saying the mvc was already installed.i went and looked at the release notes, and lo and behold, it says you can't install it if 2010 is installed.
I'm unable to find the Assembly info for a app created in VS 2010. I right click on the solution, click properties and then it allows me to select the Configuration Manager...but I don't see a tab for the assembly info
I'm having problems getting my label to update, it is a asp:label known as LabelFMI - what I am doing is when the user changes the value of certain things update it by either taking away or adding the difference. I've managed to get this to work by having to refresh the page and moving it to out of the function I made for it and into default.aspx's Page_load sub.. However I was hoping to not have to refresh to have it update? is there anyway to achieve this?
Code: Private Sub UpdateLabels(ByVal start As Date, ByVal [end] As Date, ByVal value As Double) 'Import the data for the table Dim da As New SqlDataAdapter("SELECT * FROM [event] WHERE NOT (([eventend] <= @start) OR ([eventstart] >= @end))", ConfigurationManager.ConnectionStrings("daypilot").ConnectionString) da.SelectCommand.Parameters.AddWithValue("start", start)
I am having some problems with my DIV, it wont display over a a DIV that has a web user control in it. Below you can find my css. I believe I have done everything right and am hoping that someone can maybe see an error that I have made and help me out. If you need any other code let me know. I also wonder if its just IE rendering it wrong?
Recently I've upgraded from Visual Studio 2008 to Visual Studio 2010, however I'm having various problems when uploading my compiled web site to the live area. I'm doing exactly the same as I would have done with Visual Studio 2008, however, now I receive errors such as:
{filename}.aspx is not a pre-compiled file masterpage.master does not exist
All these errors don't make sense. Has anyone encountered these problems before, and was a solution ever found?
When I open files, particularly files with many links and/or images, vwd get stalled every few seconds as, according to the status bar, it's "getting file xxx from the web".
I have an ASP.net security database which is normally ASPNetDB.MDF however I have created the same database structure in MS Access. All works great. However, I need to add a couple of other tables but I can't find how to do that in VWD. I'm pretty sure I was able to when the first database I created was an MDF file but not in MS Access.
how am I be able to assign a value to my hidden field control? I have this web service that returns member's ID and name (e.g. 0001-John dela Vega). In order for me to search for a member, I'm using an autocomplete extender, now, if in case that I found the member I'd like to assign its member id to a hidden field. I ask this because I'd like to change the way my web service return data so instead of displaying the member's id and name at the same, I'll just show its member name.
I have a label with a dropdownextender, and below it I have a gridview. When it drops down, it should go on top the gridview , but instead half of it is hidden because it goes behind the gridview. how can that be taken care of?
i am using <input type="hidden" id="hiddenValue" name="hiddenValue" runat="server">
hidden control in my asp.net, and setting it value when page load, and when i clicked on a button then my server side code change hidden control value, and when i tried to access it value after another clicking of button then it showing me
first time value,
so why hidden control does not reset its value, how can i reset the hidden control value?
My Code
Page_Load(){ if(!Page.IspostBack){ hiddenValue.Value ="ABC"; } } ButtoClick1(){ hiddenValue.Value ="BAD"; } ButtoClick2(){ // it give me 'ABC' value, instead of 'BAD' string s = hiddenValue.Value; }
My Tab Container works fine on my development machine. But it doesn't show up my production machine. On closer inspection, the Production machine renders it as hidden. Any thoughts on why this would happen?
So I have my login and password txtboxes in the master page header, When I click on login button it should hide those boxes and display something else.But everytime I navigate to another content page they get visible again. What it the best solution to keep them hidden while the user is logged in?
I downloaded and installed AJAX Control Toolkit, following this link
http://www.asp.net/ajaxlibrary/act.ashx.
The tab doesn't show on the Toolbox. I right clicked at the Toolbox and select Show All. The tab and the controls shows up but all controls are gray out, look like disable. How can I make enable?
but when the page is rendered TabPanel is always Hidden,I wateched the html code by Firebug and found visibility is hidden... what is the problem? http://i.imgur.com/m1eSW.jpg
I upgraded to VWD Express 2010 and cannot edit text in the design view only the source view. Clicking on the design view takes to the code behind page.
If I create a test page without masterpages I can work in design view.