|
I am currently using the below custom popup control.(ASP.NET,Language used is C#)
http://www.codeproject.com/aspnet/asppopup.asp[^]
But i am not able to add Ok and CANCEL buttons inside the pop up.I cant use alert since i need to change the color and include title, which cannot be done in alert.
Can anyone help me out in this and suggest me with a better idea.
Mads
|
|
|
|
|
Hello
I want to burn my database backup file to CD/RW programmatically.
Anybody have a nice and usefull code for this?
I googled much and found a sample, but i couldn't test it because my drive is Network shared CDWriter. So please notice below code :
<br />
objBurner = new IMAPI_CDBurner.CDBurnClass();<br />
.<br />
.<br />
string drive = @"f:\";<br />
objBurner.GetRecorderDriveLetter(drive, 4);<br />
sfRecorderDrive = drive;<br />
there is an error with drive letter, "f:\" which "f" is my map drive.
error is :
"Error HRESULT E_FAIL has been returned from a call to a COM component."
anyway...
I need help for burning file to cd.
Regards.
|
|
|
|
|
Microsoft released an object which allows you to burn data to cd. I gues it's named XpBurn or something..
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Hi, Dear Respected Programmers
Kindly help me and give me method or source about that, I want to insert text data into TEXT1.TXT from TEXT2.TXT
Thank you in Advance
|
|
|
|
|
M Riaz Bashir wrote: want to insert text data into TEXT1.TXT from TEXT2.TXT
could you expkain more ?? do you want to copy the content of text2.txt to
text1.txt without keeping what is in text1.txt ??
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
Dear Tamimi - Code
actualy TEXT1.TEXT is belonged with diffrent data and TEXT2.TXT is belonged with diffrent data. I need to insert all text data into TEXT1.TXT from TEXT2.TEXT without overwriting. Just insert.. for example:
TEXT1.TXT
=========
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
TEXT2.TXT
=========
BBBBBBBBB
BBBBBBBBB
BBBBBBBBB
AFTER INSERTING FROM TEXT2.TXT
==============================
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
BBBBBBBBB
BBBBBBBBB
BBBBBBBBB
Thank you very much for you kind considiration
Please help me about said meter.
|
|
|
|
|
Open txt2 in a streamreader object and open txt1 in a streamwriter object (setting the append argument to 'true')
txt1.Write(txt2.ReadToEnd());
txt1.Close();
txt2.Close();
txt1.Dispose();
txt2.Dispose();
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Thank you Mr. Eduard Keilholz
|
|
|
|
|
Hi,
I m working on an interesting subject wherin i need to implement the concept of Pull Printing or Driverless printing on a client server architecture.
Can anyone assist me with the way it is implemented in C#.Or do i need to use any other .Net technology.
|
|
|
|
|
Hey guys,
Im using Crystal Reports in my C# application for the first time. Im facing a small problem though. I created a Crystal Reports document and Dataset. Then I placed all the fields from Dataset into my Report. I populate the dataset using code and when I view the report I can see all the records but apart from mapping fields to a dataset there a few fields that I would like to populate from code directly. These fields have nothing to do with my Database, its just some information that i want to place in my Crystal Report. How do I do this? I couldn't find any resources specific to my question so I've come here for help.
|
|
|
|
|
First of all you need to design a Report and then you will assign
the data set to the report ..
Importing thing all the report field name same as in the DataSet..
<
CrystalReportViewer1.ReportSource = CrystalReportSource1
Dim ds As DataSet
Dim objCMTransaction As New ForMerchantCard2Merchant
ds = objCMTransaction.CardToMerchant(Session("fromDate").ToString, Session("toDate").ToString, Session("UserName"))
' Report Parameters
Dim param1Fileds As New CrystalDecisions.Shared.ParameterFields
Dim param1Field As New CrystalDecisions.Shared.ParameterField
Dim param2Field As New CrystalDecisions.Shared.ParameterField
Dim param1Range As New CrystalDecisions.Shared.ParameterDiscreteValue
Dim param2Range As New CrystalDecisions.Shared.ParameterDiscreteValue
param1Field.ParameterFieldName = "DateFrom"
param1Range.Value = Session("fromDate").ToString
param1Field.CurrentValues.Add(param1Range)
param1Fileds.Add(param1Field)
param2Field.ParameterFieldName = "DateTo"
param2Range.Value = Session("toDate").ToString
param2Field.CurrentValues.Add(param2Range)
param1Fileds.Add(param2Field)
Me.CrystalReportViewer1.ParameterFieldInfo = param1Fileds
Me.CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables(0))
>
Rgds,
Nadeem.
|
|
|
|
|
here is the code i'm sending to your values to crystal reports as parameters to crystal reports
call below montioned code into you application.
void para(string fldName, string valName)
{
ParameterField paramfield1 = new ParameterField();
ParameterDiscreteValue disval1 = new ParameterDiscreteValue();
ParameterValues val1 = new ParameterValues();
paramfield1.ParameterFieldName = fldName;
disval1.Value = valName;
val1.Add(disval1);
paramfield1.CurrentValues = val1;
CrystalReportViewer1.ParameterFieldInfo.Add(paramfield1);
}
Happy coading.........
B.Sriniva
Ramco Systems Ltd
Chennai
9940145626
|
|
|
|
|
Hi ...
I am using one asp.net 2 Gridview control. I am binding it with a datatable. Now I want to hide two columns in the Gridview. How to do that ..Plz help me
This is my code...
DataTable dt = new DataTable("STEPS");
DataColumn dcOrder = new DataColumn("Order", typeof(Int32));
DataColumn dcName = new DataColumn("Name", typeof(string));
//Datacolumns are added to table dtsteps.
dt.Columns.AddRange(new DataColumn[] {dcOrder, dcName);
.....
//Assigning dtsteps as the datasource of my gridview dgsteps
MyGridView.DataSource = dt;
MyGridView.DataBind();
Thanks in advance....
Ranjith
|
|
|
|
|
just do the following:
datagrdview.Columns[0].Width = 0;
this will hide the 0th column of the datagridview.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
There is no property "Width" for datagridview.columns. There i found a visible property but it doesnt work
Ranjith
|
|
|
|
|
this is what u have to do after setting the data to the datagrid.
dataGridView1.Columns[0].Width = 0;
This should be enough
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
But I couldnt find any property Width for "dataGridView1.Columns[0]"
Ranjith
|
|
|
|
|
This is the better method.
dt.Columns["{COLUMN_NAME}"].ColumnMapping = MappingType.Hidden;
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
I tried this way also.. But it is not working
Ranjith
|
|
|
|
|
There are some set of server controls its property enabled= may be true or false,now in code behind how to find its current state and i am getting the controls id during runtime like this
foreach(Control c in form1.Controls)
{
............
}
and also there is no property like (c.Enabled) to check
Thanks In Advance
|
|
|
|
|
vamsimohan21 wrote: foreach(Control c in form1.Controls)
{
............
}
A web form has a Controls collection, the trick is that it's a tree, so you need to recurse over it.
Christian Graus - C++ MVP
|
|
|
|
|
Thank sir for that and i tried with that but not got any solution can u just pls tell me any sample code and also how to know whether the control is enabled or in disabled state during runtime
Thanks In Advance
|
|
|
|
|
Web controls do in fact have an Enabled property. I just checked. Maybe you need to post your code ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
protected void Button1_Click1(object sender, EventArgs e)
{
foreach(Control c in mainform.Controls)
{
if (String.Compare(c.GetType().ToString(), "System.Web.UI.LiteralControl") == 1)
{
(//HERE I HAVE TO CHECK WHETHER THE CURRENT CONTROL IS IN ENABLED/DISABLED STATE)
if (c.Enabled)
//Error 4 'System.Web.UI.Control' does not contain a definition for 'Enabled' C:\Documents and Settings\vamsi\My Documents\Visual Studio 2005\WebSites\WebSite1\Default.aspx.cs 86 23 C:\...\WebSite1\
{
.................
}
}
}
The above is the error i am reciving sir
THANKS IN ADVANCE
|
|
|
|
|
vamsimohan21 wrote:
if (String.Compare(c.GetType().ToString(), "System.Web.UI.LiteralControl") == 1)
What on earth is this ? It's a mess.
if (c is LiteralControl)
{
// etc
}
vamsimohan21 wrote: //Error 4 'System.Web.UI.Control' does not contain a definition for 'Enabled'
Perhaps you need to have a derived class to have that property ?
LiteralControl lc = c as LiteralControl;
if (lc != null & lc.Enabled)
{
// Whatever
}
This still won't work, unless you just didn't bother to post the code that causes it to be recursive, but I don't see how it can be.
Christian Graus - C++ MVP
|
|
|
|