|
am in the design view of my default.aspx file, if i click on Tools -> Generate Local Resources , its not active, is there anything am missing?? Am using Visual Web Developer 2005 Express Edition.
Help Please.
Thanks
----------------------------------------------------------------
where there is a will there is a way
|
|
|
|
|
how to handle keyboard events, keypress e.g., of data grid on client side
|
|
|
|
|
You can use a Javascript event PressNewKey on the client side
Rgds,
aLi
|
|
|
|
|
but how? i want to highlight next row on the datagrid form the current row using arrow up & arrow down key.
|
|
|
|
|
How can i link my menu items with javascript code.any help is appreciated.
E-Ramu
|
|
|
|
|
Hi
Is there any article or library to incoperate Electronic Clearing House services in our projects.
http://www.echo-inc.com[^]
Thanks in Advance.
-- modified at 2:44 Tuesday 8th August, 2006
|
|
|
|
|
Hi,
I have a web application and I need to call a different window
application (exe file) from my web application.
Is it possible? How do I do that? Can I transfer parameters to that exe
file from my web application?
Thanks,
Thanh Tri.
Le Thanh Tri
|
|
|
|
|
Use Process.Start()[^] to start running a program
|
|
|
|
|
It doesn't work????
I have already try it. It work easily on Windows Application but in web application, it start process but the new window don't appear.I mean to say when i start process of NODEPADE, it start process but the nodepad window does't appear.
Rgds,
aLi
|
|
|
|
|
Hi,
Iam implementing shoppingcart.In that i placed a Gridview with columns Name,price,picture,checkboxfield(select).
User select the items from the gridview and click on ADDCART Button which is outside of GridView.
when user click ADDCART button,the rows in the gridview for which checkbox field checked that vales iam storing in a datatable.
for this ADDCART button click event i wrote the following code:
int c=0;
for (int i = 0; i < GridView1.Rows.Count; i++)
{
GridViewRow row = GridView1.Rows[i];
bool isChecked = ((CheckBox)row.FindControl("chkSelect")).Checked;
if (isChecked)
c++;
}
Response.Write(c.ToString());
//This code only to check.
Eventhough i checked 2 checkbox fields,and click on ADDCART
The c value is 0.
Anything wrong in the above code.
Or Give me some idea on How to ADD user selected items to CART.
Please help me.
Thanks in advance
|
|
|
|
|
|
Are you manually binding the items to the gridview (i.e. not using a datasourcecontrol)?
If so, make sure your binding is not occuring on postback,
i.e.
if you have something like:
Page_Load
{
BindMyGridView();
}
make if
Page_Load
{
if (!Page.IsPostBack)
BindMyGridView();
}
|
|
|
|
|
hey..
the code works completely fine..
pls check the name of the checkbox u have placed and the name u have given in the FinControl Method is same.
it works fine.
where there is a will there is a way
|
|
|
|
|
OK,
I am about to pull my hair out, and this is why.
I am building a webpage using asp.net (c#), that collects data via a form. The data is saved to a mysql db.
Now I have a ms word document on my pc that is a template. It has certain sections where the data colected from the form needs to be inserted. Now of course a mail merge is the perfect solution but how do i do this?
I would love to have it done on the server, but I have read and searched and cant find any easy way to do, or any way at all for that matter. I thought I found a solution is JSisys's WordReport. But going to there website I noticed it has dissapeared, with no mention. Is there anyway I can do this using asp.net on the server?
I know I can do this manually on my pc, if i just export a text file containing the data from the web form and use that file to perform a mail merge with ms word open, but there must be a way where i can eliminate the manual process of opening word and doing it that way??????
I have looked at automation from a c++ program but I belive this just opens word and automates it this way. And I dont wish to word to open everytime someone submits the form...
Can anyone help me out? It would be so much appreciated I cant explain.
Cheers
|
|
|
|
|
IMHO, to perform mail merge at the server side you'll basically have two options a/ Use the Automation[^], but I don't prefer this way. b/ Use a third party component like Aspose.Word[^].
|
|
|
|
|
The PasswordRecovery uses SMTP configurations specified in web.config. How I do to specify this in runtime? I wish get these parameters from my database instead.
Kind Regards
Jesus is Love! Tell to someone!
|
|
|
|
|
Hi there. You can use the SendingMail event of the control to send the notification email with the settings stored in DB.
|
|
|
|
|
Cool, thank you very much.
Jesus is Love! Tell to someone!
|
|
|
|
|
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
private string _connectionString = ConfigurationSettings.AppSettings["ConnectionString"];
protected void Page_Load(object sender, System.EventArgs e)
{
if (!(Page.IsPostBack))
GetData();
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
}
#endregion
private void GetData()
{
SqlConnection connection = null;
SqlCommand command = null;
SqlDataReader reader = null;
SqlParameter parameter = null;
try
{
connection = new SqlConnection(_connectionString);
connection.Open();
command = new SqlCommand("select * from nametable where id = @id", connection);
parameter = new SqlParameter("@id", SqlDbType.Int);
parameter.Value = 1;
command.Parameters.Add(parameter);
reader = command.ExecuteReader(CommandBehavior.CloseConnection);
if (reader.HasRows)
{
reader.Read();
nameTextBox.Text = Convert.ToString(reader["name"]);
}
}
catch (Exception ex)
{
// throw;
}
finally
{
if (reader != null)
((IDisposable)reader).Dispose();
if (connection != null)
{
if (connection.State == ConnectionState.Open)
connection.Close();
connection.Dispose();
}
}
}
private void UpdateData()
{
SqlConnection connection = null;
SqlCommand command = null;
SqlParameter parameter = null;
try
{
connection = new SqlConnection(_connectionString);
connection.Open();
command = new SqlCommand("update nametable set Name.name = @Name where id = @id", connection);
parameter = new SqlParameter("@Name", SqlDbType.VarChar);
parameter.Value = nameTextBox.Text;
command.Parameters.Add(parameter);
parameter = new SqlParameter("@id", SqlDbType.Int);
parameter.Value = 1;
command.Parameters.Add(parameter);
command.ExecuteNonQuery();
}
catch (Exception ex)
{
finally
{
if (connection != null)
{
if (connection.State == ConnectionState.Open)
connection.Close();
connection.Dispose();
}
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
Label1.Text = nameTextBox.Text;
}
protected void updateButton_Click(object sender, EventArgs e)
{
UpdateData();
}
}
*** i keep getting this stupid message : Error 1 } expected *** pls help
|
|
|
|
|
Count your angle brackets.
For one you are not closing your catch block before the finally block.
---
b { font-weight: normal; }
|
|
|
|
|
Those are curly brackets/braces, angle brackets are like "< >". Though, technically they aren't true angle brackets (angle is wider and character is thinner on real angle brackets).
However, missing brackets (or something hiding a bracket, like a comment) is definitly the problem. The error message comes right out and says it.
|
|
|
|
|
You are correct. I was of course meaning curly backets.
---
b { font-weight: normal; }
|
|
|
|
|
I'm trying to build a website for a client. He represents several artists and wants to display their art on the web. One of the key features he wants is so that a user can't download any picture they want (whether by right clicking and doing a save as or what ever)
I've seen an implementation on PHP that uses a "OnRightClick" and overrides the browers normal functions. How ever there were still a few ways to get around that.
I was wondering if anyone had some good ideas or suggestions on how to do this.
Drathmar
Drathmar
|
|
|
|
|
|
I was fairly sure that images could not be 100% protected.
How ever, if there are some good ways to make it difficult to strip an image from a page. So that the average user would atleast have a hard time doing stripping the image, I'd be happy.
Drathmar
|
|
|
|