|
Hello everyBody,
Friends me facing a problem in redirecting the url.
me make is site working with http://localhost/abc/testing is working fine but
i want to run this site with http://localhost/test
how to do this pls help me....
WAITING.....
REGARDS
RAHUL
rahul saini
|
|
|
|
|
creat new virtul directory on iis with mane test
|
|
|
|
|
Hi
First thanks for ur rply,
I hav done dis but i m getting error (The resource cannot be found.)
actually all the sites are in wwwroot/abc/test
and i want to run test with url http://localhost:/TEST/Default.aspx
but not working
it is working with http://localhost:/abc/TEST/Default.aspx
pls tell which path should i giv for virtual directry
REGARDS
RAHUL
rahul saini
|
|
|
|
|
go to control panel in that adminisrtative tool inthat iis
under that websit under that default websiet right click on it u find potion to creat new virtul directory giv alis name TEST and go further ..
|
|
|
|
|
|
Create a new virtual directory in IIS and name it "test", then point the folder to the source of your application.
Nnabuikem - MCAD
|
|
|
|
|
how to use frames in asp.net
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
|
thanks for reply..
its use in asp.net
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
yes it can be used in .net
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
i want to use two frame on one aspx page
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
I think you have that the wrong way around.
You have one page containing the two frames, each frame can contain an ASPX page.
|
|
|
|
|
It is not advisable to use frames, but it is possible.
|
|
|
|
|
hi dear i want to divded frame set into rows and every rows have two coloumn on same aspx page
Piyush Vardhan Singh
Programmer
TAS NewDelhi
9313077379
|
|
|
|
|
This is really a web developmen question, not an ASP.NET question.
Frames work as they have always done. It's just plain HTML and has nothing to do with the ASP.NET code.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi dears,
I want to make a subdomain when a user registers in my website ?
ex: subdomain for Mr. Smith is http://smith.mysite.com
I appreciate your suggestions,
Thx
www.behzadi.net
|
|
|
|
|
Hi,
I have a datagrid that is ment to insert data. But when I run the form only the header appears. I would like some advise from you all and solve this problem I'm using visual studio 2003. My code looks like this:
private void Fill()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
}
private void Bind()
{
DataTable table = new DataTable();
dgis.DataSource = table;
dgis.DataBind();
}
private void InsertEmpty()
{
DataTable table = new DataTable();
table.Rows.InsertAt(table.NewRow(), 0);
}
private void bttnew_Click(object sender, System.EventArgs e)
{
// inserting
dgis.EditItemIndex = 0;
// modify text
EditCommandColumn ecc = (EditCommandColumn) dgis.Columns[5];
ecc.UpdateText = "Insert";
EditCommandColumn ecc1 =(EditCommandColumn) dgis.Columns[4];
ecc.UpdateText = "Insert";
// fill table, insert empty row, bind to datagrid
Fill();
InsertEmpty();
Bind();
}
private void dgis_ItemCommand(object source,System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
// stop editing
dgis.EditItemIndex = -1;
switch (e.CommandName)
{
case "Insert":
break;
case "Update":
break;
case "Cancel":
EditCommandColumn ecc =(EditCommandColumn) dgis.Columns[0];
ecc.UpdateText = "Update";
EditCommandColumn ecc1 =(EditCommandColumn) dgis.Columns[0];
ecc.UpdateText = "Update";
break;
case "Edit":
// begin editing
dgis.EditItemIndex = e.Item.ItemIndex;
break;
}
// fill and bind
Fill();
Bind();
}
|
|
|
|
|
need to brush up your core knowledge
private void Fill()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
}
private void Bind()
{
DataTable table = new DataTable();
dgis.DataSource = table;
dgis.DataBind();
}
how do you get data here man....
do one thing, write a funcion with full functionality
private void FillEmptyBind()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
table.Rows.InsertAt(table.NewRow(), 0);
dgis.DataSource = table;
dgis.DataBind();
}
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
Score it if you like my post
|
|
|
|
|
nclauder wrote: private void Fill()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
}
private void Bind()
{
DataTable table = new DataTable();
dgis.DataSource = table;
dgis.DataBind();
}
you are creating seperate tables to get data from database and binding it to datagrid, thats why its not working. may be try something like this
private DataTable Fill()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
return table;
}
private void Bind()
{
dgis.DataSource = Fill();
dgis.DataBind();
Regards
Shajeel
|
|
|
|
|
Thanks,
Shajeel Your advice has worked. But I've gotten another problem. When I press the button to add a new row it does not bring a new row.The button is bttnew. the code is now looking like this.
private DataTable Fill()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
return table;
}
private void Bind()
{
dgis.DataSource = Fill();
dgis.DataBind();
}
private void InsertEmpty()
{
DataTable table = new DataTable();
table.Rows.InsertAt(table.NewRow(), 0);
}
private void bttnew_Click(object sender, System.EventArgs e)
{
// inserting
dgis.EditItemIndex = 0;
// modify text
EditCommandColumn ecc =(EditCommandColumn) dgis.Columns[0];
ecc.UpdateText = "Insert";
// fill table, insert empty row, bind to datagrid
Fill();
InsertEmpty();
Bind();
}
private void dgis_ItemCommand(object source,System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
// stop editing
dgis.EditItemIndex = -1;
switch (e.CommandName)
{
case "Insert":
break;
case "Update":
break;
case "Cancel":
EditCommandColumn ecc =(EditCommandColumn) dgis.Columns[4];
ecc.UpdateText = "Update";
break;
case "Edit":
// begin editing
dgis.EditItemIndex = e.Item.ItemIndex;
break;
}
// fill and bind
Fill();
Bind();
}
Thanks;
|
|
|
|
|
problem is same you are inserting row in different table and binding different table to grid.
Regards
Shajeel
|
|
|
|
|
Thanks Shajeel,
I'm still trying to see how I'm inserting row in different table could you please enlighten me more.
Thank you very much.
|
|
|
|
|
private void Fill()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
}
private void Bind()
{
DataTable table = new DataTable();
dgis.DataSource = table;
dgis.DataBind();
}
private void InsertEmpty()
{
DataTable table = new DataTable();
table.Rows.InsertAt(table.NewRow(), 0);
}
Regards
Shajeel
|
|
|
|
|
Hi Shajeel,
Thanks for all. That means I've been Inserting the column in a new table. So I thought tried this and got an error when compiling:
The type or namespace name 'table' could not be found (are you missing a using directive or an assembly reference?)
This was what I tried:
private DataTable Fill()
{
DataTable table = new DataTable();
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
return table;
}
private void Bind()
{
dgis.DataSource = Fill();
dgis.DataBind();
}
private void InsertEmpty()
{
table.Rows.InsertAt(table.NewRow(), 0);
}
Thanks
|
|
|
|
|
do this, i think it will work
private DataTable table;
private void Fill()
{
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * from dbo.DashBoard", con);
adapter.Fill(table);
}
private void Bind()
{
dgis.DataSource = table;
dgis.DataBind();
}
private void InsertEmpty()
{
table.Rows.InsertAt(table.NewRow(), 0);
}
Regards
Shajeel
|
|
|
|