VS 2008 DateADD - Populate Dropdow To Coincide With Companies
Oct 6, 2010i have the following code to populate a dropdown to coinside with a companies 2008-2010 calander year. This is the output
[Code....]
i have the following code to populate a dropdown to coinside with a companies 2008-2010 calander year. This is the output
[Code....]
I am trying to add a value to a date when it is bound in a fornview control. I tried the following code but could not get the structure correct.
[Code]....
Has anyone done date calculations using a date in a table cell?
how can i populate asp.net gridview like vb.net way?
Code:
Public Function subj() As DataView
Dim SelectQry = "select * from subject"
Dim SampleSource As New DataSet
Dim TableView As DataView
Try
Dim SampleCommand As New OleDbCommand()
[code]....
We use Sharepoint to control our websites. We build the sites, then load them into the sharepoint server. My question is if I use windows authentication, how can I get my role security in my web config file to coencide with the asp.net controls that use the Forms authentication. Is there a differenence? Our security uses a session variable for security but there is no where to set up their permissions except in active directory. I hope this makes sense because I would like to implement the LoginView with Role groups but how can I give them the role="administrator"? Do I have to go into active directory and give them these permissions(would take awhile due to the size of the company)? Or do I have to set up priveladges in the web.config file for each user(difficult I think)?
View 5 RepliesCompanies url and email id should be same.
how to check it?
eg.-->?
Email id-->abc@infosys.com
Url--> http://www.infosys.com
in above eg. infosys.com should be same.
From the asp.net page, I would like to view the reporting services reports i.e. the .rdl files.I am using a reportviewer to access one of the reports as follows. Notice that I have hardcoded the name of the .rdl report.
Question:There are several reports. The names are stored in a table in the database. Do you know how I can populate a listbox with the names of the reports but do not know how to show the selected report in the viewer. Notice that at present I am hardcoding just one name and not sure how to be able to show the selected report
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote"
Font-Names="Verdana" Font-Size="8pt" Height="1000px" Width="1000px" >
<ServerReport ReportServerUrl="http://reportserver/reportserver"
[Code]....
How are control panels for hosting companies made? My hosting company Winhost.com has a nice control panel that changes settings on their IIS somehow, how do they make these sort of things hook into IIS? I'm not looking for a solution just a general idea of what they're actually using to do this
View 2 Repliesi am working on a project that you can subscribe with your company name and you can use all features of site specificly to your company. for example company abcd can get its own url from our website like
www.test.com/abcd/productlist.aspx
company efgh can also login with its own url and see its product list.
www.test.com/efgh/productlist.aspx
I am thinking on the approach that will use Global.ascx file to distinguish companies, i will write code to extract company name from url in global.ascx for every valid request and in all the pages i will put this.form.action = request.rawurl.
I work for an agency that has been responsible for maintaining a client's .net 3.5 website for a number of years along with another agency. Work is farmed out by the client to both agencies on a pretty much ad-hoc basis.
The site is quite old and has a structure and deployment process to match. The site is setup that developers have local copies of the sites. There is a staging environment, where client feedback and approval happens, followed by the live environment. There are a number of scenarios where work from one agency will be on the staging environment awaiting approval, and changes from the other agency need to go through staging, approval and deployed to live without the original changes being affected. Most of the time we get away with it but it's far from ideal as not all conflicts can be resolved.
Up until recently we had still been on Sourcesafe but have moved over to Subversion and are running into many more scenarios where work is overwritten. This obviously isn't a fault with subversion, rather that the locking of projects and files in Sourcesafe served as a good indicator to developers from both agencies that someone was working on that project or file. The process previously was that you checked out a file from sourcesafe and kept it checked out until changes went live (acknowledge that this is a rubbish process hence the desire to move away from sourcesafe and such a model)
The trouble is that even though we know that the way we do it now is bad, I'm at a bit of a loss as to how to restructure the overall site and deployment process to make it "better". Some ideas we've pondered are:
Separate dev, test and live branches in subversion so we need to commit and build the appropriate branch before deploying (not really sure how to make that work)Single repository for both agencies but a separate staging environment for each. Staging environment could then reflect the changes assigned to each agencyA separate instance of the staging site for each branch
I am being redirected from page1 to page2 as follows:
Response.Redirect(Request.ApplicationPath +
"/page2.aspx?Code=" + searchTextBox.Text);
In page2, I would like to populate a textbox i.e. txtCode using the passed in value from page1.
This is what I am doing:
txtCode.text = Request.QueryString["Code"].ToString();
Question:
Lets say I am redirected from page1 to page2 and so the txtCode is populated. Then I press a button to populate a grid based on this txtCode value. So far so good.
Now for my second page, while in page2, I change the value of txtCode and press the button. The code still retrieves the value from querystring which is the previous value and I do not want that.
Do you know how to solve this ?
there is a requiredvalidator control on txtCode which says it has to have a value.
And I do not mind using a session if it is easier to solve this problem.
This is what I have in page2.aspx
[code]....
I'm working on a new project and I would like to use forms authentication to protect the necessary pages. The project is going to be focused on companies where a company would create an account and have multiple users. Each company should have its own data and should not be able to see other companies' data. What would be the best way to go about this? I've considered using a subdomain for each company which would tell the application which membership provider to use. I've also considered using an additional credential such as company ID to specify which company the user is logging into.
View 7 Repliesthis my gridview data with button's i want as soon as i click the button(Button here is not the Button Web Control) i refer button here as Gridview Button(click me/Gridview Button) the corresponding value should populate my textbox's just trying something in asp.
View 8 RepliesI am using BlogEngine.net and just created a theme (site.master) file and works but when I add a literal control and try to call a function from App_Code I get a 'Compiler Error Message: BC30002: Type 'basicFunctions' is not defined.' error. I call functions from basic_functions.vb in normal .aspx pages at the root. Since my error page is in a subfolder that has it's own App_Code folder, do I have to do something different?
/toolkit/themes/CommercialSilk/site.master
HTML Code:
[code].....
i have 2 tables company(companyId,companyName,City,state,country) and people(peopleId,peopleName,City,state,country) i want to display the total no of contacts and Total no of companies with respect to countries
i tried with group by: select country,count(*)companyId from company group by country is displaying the total number of companies with respect to country select country,count(*)peopleId from people group by country is displaying the total number of peoplewith respect to country
but i want to combine these two quries i want the output as :
Country Companies Contacts
India 10 5
USA 0 10 (usa is having only contacts ,i doesn' have the companies)
UK 8 0 (ukis having only companies ,i doesn' have the contacts)
Many hosting companies let you define which page will be shown to the user if the user goes to a page that does not exist. If you define some .aspx page then it will execute and be shown.
My question is, why not use this for routing. since I can parse the users URL and then do a server.transfer to the page I want. I checked and there is no redirect sent to the client and the http headers are HTTP/1.1 200 OK.
So, is this a good idea for servers that don't have ASP.NET 3.5 SP1 or if you are not using MVC?
I've done this using bound controls like Repeaters etc but now I need to display information about a single file for example. SO i will pass the fileid in the querystring, then I need to populate some textboxes, autocomplete textboxes etc. and then save changes. what's the most efficient way of doing this?
View 13 RepliesIf VS 2008 and VWD 2008 are both installed on the same machine, will they both use the same Projects folder to keep my projects in?If so, can I open the projects and run them interchangeably with VS2008 and VWD 2008? This is the folder that is located at " User>Documents>Visual Studio 2008>Projects
View 1 Repliesthere is a radio button, a dropdownlist. radiobuttons are OY, OTY,VDA ( in my database there are fields named OY.OTY,VDA) if i select OY in my radio button the data should be displayed from field OY in dropdownlist and if i select OTY in my radio button the data should be displayed from OTY field in dropdownlist is it possible. there is a sqldatasource for dropdownlist .
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:MS16ConnectionString %>"
SelectCommand="SELECT DISTINCT OY FROM COURSE_INTAKE">
</asp:SqlDataSource>
THE SELECTED DROPDOWNLIST DATA IS REQUIRDE TO BE DISPLYED IN A GRIDVIEW.
I have looked at all the posts I can find on this problem and tried everything I can think of, but still the problem persists. I am getting really sick of it.was working fine for the last year until an update to MS Office 2007 caused a lot of problems (automatic update). After checking posts here, I removed it completely. No change. I then tried all the things I could find on other posts, also no change. Today, I removed VS and the Web Authoring Component and re-installed. Still no go.
Does anyone have a fix for this problem. It seems that it has been around a long time, but is still giving problems. I even saw one suggestion to reformat the drive! You've got to be joking!
I'm creating a website and I'm testing resgistering and Log-in.
I followed a simple tutorial to create a Log-in in Visual Studio C# template which generated a SQL Server database.Locally the Log-in and registration page works perfectly. The problem is that when I upload my site to the hosting site the navigation works but the Log-in and Registration forms send an error when clicked "Register" or "Log-in". I contacted the site and they upload my database the way it should be because I was doing it wrong. I can see all my files including the data base.
They commented me that I had to do a connection string to the data base so the login and registration forms can work. I don't understand how to do that, I know the connection string has to be declared in the Web Config File, the thing is that I don't know how to write that code and link it to my data base in the hosting site, in fact I have sample code but I don't know just what do I need to put in it.
I been trying to attach a database in sql 2008 express created in VS 2008 Professional. I have been getting error message and codes which there is no support for once you click the link in the message whats up with that? to my most recent memory it had something to do with permissions... but I was logged in as adminstrator so that confuses me.
View 2 RepliesI am looking at developing using Visual Studio 2010/2008 and SQL Server 2008 on Windows 7. Should I be able to do this on Windows 7 Professional, or do you need Windows 7 Ultimate?
View 2 RepliesI have a web service that runs a query (from C#) to get a dataset from sql server. I get the following time out error. Googling on this error says, you can set the timeout on command object. But I am not using command object to set the timeout. This is the code I am using to get the dataset.
code:
[code]....
Using the Web Platform installer, in installed both the Visual Web Developer Express 2008 and SQL Server Management Studio Express 2008. Next, I connected to my local SQL Server Express 2008 and created a simple database and table using Visual Web Developer Express 2008 where the database file resided in the app data folder of my website. I can connect and explore the table from both Visual
Web Developer 2008 as well as the full blown version of Visual Studio 2008.
I am new to vwd. I installed vwd express edition 2008 with sql express 2008 in xp sp2. After this i installed report view 2008 addon for vwd express. After the installation i noticed that there is no toolbox in my vwd. Before it was there.
View 1 Replies