Web Forms :: Generate EmployeeCode Based On City Name
Dec 10, 2012
I have a form in that form i am having a dropdownlist, if I select a particular company name, it will redirect to another page and generate a empcode automatically as per the company name example TCS001. My problem is, if the person filling the employee form, in that form I having an city name in dropdownlist if the user select the particular city name like Mumbai in the dropdown, I want to make the empcode as TCS/MUM/001, I tried but its not working properly..
Just curious if subdomains can be generated dynamically. For example say I have [URL]. In a SQL DB is a list of cities. Can these be used to generate new subdomain for each city? (ie [URL], [URL], etc.) Or do I have to create every sub domain I want manually?
My site is going to display content based on a city. So, if a user comes directly to my site, I am going to default them to say for instance:
www.mysite.com/cincinnati
I need to be able to handle two scenarios here. One, when they come directly to my site ('/'), I need to somehow redirect to my default city and 2, show an error page if they type in an invalid city. Any thoughts? I saw the route constraint, but how do you deal with invalid scenarios like showing an error page when the constraint fails?
Based on this I want to create controls on the page dynamically. I think it is a bit like the ASP.NET Dynamic data project, but I have no Entity Framework or Linq to SQL Context available. Of cause: I can write my own XML parser and page generator but I don't want to reinvent the wheel again. Do you maybe created a similar project or know some good source that uses the same approach?
I have a scenario where I need 2 dropdowns like state and city.City dropdown depands upon on State drop down.Will you please tell me how to achieve it ASP.NET MVC?I found this article but not sure is there any alternate way to do?http://stephenwalther.com/blog/archive/2008/09/07/asp-net-mvc-tip-41-creating-cascading-dropdown-lists-with-ajax.aspx
I need to generate a Unique Reference number that has 7 digits.
It should be formatted in the following way:
1st: B (Ball), G (Gift), C (Cat)
2nd: represents year of booking A(2010), B(2011),C(2012), etc
3rd: represents the month of booking J(Jan),F(Feb),M(Mar),A(Apr),Y(May), U(Jun), L(Jul),G(Aug), S(Sep),O(Oct),N(Nov),D(Dec)
4th: days of booking A(1st) - Z(26th), 1(27th) - 5(31st)
5,6,7th: These are counters for the number issues each day. Each can be A-Z,0-9 giving a total of 46,656 combinations. So 0 is first, then 1, 2, 3, 4, 5, 6, 7, 8, 9, A-Z, then 00 to 0Z, then 10 to 1Z, then 20 to 2Z, etc
Now , the 1st Digit is a Character that I generate based on a condition and that shouldn't be a problem.
it is possible to customize the typed view generation process to generate the proper controls based on the fields annotations of a model. For Example I have a Person Model that contains Foreign Keys like CityID,DepartmentID etc. So When i generate a view againt the Person Model it creates textbox's for all the Person fields but i want dropdownlists against FK fields. It Should be smart enough to at least geereate the peroper controls based on the Person's field annotations. How can i acheive that? Has anybody worked on that?
Suppose, I sent a value from 1 page to another [ex:5] then on another page where i sent the value I want to display that many TextBoxes 1 by 1 means 5. I want to read all the values and want to store it.
Once the another page got the number It will display :-
Enter Product 1 Quantity : TextBox1 : I will enter the quanity next
Enter Product 2 Quantity : TextBox2 : I will enter the quanity next
till TextBox 5 / number
Basically, my idea is I want to generate the bill according to products which my worker carry. So I will enter my worker id and I will ask him how many products do you have. I enter the number. suppose 5. then that many textboxes will appear on the form and i will just enter there quantity.
I have a webforms (framework 3.5) site with a TON of dynamic content. Depending on the url, one or many content items will be sent to the client. I need a way to generate meta keywords for SEO based on the contents of the page (or part of the page, if possible).
I've done a little research and am not really turning up anything that addresses my problem directly. I have, on the other hand, found some interesting stuff that might get me there with considerable work. One idea I have is to intercept the response buffer at Application_BeginRequest (global.asax), parse out some meaningful keywords, and inject them back into the response buffer. However, this seems like a pretty expensive process and I don't even know if it's possible. I also feel like there could be a way to do this with an HttpModule.
I'm interested in what the community has to say about this. Is there already an existing and accepted way to do this that I'm just missing.
Is there a way I could get the DropDownList Item Count then output it on the dynamic textboxes whose count is based on dropdownlist count. Lets say My item in Dropdown is 3. then 3 TextBox is autogenerated. Then I Want my textbox "Text" to be 1,2,3 since the items are 3 on dropdown.
Let's say I have a LatLng , is there any way of checking if it represents a possible location within a city? How can I get the limits of a city? I'm using Google Map.
I have one page Country.aspx through that i add country in my database... I have another page name State.aspx through which i can add states in my database..
Now The country i have added in database through first page when i want to add states in database i want that added country to be shown in drop down list in my state.aspx page..
here in state.aspx page i have one drop down for country which i select and one textbox for state which i want to add...how can i add states with this....here when i click on save the state should be saved in database
how can i do that??
I have taken three different tables name country,state and city for that and 3 different pages country.aspx,state.aspx,city.aspx ..
say i have 2 asp.net default calendars. Now from one i select the date as August 20 2010 and in second i select the date as March 2011.
My Question: How can i generate dynamic calendars based on dates that i have selected inclusive of the dates? Hence for above example the dynamic calendars would be say from August 2010, September 2010, Oct 2010, Nov 2010.....Upto March 2011.
I want this to happen in ASP.NET ONLY.(ver 2.0/3.5)
i has an gridview with the columns userid, username and password, first column of the column is an image button when click it then under(it means innergridview) that particular row, based on userid i have to display City, Country & PhoneNo. how to do this?
I have been looking around for an API that does this but couldn't find one, all what I need is the time of that given City or ZipCode, can I do that manually in VB.NET?
I have to get the string and number different. This is like the City with house number. So i want to split the city and house number. How do i do this.
Windows 7 Ultimate 64bit Visual Studio 2008 Team System Using C# SQL Server 2005 Express Management Studio (Service Pack 3) By using Visual Studio 2008,I opened Server Explorer and tried to modify Database connection,i wanted to use SQL Authentication,I entered User name and Passwored after pressing OK button,i got the following... Error message Failed to generate a user instance of SQL Server.Only an integerated connection can generate a user instance.The connection will be closed.
There is a database (SQL Server) with locations (longitude and latitude values). I need to plot the route on the map (Google or otherwise) based on those locations extracted from database. Plotting lines and map are on ASP.NET webpage.
What would be the most and cost-effective way to accomplish the task above?