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:755322
More Search Options
RSS Available
Matching Posts
Re: Regular Expressions - Quote system
Thank you for your reply. Could you please show me a complete code of your solution? I gave it a try (or two), but I'm afraid I've failed every single time. Also, the script just woun't read the multiple (nested) BBCode commands as it's supposed to do! E.g: I want it to work with this kind of BBCode: [ quote=mira ] [ quote=john ]I like oranges[ /quote ] Why do you like oranges? [ /quote ] Becaus they taste good!
Posted to
Getting Started
(Forum)
by
Sirsiljas
on 8/3/2008
Regular Expressions - Quote system
Hello friends The thing I want to do is that to be able to wite [q=username]text[/q] in my textfield, and when it's been shown as a post in my thread in a "quote" box. I am currently using this code: try { Regex regexObj = new Regex ( @"\[q=([\w\W]*?)\]([\w\W]*?)\[/q\]" , RegexOptions .Singleline | RegexOptions .IgnoreCase | RegexOptions .IgnorePatternWhitespace); Match matchResults = regexObj.Match(input); while (matchResults.Success) { for ( int i = 1; i < matchResults
Posted to
Getting Started
(Forum)
by
Sirsiljas
on 7/28/2008
Filed under: quote, Radegular Expressions, for, group, match collection, while, argumentexception
Re: Change paging link in a gridview
Thanks for your help friend!
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 6/20/2008
Re: Change paging link in a gridview
Thank you for your answer Samu Zhang. I am new to ASP.NET, so can you please explain how getData() works? It's supposed to return a List<string> , but what is the type of List ? I mean, is it a namespace of some kind? Also, below the GridView, you've added a HyperLink that links to page=1 , am I supposed to create a loop that prints out the amount of navigationlinks needed? I mean something like this: for(int i = 1; i <= List<string>.length() ; i++) { Response.Write("thread
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 6/18/2008
Change paging link in a gridview
Hello friends Is is possible to change the URLs of the paging buttons in a GridView or do I have to create a custom paging? If that so, where can I find a tutorial for a custom paging script with MySql? The links looks like this http://www.site.com?page.aspx?id=28 , but i want to make them look like this instead: http://www.site.com/page/28.aspx . I am using Url Rewrite, but when it comes to the paging, the Url Rewrite doesn't work any more, the links changes directly from page/28.aspx style
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 6/16/2008
Re: Paging, PostBack and URLrewrite
Problem #1 is solved. I've added the OnPageIndexChanging="GridViewListForums_PageIndexChanging" to the GridView and the method looks like this protected void GridViewListForums_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridViewListForums.PageIndex = e.NewPageIndex; GridViewListForums.DataBind(); } But problem #2 still exists.
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 6/10/2008
Paging, PostBack and URLrewrite
Hello friends I am using URLrewrite on my small project. Instead of using these links (site.com/forum.aspx?forumID=2), I'm currently using this type instead (site.com/forum/2.aspx) and it works great! The thing is that I've got a gridview that lists some data from my database, and I do allow paging. The thing is that the paging doesn't work when I try to navigate to eg page 2 or 3, I get this error message: [HttpException (0x80004005): GridView GridViewListForums utlöste händelsen PageIndexChanging
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 6/10/2008
Filed under: paging, postback, URL Rewriting
Re: GridView: connect two tables
Thank you so much for your help. It worked.
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 5/30/2008
Re: GridView: connect two tables
Thanks for the response guys, but i only got your solution to work, limno. How can i make this one work: table: members id - name - account - country 1 - john - 3 - 2 table: accounts id - name 1 - admin 2 - moderator table: countries id - name 1 - Sweden 2 - Norway How can I make this work? Connect 3 to accounts and 2 to countries ? I don't think it workes with inner join anymore, am I wrong?
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 5/30/2008
GridView: connect two tables
Hello firends I am currently using a GridView to display some data from my MySql database, and it works just fine. The output is something like this: table: members userid - name - account 1 john 2 The thing is that i want to get the name of the account from an other table and print it out as well. That means, instead of displaying 2 , i want to display Moderator . table: account accountid - name 1 admin 2 moderator How can I do this? Is there som command in the GridView "Edit columns"
Posted to
Data Presentation Controls
(Forum)
by
Sirsiljas
on 5/30/2008
Filed under: two tabled, GridView, column
Page 1 of 2 (17 items) 1
2
Next >
ASP.NET:
PDC09: ASP.NET MVC 2: Ninjas Still on Fire Black Belt Tips
ASP.NET:
Hanselminutes Podcast 188: ASP.NET MVC 2 Beta with Phil Haack
ASP.NET:
Hanselminutes Podcast 186: .NET Debugging 101 with Tess Ferrandez
TechNet Edge:
WinRE and free stuff with Sean Kearney
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
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online