|
Why do you require to backup the access database ?
Just copy a blank database file to a specified folder, copy the data from the original access database to the other using normal OleDb commands ....
Now allow the user to download the file...
|
|
|
|
|
|
|
Yes ..Thats great..
Cheers.
|
|
|
|
|
hi all,
i have a showmodaldialog and after getting value from B page the value is stored in textbox now everything is ok but save button wont take new value and returns the old one,
is there something i should do, i will put the code of save button maybe it would help :-
SqlConnection con = new SqlConnection(sConnectionString);
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandType = CommandType.StoredProcedure;
if (ViewState["Edit"].ToString().Equals("Edit"))
{
cmd.CommandText = "BaselAnfouqa_Upd";
cmd.Parameters.Add("@UserID", SqlDbType.Int).Value = nUserID;
}
else
{
cmd.CommandText = "BaselAnfouqa_Ins";
}
cmd.Parameters.Add("@UserName", SqlDbType.VarChar, 50).Value = tbUserName.Text;
cmd.Parameters.Add("@Password", SqlDbType.Int).Value = tbPassword.Text;
cmd.Parameters.Add("@Salary", SqlDbType.Float).Value = tbSalary.Text;
cmd.Parameters.Add("@Gender", SqlDbType.Char, 10).Value = ddlGender.SelectedValue;
cmd.Parameters.Add("@DateOfBirth", SqlDbType.DateTime).Value = tbDateOfBirth.Text.ToString();
cmd.Parameters.Add("@Status", SqlDbType.Int).Value = ddlStatus.SelectedValue;
con.Open();
cmd.ExecuteNonQuery();
vBindgvClients();
mvMainPage.SetActiveView(viewClients);
thx in advance.
|
|
|
|
|
where is the code that is suppose to store the value when the button is Clicked
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
shown at 1st question page
|
|
|
|
|
what is "BaselAnfouqa_Upd" ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
its a stored procedure
|
|
|
|
|
Put a breakpoint on the line here, and inspect what is the value of the Textbox in the server side.
Does it have the latest values ?
Does it have anything to deal with
This ??[^]
|
|
|
|
|
How to manage the visitors in hospital management system.
|
|
|
|
|
is this ASP.NET related ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi All ,
can any pls tell me How do i Open PDF files Directly by ASP.net Page.
that pdf file hyperlinklink has been given to my ASP.net page but it is asking for Download when click on link but i don't want that it should display automatically. please tell me...
|
|
|
|
|
Do you have Acrobat Reader installed on your system?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
|
First of all, you should make sure Acrobat plugin is installed in your browser.
You would have to use correct Content Type :
Response.ContentType = "application/pdf";
Response.AddHeader("content-length",contentBytes.Length.ToString());
Response.BinaryWrite(contentBytes);
If you just need to open it in the browser totally, you can also use
Respose.Redirect("yourpdffile.pdf") which will automatically take the content type.
You should also look into the KB article of Microsoft :
http://support.microsoft.com/kb/307603/EN-US/[^]
Hope this one will help you.
|
|
|
|
|
Hi,
How to merge two rows of same data in SSRS
Suppose I have a row like this
S.No Location Mandal
1 Hyderabad Hyderabad
I need to show output like
S.No Location Mandal
1 Hyderabad
Kindly Help me
|
|
|
|
|
I got this error morning...when i try to load my XML in DOM
what is it ???
i have DTD in same folder
my XML Start is
HTML Code:
<? version="1.0" encoding="UTF-8">
<!DOCTYPE srr SYSTEM "street.dtd">
what should i do ???
thanks in advnace....
Rating always..... WELCOME
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
This is what iam looing for
When ever i create a webpartzone with a id it gives that id as title for the webpartzone.
I do not want to display the zone title at all so that the end users can drag and drop
webparts from various zones.
What do i need to do for this
|
|
|
|
|
Are you looking for web parts Personalization ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
I am using a DataTable and the Infragistics WebDataGrid on my page. I need to create a list of values that the user enters by making selections from provided list and dropdown boxes.
My issue is that if the user selects anything else, my grid only shows the most recent value, the new ones don't get added, they just replace what's already there.
Additionally, if a new search is initiated, the grid resets.
I know this will be a biting snake, but I am just not seeing it.
Below is the code from my button.
protected void btnAdd_Click(object sender, EventArgs e)
{
txtOnSaleDate.Text = "";
dt = ds.Tables["Schedule"];
DataRow row = dt.NewRow();
row["code"] = ddlMagazines.SelectedValue;
row["name"] = ddlMagazines.SelectedItem.Text;
if (lstIssueDate.SelectedItem != null)
{
if (txtOnSaleDate.Text == "")
{
row["issue"] = lstIssueDate.SelectedItem.Text;
row["onsale"] = lstIssueDate.SelectedValue;
}
else
{
row["issue"] = "1/1/1980";
row["onsale"] = txtOnSaleDate.Text;
}
}
else
{
row["issue"] = "1/1/1980";
row["onsale"] = txtOnSaleDate.Text;
}
dt.Rows.Add(row);
wgScheduleList.DataSource = dt;
wgScheduleList.DataBind();
wgScheduleList.Visible = true;
btnSave.Visible = true;
btnDone.Visible = true;
}
Thanks.
|
|
|
|
|
I figured it out.
Thanks.
|
|
|
|
|
How do i change the webpart zone title itself
|
|
|
|
|
Asking the same question again wont help..
Cheers!!
Brij
|
|
|
|
|
This is not the same question previously i asked webpart title and
now iam asking webpart zone title which is actually the ID for
webpart zone
Thanks
|
|
|
|