Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:809288
More Search Options
RSS Available
Matching Posts
Re: passing value from grid(usercontrol) to the page
Is that the boundfield called the providername? if so, alter your usercontrol script a bit: obc.Attributes.Add("onmouseup", "javascript:document.getElementById('ctl00$ContentPlaceHolder1$Textbox1').value='" + obc.Text + " " + row.Cells(1).Text + "';$find('ModalBehaviour').hide(); ")
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/25/2009
Re: validation of view state mac failed
try to put ClientTarget =" uplevel " into the page heading (i.e. in thais tag: <%@ Page Language="VB" ClientTarget =" uplevel" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="Untitled Page" %> and see if it helps. It will probably also crash on Google Chrome if it doesnt' work in safari cheers, alexi
Posted to
State Management
(Forum)
by
alexey_kay
on 6/25/2009
Re: Repeater doesn't update after I make corresponding changes to a record until I refresh the page
in your code file you need to specify nameofyourepeatercontro.DataBind() after your edit function, and it should solve your problem cheers, alexi
Posted to
Data Presentation Controls
(Forum)
by
alexey_kay
on 6/25/2009
Re: passing value from grid(usercontrol) to the page
Hey, Sorry for the delay, had to play around with your code a bit, here's what you do: first, in your user control add a rowdatabond event script to your gridview: Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound For Each row As GridViewRow In GridView1.Rows If row.RowType = DataControlRowType.DataRow Then Dim obc As LinkButton = CType(row.FindControl("LinkButton1"), LinkButton) obc
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/24/2009
Re: passing value from grid(usercontrol) to the page
Hey, I think I just realized what the problem might be, your textbox1's html id is different because you have a master page. Could you please look at the html rendered by default.aspx and then find the id of the textbox? it would be something like ctl00$ContentPlaceHolder1$Texbox1 ? if so, then change the code from obc.Attributes.Add("onmouseup", "javascript:document.getElementById('TextBox1').value='" + obc.Text + "';$find('ModalBehaviour').hide
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/24/2009
Re: passing value from grid(usercontrol) to the page
My bad, I misspelled it, try changing 'ctl00$ContentPlaceHolder1$Texbox1' to 'ctl00$ContentPlaceHolder1$Textbox1' if it doesn't work, cut and paste here the source code of your rendered html page cheers, alexi
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/24/2009
Re: passing value from grid(usercontrol) to the page
Hey, not sure why it's not working, I'll post you my full code for the four files. I have a different sql datasource to match one I have, so adjust that and the bound datafields: This is WebUserControl.ascx: <%@ Control Language="VB" AutoEventWireup="false" CodeFile="WebUserControl.ascx.vb" Inherits="WebUserControl" %> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/24/2009
Re: passing value from grid(usercontrol) to the page
With session you'd need a postback (unless you're using aynch postbacks which will complicate things a lot more), i'm assuming with a modal popup you'd want it to be moved without the postback? If so javascript is the way.
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/23/2009
Re: passing value from grid(usercontrol) to the page
Show me your code for the usercontrol and the textbox you want to bind it to and I'll show you, cheers, Alexi
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/23/2009
Re: passing value from grid(usercontrol) to the page
sounds like you need some javascript. you'd have to figure out html renrdered ids of your usercontrol controls (extboxes?) and then have the values of those controls linked up to a textbox in your page. Let me know if this makes sense, Alexi
Posted to
ASP.NET AJAX UI
(Forum)
by
alexey_kay
on 6/22/2009
Page 1 of 10 (96 items) 1
2
3
4
5
Next >
...
Last »
ASP.NET:
ASP.NET MVC 2 and Visual Studio 2010
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part II
Silverlight:
HVP – Core Scaffolding and Updated News
Channel 9:
TWC9: 2009 - The Year in Review
ASP.NET:
Tip#100: Did you know… How to view ASP.NET trace information?
ASP.NET:
Passing anonymous objects to MVC views and accessing them using dynamic
Channel 9:
Channel 9 Live at PDC09: Coding 4 Fun
Channel 9:
Channel 9 Live at PDC09: Stephen Toub
WindowsClient:
Mouse Gestures for Internet Explorer
Channel 9:
Controlling concurrency in Rx
Channel 9:
Dev Tools Ecosystem Summit Videos Available
WindowsClient:
Using Cerebrata's Cloud Storage Studio To Download IIS logs from Multiple Instances of Windows Azure
TechNet Edge:
TechNet Radio: Office 2007 Setup and Configuration (Part 1)
Channel 10:
How-To: Listen to Your Zune Pass Music on Your WinMo Phone
Channel 10:
Share Your Screen with SharedView
Channel 10:
Get Microsoft Tinker Game For Free
Channel 10:
LG eXpo WinMo 6.5 Unboxing Video
Channel 9:
ADFS 2.0 RC is Here!
Channel 10:
Bing Reference Updated with New Sidebar Features
Channel 10:
Look Behind SurfaceScapes
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online