|
Can`t the file be attached directly from the file field ie .
I tried attaching the file without saving it on the server but i face the foll problem..
When i select a file path which contains no spaces such as C:\Abc\file.txt
from the file field,the attachment gets attached perfectly.Now here`s the problem....
When i select a file path which contain spaces such as
c:\My Documents\My pictures\Abc.jpg it gives an invalid attachment error.How i go about this .. pls help I don`t want to save the attachment on the server.
|
|
|
|
|
How can i get data from my Default.aspx to my Control?
I've tried several things, like creating a property in the classes, but it still wont work
I can't figure it out
I'm using asp.net with c# in 2.0
please help! Thanks in advance
Stef
|
|
|
|
|
steffw wrote: How can i get data from my Default.aspx to my Control?
Which control ? is it any user or custom control ?
steffw wrote: I've tried several things, like creating a property in the classes, but it still wont work
Why ?
Can you post what you have done and What type of control are you using ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
It is an UserControl, and i've tried to cast the page class in the user control and tried to at a property... But I noticed that you needed namespaces for that and I don't use those
Stef
|
|
|
|
|
Why don't you pass the value using Session/ QueryString
to pass those values from Default to other page Where you are using USer Control
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
1. You can add a public property and initialize it from the page initialize method. If you are using property then you can assingn value through html code in the aspx page or dynamically pass value throgh code behind
2. You can use session, application etc.. variables for passing data.
Gg
|
|
|
|
|
I've tried the first one, didn't work out... I'm now using sessions but is this good for the performance?
Stef
|
|
|
|
|
|
|
I have been told by many people that javascript is the way forward for validating the amount of characters in a field, however i have tried several snippets of java code (that work in an html document) and i cant seem to get them to function alongside my aspx page.
this is proving to be quite a pain as it is putting the breaks on my progression, i need to learn javascript and am doing so bit by bit, but more importantly i need practice with asp.net coding.
this is why i am creating an application, but this is a necessary part of it.
below is the link to the code i have tried..
i have tried substituting the names in all field and cant really see why it wouldnt work.
any help, or code, or anything really would be much appreciate.
and if it is easier by viewing my code let me know and i will post it....
http://javascript.internet.com/forms/val-pass.html
many thanks,
John Kinsella
John Michael Kinsella
kinsellajohn@hotmail.com
|
|
|
|
|
Can you post the Javascipt code ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Enter your password twice.
(At least 6 characters, 12 characters max, and spaces are not allowed.)
Password:
Verify password:
Free JavaScripts provided
by The JavaScript Source
Will the asp code help aswell???
John Michael Kinsella
kinsellajohn@hotmail.com
|
|
|
|
|
I am facing one problem.
I am applying theme to a page dynamically.
Theme contains styles properties for the LinkButton button having two SkinID="Normal" and SkinID="Highlight"
Now there is a LinkButton control on a webpage and by default its SkinID="Normal"
Now in javascript I want to change the SkinID of the LinkButton to "Highlight"
Is it possible.??
Ashwani
|
|
|
|
|
u can do it by giving some id to both the styles.
first remove the style by
var newNode = document.getElementByID("Normal");
if(newNode)
{
var oRoot = newNode.parentNode;
oRoot.removeChild(newNode);
}
the add the new style.
var elem = document.createElement('style');
elem.id = "Highlight";
elem.type = "text/css";
elem.text = "ur style property";
document.getElementsByTagName('head')[0].appendChild(elem);
or else u try for
document.getElementByID("Normal").id = "Highlight";
|
|
|
|
|
Hi TO ALL,
I WANT TO KNOW THAT WHEN I SEND EMAIL FROM MY YAHOO ID TO MY FRIEND GMAIL ID WHAT WILL BE THE BACKGROUND PROCESS.
I know this questions is not belongs to ASP.NET Code....
Mkanchha
|
|
|
|
|
in brief - It will first check for the "to" address and make a match of that from DNS if it is found the ur message will be enrouted to that server where it will get stored. Next time the person opens gmail can see that.
It is just like we are storing data in database then retriving that by using some ID. In this case data u are sending to store in gmail's db.
|
|
|
|
|
Thanks for your Reply.
Mkanchha
|
|
|
|
|
Hi,
I have a C#.net application in which i have read the datas from excel sheet and displayed in a datagrid in my Aspx form.
The code is here
private void Button2_Click(object sender, System.EventArgs e)
{
try
{
string strConnection = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Salary.xls;Extended Properties=""Excel 8.0;HDR=YES;""";
OleDbConnection conn = new OleDbConnection(strConnection);
//conn.Open();
OleDbCommand command = new OleDbCommand("SELECT * FROM [Sheet1$]", conn);
// command.Connection = conn;
// command.CommandType = CommandType.Text;
// command.CommandText = "SELECT * FROM [Sheet1]";
OleDbDataAdapter da = new OleDbDataAdapter(command);
DataSet ds = new DataSet();
//DataTable dt = new DataTable();
conn.Open();
da.Fill(ds, "EmpSal");
DataGrid1.DataSource=ds;
DataGrid1.DataBind();
//da.Fill(dt);
conn.Close();
lblError.Text="The Excel sheet has been read";
//return dt;
}
catch (Exception ex)
{
Response.Write( ex.Message);
//return null;
}
}
the thing is that i have to upload the datas into the mysql database table. can anybody pls help me with the C#.net code. i need to use only mysql database.(coz we r using mysql db in our project)
Regards
Vijay.
|
|
|
|
|
Are you able to display the excel data in grid ?
|
|
|
|
|
ya i can read data in datagrid with column names also.. but i don't know how to insert those datas in mysql database table. pls help me..
|
|
|
|
|
I need to implement a server farm with 10 machines.
- How can I share the sessions ?
- Where I should create the session ?
- Is it needed to copy my entire ASPX application in all servers ?
- Which is good program for load balancing ?
- Which will be the entry point of the request ?
Please guide me.
|
|
|
|
|
Hi,
This is my first post and i have a problem in asp.net 2.0
You have a drop down list and a calender control.
Drop down has items say one,two,three...
if u select any item from dropdown list the appropriate date should get the focus in the calender control
can anyone tell me how the focus should come on calender control when i select a city in the dropdown
Thanks
Mukkanti
|
|
|
|
|
HI,
Have you tried any code so far?
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
More information is always needed, what is your code behind? The simple logic is, to make sure your drop down menu is in POSTBACK, I'd bulid a Case statment, to set focus on whatever needs focus depending on what answer it was.
|
|
|
|
|
i am using c# as code-behind
can you send me the code please
its urgent
Thanks
Mukkanti
|
|
|
|