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:319989
More Search Options
RSS Available
Matching Posts
Re: Url Encoding DataNavigateUrlFormatString Parameters
Thanks for your reply. Unfortunately, I still can't get the following to work: Try to change your as the following. <asp:HyperLinkField DataNavigateUrlFields="busID,busName" DataTextField="busName" DataNavigateUrlFormatString="business.aspx?busID={0}&busName="+HttpUtility.UrlEncode('<%# Container.DataItem("busName") %>') /> I think the reason is because of the quote after busName=" . The " effectively closes the DataVavigateUrlFormatString
Posted to
Web Forms
(Forum)
by
km5624
on 10/19/2006
Re: FormView1.DataItem.. in C# vs VB
Rexlin, Thank you very much. That worked. What I don't understand though is why do I have to add (DataRowView) in c# but not VB? I thought C# was supposed to be a tighter language, but what I seem to be noticing is that I am having to add a lot of code in places where VB makes it not necessary. Anyway, can you give me an explanation of why I'm adding DataRowView here? ((DataRowView) FormView1.DataItem ).Row["aa"].ToString(); Thanks a lot for your help!
Posted to
Data Presentation Controls
(Forum)
by
km5624
on 10/18/2006
Re: FormView1.DataItem.. in C# vs VB
No it doesnt work. This is what I get when I try. Compiler Error Message: CS0021: Cannot apply indexing with [] to an expression of type 'object' Source Error: Line 46: Line 47: FormView1.DataBind(); Line 48: _businessName = FormView1.DataItem["busName"].ToString(); Line 49: Line 50: }
Posted to
Data Presentation Controls
(Forum)
by
km5624
on 10/17/2006
Re: Url Encoding DataNavigateUrlFormatString Parameters
I don't understand how to try that. How would I try your reply in the following code below from my aspx page: <asp:HyperLinkField DataNavigateUrlFields="busID,busName" DataTextField="busName" DataNavigateUrlFormatString="business.aspx?busID={0}&busName={1}" /> I want the busName{1} to be urlEncoded. I can't figure how where/how to place your reply code in my example above. Thanks
Posted to
Web Forms
(Forum)
by
km5624
on 10/17/2006
Url Encoding DataNavigateUrlFormatString Parameters
Hi, I am using a hyperlink in a Gridview I need to UrlEncode the 2nd parameter in the url below in the hyperlink (name= {1}). DataNavigateUrlFormatString= "bus.aspx?ID={0}&name={1}" Currently there are spaces and other characters that get eval'd so my urls might look something like this: bus.asp?id=8&name=fred flintstone when it should look like this bus.asp?id=8&name=fred+flintstone Does anyone know how to do this? Thanks
Posted to
Web Forms
(Forum)
by
km5624
on 10/13/2006
FormView1.DataItem.. in C# vs VB
In VB I can set _businessName with this statement and it works fine. FormView1.DataBind() _businessName = FormView1.DataItem("busName").ToString() However, when I try to do the same thing in C#, I can't get the code to work. Does anyone know how to get the above code to work in c#? Thanks
Posted to
Data Presentation Controls
(Forum)
by
km5624
on 10/13/2006
Setting ViewState Values in a MasterPage Code File or in a Class
Hi, I have no problem setting a ViewState value Inline or using an aspx codebehind page. For Example: Using Codebehind: (Works Fine) Protected Sub Page_PreRender( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .PreRender ViewState.Add("testMe", "PreRenderTest") End Sub Using InLine: <% ViewState.Add("testMe", "InLineTest") %> However, if I try to Add a Value to ViewState from my MasterPage Codebind File or From a Class, the ViewState is not Changed. Does anyone know why? How
Posted to
State Management
(Forum)
by
km5624
on 7/11/2006
Re: "visual web developer does not support creating web sites on a Sharepoint Web Server"
Yes, after creating the sites in IIS I can then open them in VS2005. I know it's a pain to not be able to simply use VS2005 to do it via http, but for now, thats what works for me.
Posted to
Visual Studio 2005
(Forum)
by
km5624
on 12/7/2005
Re: "visual web developer does not support creating web sites on a Sharepoint Web Server"
Okay, here is the bottom line on this bug (for me anyway) If you are having the same problem: 1) Use the Frontpage Server Extensions 2002 so that you can use Frontpage 2003 like normal and not run into the huge number of error messages you will get if you don't use the 2002 version. 2)In VS2005, don't create web sites in VS2005 via HTTP. Create them in IIS instead. Unless something else pops up or there is a bug fix, that's seems to me to be the best way for the two apps to live together as of Dec
Posted to
Visual Studio 2005
(Forum)
by
km5624
on 12/2/2005
Re: "visual web developer does not support creating web sites on a Sharepoint Web Server"
Yep, just as I suspected. I reinstalled the FPS's 2002 and then I can open up sites with FP2003, but I can no longer get VS2005 to create sites via HTTP. Also, after installing FPSE2002, i searched for and found "owssvr.dll" on my machine. So, it looks like VS2005 doesn't like the latest update of the Frontpage Server Extensions that are posted on Microsoft's site. The reason I need both FP2003 and VS2005 is that I have sites made in both FP & VS and also clients sites made in FP2003 and VS2003
Posted to
Visual Studio 2005
(Forum)
by
km5624
on 12/2/2005
Page 1 of 3 (21 items) 1
2
3
Next >
WindowsClient:
XslCompiledTransform and large template elements
WindowsClient:
The Future of Client App Dev : WPF and Silverlight Convergence
Channel 9:
PDC09 GeekFest Party
Channel 10:
How to Use "Play to" and "Remote Media Streaming" in Windows 7
Channel 9:
The Visual Studio Documentary: Jeff Hadfield Full Length Interview
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 9:
The Access Show: Managing Access Databases with SharePoint
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online