Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:865296
More Search Options
RSS Available
Matching Posts
Re: subdomain site in asp.net mvc framework
[quote user="v.vivek"] Hello All, I have to create a site in asp.net mvc framework which have seprate subdomain for each comunity having own look and feel.Community created dynamically by user and choose logo and theam. like .. comutnity1.example.com comutnity2.example.com what architecture i follow? how i map subdomain url to controller and action? [/quote] I also having the same problem, I am creating a application in asp.net mvc were i need to create subdomain dynamically by using admin
Posted to
ASP.NET MVC
(Forum)
by
amitverma.xl
on 9/15/2009
Re: refresh parent page
Hi, Use javascript function for displaying file name from popUp window to main form, Write the following code on button click on the pop window. protected void btnName_Click(object sender, EventArgs e) { string script = string.Empty; script = <script type=\"text/javascript\">" + "post_value_publisher('" + fileUploaderObj.FileName + "');" + "function post_value_publisher(variable)" + "{" + "opener.document."MAIN WINDOW
Posted to
State Management
(Forum)
by
amitverma.xl
on 7/9/2009
Re: overwrite file in .net
Hi, Use the following method : if(fileUploaderObject.HasFile) { string fileName = fileUploaderObject.FileName; fileName = "123_" + fileName ; fileUploaderObject.SaveAs(Server.MapPath('Virtual Path' + fileName)); }
Posted to
Getting Started
(Forum)
by
amitverma.xl
on 7/7/2009
Re: Store procedure in C#
For getting output in datareader, use following code :- SqlConnection con = new SqlConnection("conectionString"); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; cmd.CommandText = procedureName; cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Clear(); try { cmd.Connection.Open(); SqlDataReader rdr = cmd.ExecuteReader(); while(rdr.Read()) { for (int i = 0; i < rdr.FieldCount; i++) { Bind Data Logic........ } } rdr.Close(); } catch (SqlException se) { Catch Exception
Posted to
Getting Started
(Forum)
by
amitverma.xl
on 7/7/2009
Re: how to insert record from one datatable to another
Hi, For updating a datatable from another datatable you can use the following method : dt2.ImportRow(dt1.Rows[rowIndex]);
Posted to
Web Forms
(Forum)
by
amitverma.xl
on 7/3/2009
Re: Maintain Object state between page postbacks
Hi, For maintain the object state across page postbacks, You can use the static variable but there is one problem with static variable that they are same for all session state so the better way is to use the ViewState or Session object.
Posted to
State Management
(Forum)
by
amitverma.xl
on 7/3/2009
Re: flash in aspx page
Before Page_Load event, You have to declared string variable swfFileName like :- protected string swfFileName = String.Empty; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { swfFileName = "~/Flashes/" + data[ "Image" ].ToString() ; } }
Posted to
Getting Started
(Forum)
by
amitverma.xl
on 7/3/2009
Re: Required field validator for fileuplaod control
Hi, Use different validation group for different validation, like Keep File uploader and Upload button in same validation group and other other in different validation group.
Posted to
Getting Started
(Forum)
by
amitverma.xl
on 7/3/2009
Re: Returning auto incrementing int on Insert
Use the following query in sql server declare @Id int set @id = @@identity select @id
Posted to
SQL Server, SQL Server Express, and SqlDataSource Control
(Forum)
by
amitverma.xl
on 7/3/2009
Re: flash in aspx page
Hi, You can get the swf file name on page load and in HTML write the following code for embeding a swf file : <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="300"> <param name="movie" value="<% =swfFileName%>" /> <param name="quality" value="high" /> <embed src="<
Posted to
Getting Started
(Forum)
by
amitverma.xl
on 7/3/2009
Page 1 of 4 (39 items) 1
2
3
4
Next >
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online