|
VC++ have an inbuild function named writeprofilestring( ) to write contents in an INI file.
similarly do we have inbuild function to read/write values in INI file (User created) in Web application C # because doing it via file reading and writing may fetch more time .
for instance the format has to be like below
[settings]
Image=0
Thanks in Advance
Archana
|
|
|
|
|
|
There's an article here on CP that includes a class for reading .ini files, .config files, and xml files in .net
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thanks for your reply .
I went through the article. It is using API function. How can I use it in webapplication. Can you please tell me
Thanks in Advance
Archana
|
|
|
|
|
Dear All,
When I tried to call method from VC++ component thru RCW concepts, I'm getting "Null Reference Exception"Error. Can anyone assist me on this?
|
|
|
|
|
Did you read this? All I can tell from whatever you've told is that you're not instantiating an object where you should be.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
I had instanciated it. However, still its remain same. Kindly, provide better remedy
|
|
|
|
|
With the information that you've provided, that's just not possible. How did you create this wrapper??
|
|
|
|
|
I had created Wrapper from Dotnet by using tlbimp. I used this command to create Wrapper from command prompt of Dotnet. The command is "tlbimp <vc++dll file="" location=""> / out: <rcw class="" location="" where="" you="" want="" to="" create="" it=""> /verdose"
If you execute this command, this would create RCW class for specified VC++ dll. Why did I created it in worng way? Is it so, Kindly provide betterment of it.
|
|
|
|
|
That's doing it the hard way, but it works. Is this a COM-based .DLL (registered using REGSVR32) or a library .DLL??
COM-based .DLL's you can add a reference to and Visual Studio will automatically generate the wrapper for you, without using the command line to do it.
|
|
|
|
|
Is it possible to cancel the deletion of a particular row in a datagrid view when user presses a delete key?
|
|
|
|
|
Ask for a confirmation.;P
Please explain about what you are doing right now and what you are expecting?
*jaans
|
|
|
|
|
Hope that's what he means... have to be a pretty speedy user to stop a process that will likely take about half a second
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|
|
i created a datagrid with two columns(employee name,designation). If user select rows and if selected row contains employee name="aaaa" then don't delete that row and other rows can be deleted.
|
|
|
|
|
what is the datafield....asign that field in delete link
Rajendran.AL
|
|
|
|
|
i m doing in windows form
|
|
|
|
|
Yes
can check ascii value for delete key, when user press delete key. and stop the key press event
tha's all
|
|
|
|
|
how to stop the key press event?
|
|
|
|
|
what u want exactly....otherwise send your code..
Rajendran.AL
|
|
|
|
|
i created a datagrid with two columns(employee name,designation). If user select rows and if selected row contains employee name="aaaa" then don't delete that row and other rows can be deleted.
my code goes like this, initially i done dataview.AllowDelete=false to stop deletion.
private void dataGrid1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyData.ToString()=="Delete")
{
for(int i=0;i<dv.Table.Rows.Count;i++) //dv is dataview
{
if(((DataGrid)sender).IsSelected(i))
{
if(!(((DataGrid)sender)[0,i].ToString()=="aaaa"))
{
dv.AllowDelete=true;
dv.Delete(i);
datagrid.DataSource=dv;
dv.AllowDelete=false;
} } } } }
using this code when rows are selected and delete key is pressed first last column value get deleted not whole row.
|
|
|
|
|
I am trying to send email but it is give the following error "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for ". Can anyone help me? thanks
this is my code
int property = Convert.ToInt32(this.ddlPropertyName.SelectedValue);
if (ws.AddMessages(txtTo.Text, txtFrom.Text, txtContent.Text, property, txtNegotiator.Text, txtSubject.Text) == true)
{
System.Net.Mail.SmtpClient sc = new SmtpClient();
System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage(txtFrom.Text, txtTo.Text, txtSubject.Text, txtContent.Text);
sc.Host = "localhost"; //"smtp.gmail.com";
try
{
sc.Send(mail);
Response.Write("Your Email has been sent sucessfully - Thank You");
}
catch (Exception ie)
{
throw ie;
}
}
|
|
|
|
|
Your server won't send the message, you code is working. Lookup relaying and you'll see what the problem is. You must use a domain that the exchange server recognizes, unless it is open relay(which is bad).
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
When I open Previous project,IDE notify :
“Application procedures required for the project(xxx.csproj) are not installed.
Has been installed to ensure that the project types (. Csproj) applications.”
I created it in XP with VS05 ago.
Now I open it in Server2003 with VS08.
What is the reason?
Thanks.
|
|
|
|
|
Hi,
Ive been trying to add a trackbar to the property grid form element in c#.
Unfortanely i only find you can draw pre defined controls with
UIType Editor and Control Paint. (Checkboxes, border style and little more).
Does anybody have some feeling about if this is possible? To draw a trackbar
on a property grid?
Thank u
|
|
|
|