|
bruze wrote: broswer asking the plugin MIME type (audio/voxware)
Does that not offer a suggestion?
|
|
|
|
|
The browser was showing(audio/voxware) plugin. I have manually searched for the plugin, but browser showed message (audio/voxware) plugin not found". So can u please provide this plugin details.
|
|
|
|
|
bruze wrote: So can u please provide this plugin details.
Sorry, but I have no knowledge of this plugin. Try searching Google for voxware.
|
|
|
|
|
|
I created a application with Two layers
DAL and BLL ,and I registered them in GAC for global access by assigning strong keys for the dlls
I have created two versions like version 1 should return 10 as output and version 2 as 20
For my website I am adding the dlls from GAC so it will not place in bin it should directly assign to web.config as Microsoft dlls( System.Web.Extensions)
I am getting the outputs clearly for version 1 and version 2 as 10 and 20 as i expected. but Once I published the code with version 1 dll it is getting output as 10,
if I change to version 2 in web.config that time also it is showing the output as 10,y it is not showing as 20 even though I change to version 2(version 2 indirectly refers to version 2 dlls in gac as per before publish)
modified on Friday, November 13, 2009 5:56 AM
|
|
|
|
|
Hi I have a ASP.net application.
I want to force a signout, if the user tries to access the same application in the following scenarios
If Multiple tabs within a same browser
or
if multiple (same) browsers eg two applications of firefox.
or if
if multiple different (browsers) eg one firefox & one MS Explorer.
Any help / advice apreciated in advance.
G
|
|
|
|
|
You can check window.opener.location property. That should have a URL of the page which opened your page.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Whenever some user logs in to a system, it actually creates a new session.
Just store the Session id againist IP address in the database whenever the user logs in.
Now create one handler from which check every request. Use IRequiresSessionState to get the session id. If the session is found in the database for the same IP, Server.Transfer to Logout page with a particular error.
This way no more than 1 login would be allowed from the same IP.
Remember : You should delete the entries as soon as the user logs out. Also you need to place a trigger which would automatically delete one record when Session expires in the server for the IP, so that if one user forgets to logout, he could login again after a certain Timeout range.
Cheers.
|
|
|
|
|
This is a different thing. I assume he meant you should not be able to do Right click -> Open in new tab on any of the link. If he does, then he should be signed out.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
That cant be done. Bcos in case of Firefox Session will be the same if you open a new tab. That is why if you login on an account using firefox, it will automatically transfered(which is of course not the case with IE)
Might be he can disable right click ....
|
|
|
|
|
Respected,
if (File.Exists(pdfFilePath))
{
bookingAttachment = new Attachment(pdfFilePath);
AgentPDFDetails.Attachments.Add(bookingAttachment);
AttachedPDFFile(AgentPDFDetails, pdfFilePath);
bookingAttachment.Dispose();
}
Can we Attached multiple files.
Thanks.
|
|
|
|
|
lrsalunkhe wrote: Can we Attached multiple files.
Yes
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
RESPECTED ,
HOW THIS IS DONE PLEASE TELL ME ?
THANKS
|
|
|
|
|
Oh, I thought you just wanted to know if it could be done. What you actually want to know is how to do it.
Add as many items to the Attachements collection as you desire.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
are you talking about mail attachment?
Please don't forget to mark 'Good Answer', if you find it really a good one!
Kashif
|
|
|
|
|
|
Respected ,
Yes,Sir But why you not Reply....
Thanks
|
|
|
|
|
|
Hi,
I have a developed a mobile client application for which i wants to make a server application.
I have my website which have a database to it and i wants that both server application and my website will share the same database.
The main feature of the server application i to make continuous http request to a URL and capture the response and perform according to the response.
But i dont know what to do in this regards, i am totally stucked to this please help me what to do.
which kind of application i have to make either web application or web services & how i will integrate it to my website.
Thanks in advance
|
|
|
|
|
Hi Rahul,
If ur Server application only makes continous request to the URL and get the output ,
Make it as a WebService which you can call through ur Web Site using Web Reference .
|
|
|
|
|
hii all
m working on shopping cart using csharp.
m retaining the products in datatable and finally then m showing this product in datalist(cart).
but the problem is that the datatable only keeps single row.
whenever i use to add new product to cart the old one is not shown only recently added product is shown.
plz guide where m i wrong.how to retain multiple rows in datatable.i used session but no change.
thnks...
|
|
|
|
|
Hi ......
I believe that somewhere in your code you are overwriting the DataTable without preserving the older records .
Most possible place is where you are adding a new row,
just debug your code or post relevent pieces here ,
|
|
|
|
|
this is the page wr my cart is shown name cart.aspx....
public partial class mycart : System.Web.UI.Page
{
DataTable dt =new DataTable();
DataView cartview;
protected void Page_Load(object sender, EventArgs e)
{
Getsource();
if(!IsPostBack)
{
Bindlist();
}
}
void Bindlist()
{
DataList1.DataSource = cartview;
DataList1.DataBind();
Session["cart"] = dt;
}
void Getsource()
{
dt = (DataTable)Session["cart"];
cartview = new DataView(dt);
return;
}
protected void Update(object source, DataListCommandEventArgs e)
{
int ProductID = Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex]);
TextBox txtqty;
txtqty = ((TextBox)e.Item.FindControl("txtqty"));
string connectionstring = ConfigurationManager.ConnectionStrings["SilverOnline"].ConnectionString;
SqlConnection conn = new SqlConnection(connectionstring);
SqlCommand cmd = new SqlCommand("Update Home Set ProductQty=@productqty Where ProductID=@productid", conn);
cmd.Parameters.Add("@productqty", SqlDbType.VarChar).Value = txtqty.Text;
cmd.Parameters.Add("@productid", SqlDbType.Int).Value = ProductID;
if (conn.State == ConnectionState.Closed)
conn.Open();
cmd.ExecuteNonQuery();
if (conn.State == ConnectionState.Open)
conn.Close();
DataList1.EditItemIndex = -1;
Bindlist();
}
protected void Delete(object source, DataListCommandEventArgs e)
{
string name = ((Label)e.Item.FindControl("Label1")).Text;
cartview.RowFilter = "ProductName='" + name + "'";
if (cartview.Count > 0)
{
cartview.Delete(0);
}
cartview.RowFilter = "";
DataList1.EditItemIndex = -1;
Bindlist();
}
}
on my addcart.aspx page m adding that particular product to cart....the code is...
protected void Button1_Click(object sender, EventArgs e)
{
DataList1.Visible = false;
Button1.Visible = false;
GridView1.Visible = true;
string str = Request.QueryString["ProductID"];
int i = Convert.ToInt16(str);
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["SilverOnline"].ConnectionString);
string str1 = "Select * From Home Where(ProductID='" + str + "')";
SqlCommand cmd = new SqlCommand(str1, conn);
SqlDataReader dr = null;
conn.Open();
dr = cmd.ExecuteReader();
DataTable dt = new DataTable();
while (dr.Read())
{
dt.Columns.Add("ProductID", typeof(int));
dt.Columns["ProductID"].AutoIncrement = true;
dt.Columns["ProductID"].AutoIncrementSeed = 100;
dt.Columns.Add("ProductName", typeof(string));
dt.Columns.Add("ProductImg", typeof(string));
dt.Columns.Add("ProductPrice", typeof(string));
dt.Columns.Add("ProductQty", typeof(string));
DataRow row = dt.NewRow();
row["ProductName"] = dr["ProductName"].ToString();
row["ProductImg"] = dr["ProductImg"].ToString();
row["ProductPrice"] = dr["ProductPrice"].ToString();
row["ProductQty"] = 1;
dt.Rows.Add(row);
Session["cart"] = dt;
}
conn.Close();
Response.Redirect("mycart.aspx");
}
|
|
|
|
|
Where are you adding a new row to the DataTable???
|
|
|
|
|
Sir ,
On Button1_Click you are creating a new DataTable .....no where you are retrieving DaTatable from Session,
So How is it suppose to Take the older rows ???
|
|
|
|