asp.net

Linq to Sql convert to generic list in VB.NET

Hello everybody. I am trying to learn some VB.NET for my coo-op that starts next week, and for that reason i took my portfolio web site that is on C# and just started to converting it to VB.NET to get familiar with the syntax. I am sure my problem is simple however i have a hard time solving it. I am trying to grab data with the linq qu...

process.existed() not getting fired

Hi can some body help me how to call process.existed() method in c#? Actually i registered that method in page load it self only but it is not getting fired may i know the reason? myprocess.Exited += new EventHandler(myprocess_Exited); void myprocess_Exited(object sender, EventArgs e) { lblmsg.Visible = true; lblms...

Required Field Validator for gridview Column

I have a gridview with a textbox template field and I have a required field validator for that textbox. The gridview contains 15 rows, with just the first enabled and the rest are not enabled . How can I make the validation appear when the save button is clicked, just on the enabled row and not for all rows? Thanks ...

Making a static ASP.NET site which has 100+ pages.

I am converting an old html based website to ASP.NET, so that we can include more features like AJAX, Databases later on to the site. Currently my task is to create a new .aspx page for each older html page. To keep the layout persistent i have made a master page. So currently i am building a content page from the master page, then rena...

ASP.NET MVC SEO URL

My goal is to have the url routing as following: http://www.abc.com/this-is-peter-page http://www.abc.com/this-is-john-page What is the simplest way to achieve this without placing controller name an function name in the url above? If page above not found, I should redirect to 404 page. Addon 1: this-is-peter-page and this-is-john-p...

Refresh problem when treeview node changed

I have a Treeview in a masterpage and a products page in child page. When i click treeview node i want to bind data to a gridview on the product page. protected void trvCategoryTab_SelectedNodeChanged(object sender, EventArgs e) { if (trvCategoryTab.SelectedNode.Value != string.Empty) { Response.Redirect("~...

No applications available to install on Web Platform Installer on Vista x64

When I use the Web Platform installer on Vista x64 Business it doesn't list any of the applications (such as DotNetNuke or SubText). Has anyone got it to work on Vista 64? ...

asp.net mvc exceptions tracing

Hi, I am trying to send an exception caught in Controller to trace.axd page, but I cant seem to figure it out. I have <trace enabled="true" localOnly="false" mostRecent="true" pageOutput="false" /> in web.config, and my inteded reaction to an exception is catch (Exception e) { ViewData["error"] += "Is not number!"; Trace.Trac...

asp.net development server + FF issue. IE OK

Guys, I've came across this problem I can't resolve myselg, I'm pretty sure I miss something pretty obvious, but that's usually how it is. I'm developing my asp.net webapp in VS2008, XP SP3. When I want to debug, the asp.net starts the development server and the default browser associated with the vs2008 opens up and loads the page. In...

Can i 'hold' POST data in ASP.NET, so i can verify with Captcha?

I have a complex page with maybe a dozen POST element and a file upload (non ajax ATM). I have a form with a description, if it causes akismet to find it as spam i would like the user to be informed and either hit back on their browser to try again or to hold call POST data so the user can fill in a reCaptcha to bypass the spam marking. ...

"Invalid token ',' in class, struct, or interface" after checkout

...

In an ASP control how can I get the text in a <Contentemplate> tag in the control code?

Hi, In my page ASP.net page I'm using a custom control like this: <MyNamespace:MyControl runat="server" ID="myControl"> <contenttemplate> This is the text I want to use </contenttemplate> </MyNamespace:MyControl> In the c# code of the control how can I obtain a string containing the text between the <contentemplate> tag (eg. "This is ...

Javascript scope with asp.net

Hi there, I'm probably missing out on something fundamental here but it seems rather tricky and confusing to me so here goes... to demonstrate the issue I have the following example .aspx page <%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional...

How do i save POST and GET data into a session and pull it up with ASP.NET C#?

From what i understand session cookies are serverside and not transmitted to the user at all. This means it is safe from tampering (from outside of the server)? Anyways, from what i can tell POST data is stored in HttpContext.Current.Request.Form. How do i get GET data? right now i am doing this HttpContext.Current.Session...

How to set styles from database runtime?

Hi all! I'm having hard time finding a nice and clear solution on how to create a web page that loads it's style attributes from a database f.ex. button back- and forecolor, font size etc.to a Session object and from there would set them on each page to needed controls. I have a loader in the Global.asax -> Session_Start which loads t...

I have a asp.net c# project, what is the difference between <%=myfunction(); %> & <%# myfunction() %>?

protected string myfunction() { return "abc"; } In on of my page, I can show the "abc" in the webpage by using <%# myfunction() %>. But In other page, It doesn't work, but work by using <%=myfunction(); %>. Why and what is the different? Thanks a lot!! ...

Get value from session or request?

currently i have code that does var req = HttpContext.Current.Request; if(!isNull(req["title"], req["desc"], req["tags"])) { doSomthing();} on certain cases i move title into session data then redirect the page or do whatever i need. Now this does not work. Is there something i can use to pull data from either request or session? ...

Saxon in ASP.Net website

Hi, I want to use the Saxon-B XQuery class in my ASP.Net website. But my hosting-provider supports only applications in Medium trust level. Does someone know if it's possible to use Saxon-B and IKVM.Net in a medium trust level environment? Or is there a good alternative XQuery engine for a ASP.Net application in a medium trust level e...

Jquery Ajax to [WebMethod]

Hi all, I'm posting the following to an asp.net [Webmethod] using jquery via the $.ajax method. I've trapped the data being sent over the wire. {number:01502,numberTypeId:2,companyId:531} I've break pointed inside the [Webmethod] and the number is being returned as 1502 even though the parameter type is string, I'm guessing this has s...

How should I validate a user's credentials against an ADAM instance over SSL?

Apologies in advance as I haven't had much experience with directories before. I have an ASP.net application, and I have to validate its users against an Active Directory Application Mode instance running on Server 2k3. I was previously attempting a connection with DirectoryEntry and catching the COMException if the user's credentials (...