When setting up a virtual directory under IIS using a UNC path to a remote share, what user identity should I be expecting to see the read request to the share come under?
I've setup the above scenario and configured the user under 'Connect As' as a known user who has permissions on the remote share, which I checked with Windows Explore...
Using ActiveRecord in asp.net is it possible to select columns from two or more tables together to show information in grid as a single record? For example if I have two models (1) product model contains ID, ProductName, Price properties and (2) order model contains OrderID, ProductID, Quantity. I need to retrieve data(load) from both m...
Let's say I have a Project table with a FK CompanyId which relates the project to a company Table.
In your Project model, do you add a Company object, or just the CompanyId property and retrieve the Company when needed in code?
...
Hi everyone!
I have the following situation... In a certain View, the user must select the initial hour, the final hour and the weekday. But, I can't save this informations to DB 'cause I need to save my whole page and I need the primary key of the primary table, but that's not the point.
So, while I don't save these data to DB, I'm sa...
In ASP.Net is there a way to dynamically set a control adapter? The standard way to apply a contol adapter is via the ".browser" files. However, I have a situation where I would like to use the control adapter in some circumstances, but not in others - and i can not find a way to achieve this.
Any help appreciated.
...
In PageLoad event of the form, I can not reference server side control within logged in template. What am I missing. So when I am logged in I will show text box control otherwise I will show text like "please login to do soso.."
Please help ..
...
I have a ASP.NET page with a FormView control. When the FormView is bound I'd also like to set the Text property of a Label control that is outside the FormView.
What is the best way to do this? I thought about using the DataBinding or DataBound event of the FormView but the EventArgs parameter provided does not seem to give me access...
As I create user using built in asp.net sql tables and login controls, I would like to get to userid. How do I do that? Google is returning whole bunch of information but no where I could find an easy example to get UserID.
If user does exist, then I should get a userid, which I could store in my own custom tables for further user pers...
hello,
When page is to be posted back to the server, browser collects the current values of each control and pastes it together into a string. This postback data is then sent back to the server via HTTP POST.
Q1 - Besides control’s Text attributes and SelectedIndexchanged ( thus besides user input data), are there other attributes/valu...
I want to send emails in HTML format. How can I use asp.net to generate HTML content for emails.
Using output of .aspx page(Tried there was nothing in email body. Must be something in page that can't be used for email)
Using Webcontrol and get web control output and use it as email body.
Using custom http handler so can call handler to...
Ok, I downloaded the WestWind Ajax Controls, and I added this to my web.config:
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="wwScriptCompressionModule" type="Westwind.Web.Controls.wwScriptCompr...
Hello,
Q1 - In the code example below runtime converts a value between two
incompatible types:
<SelectParameters>
<asp:Parameter Name="City" Type="Int32" />
</SelectParameters>
protected void SqlDataSource2_Selecting(object sender,
SqlDataSourceSelectingEventArgs e)
{e.Command.Parameters["@City"].Value = "100";}
Except...
I need to pass 2 parameters in a query string but would like them to appear as a single parameter to the user. At a low level, how can I concatinate these two values and then later separate them? Both values are Base64 encoded.
?Name=abcyxz
where both abc and xyz are separate Base64 encoded strings.
...
I would like to be able to have a version number appended to a css file located in my app_themes folder in my asp.net website so that modification to the file would force the browser to get the file from the server instead of using the one in the cache.
the css output path would look like ~/app_themes/blue/blue.css?v=1234
Any idea how...
hello,
<asp:SqlDataSource ID="sourceEmployees" runat="server"
ProviderName="System.Data.SqlClient"
ConnectionString="<%$ ConnectionStrings:Northwind %>"
SelectCommand="SELECT EmployeeID, FirstName,LastName,
Title, City FROM Employees WHERE City=@City">
<SelectParameters>
<asp:Parameter Name="Cit...
Hello,
A)
public void GetEmployee( int EmployeeID );
<asp:ObjectDataSource SelectMethod=”GetEmployee” …>
<SelectParameters>
<asp:ControlParameter Name = ”EmployeeID” ...>
</SelectParameters>
If for whatever reason EmployeeID parameter is NULL, ObjectDataSource
will convert Null to zero and passed it as argument to GetEmpl...
I would like to know what the XML is for the simplest feature and that will register a Server Control in the GAC, and add it the safe controls section of the web.config for the SharePoint site.
My assembly:
MyServerControl.dll (MyServerControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3249363c0f6f8c59)
I can manually add it to...
I am not really sure if it is possible or not.
I am currently working on the college project and i have a function that uses stored procedure. I would like to know if it is possible to take same SqlCommant apply updated parameters and call to the stored procedure again withing same function.
Lets say i have something like that in my cod...
Hey,...very simple question
I usually write php but happen to be programming with ASP.NET 3.0 framework now and can't figure out how to fix this.
I have a DropdownList and if I selected a some value,...my code behind does a bunch of stuff and outputs the data......
Now,...if I reload the page (ie. press F5 or the little reload thing o...
Hi folks,
i noticed that a forms authentication element has an option child element called Credentials.
MSDN Online explains what it is, here.
That said, i don't understand what it would be used for? So i can add in a username and password (either clear/md5/sha1) to the config file.. but how/when is it used?
Is that an example of har...