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...
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...
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
...
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...
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...
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("~...
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?
...
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...
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...
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.
...
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 ...
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...
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...
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...
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!!
...
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?
...
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...
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...
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 (...