|
Visual Studio can be used to edit XML files. BTW, what this has o do with ASP.NET ?
|
|
|
|
|
thanks so much..
and i know vs .net can edit XML files..
but our clients suggest us to to it.
so we must find some way that use xml_notepad_2007 to read edit and check XML files in .net 2.0.
can somebody help me ?
Study...
|
|
|
|
|
Hi i need to convert .php file to .aspx.
I have this script.php file in my application. I need to change this .php to .aspx on page load.
$result = array();
if (isset($_FILES['photoupload']) )
{
$file = $_FILES['photoupload']['tmp_name'];
$error = false;
$size = false;
if (!is_uploaded_file($file) || ($_FILES['photoupload']['size'] > 2 * 1024 * 1024) )
{
$error = 'Please upload only files smaller than 2Mb!';
}
if (!$error && !($size = @getimagesize($file) ) )
{
$error = 'Please upload only images, no other files are supported.';
}
if (!$error && !in_array($size[2], array(1, 2, 3, 7, 8) ) )
{
$error = 'Please upload only images of type JPEG.';
}
if (!$error && ($size[0] < 25) || ($size[1] < 25))
{
$error = 'Please upload an image bigger than 25px.';
}
$addr = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$log = fopen('script.log', 'a');
fputs($log, ($error ? 'FAILED' : 'SUCCESS') . ' - ' . preg_replace('/^[^.]+/', '***', $addr) . ": {$_FILES['photoupload']['name']} - {$_FILES['photoupload']['size']} byte\n" );
fclose($log);
if ($error)
{
$result['result'] = 'failed';
$result['error'] = $error;
}
else
{
$result['result'] = 'success';
$result['size'] = "Uploaded an image ({$size['mime']}) with {$size[0]}px/{$size[1]}px.";
}
}
else
{
$result['result'] = 'error';
$result['error'] = 'Missing file or internal error!';
}
if (!headers_sent() )
{
header('Content-type: application/json');
}
echo json_encode($result);
I hope ur's reply.
Thanks
Every Successful Person Have A Painful Story
|
|
|
|
|
Hi i have a small doubt regarding dataset.
Is dataset is limit in its size. It takes only fixed rows?
if so, up to how many rows it would take?
if we give more than the limit. what exception it will give...
if any one have idea..please respond.
thanking you
G. Satish
|
|
|
|
|
Check this[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
|
|
|
|
|
Hi,
I am working on URL rewriting. Everything is working fine with VS 2005 web server. But when I configured in IIS it is not working.
The urls look like the following:
http://localhost/Prodcuts/Categories/View.Shirts
http://localhost/Prodcuts/Categories/AddNew.Category
So extension will change according to the functionality. I could not figure it out how to configure IIS 5.1 to work with these extension. Please help me. Thank you.
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Hi
I need your help..i am in a problem like
In my webpage i have 2 textbox...initially both will have to show..user has to enter value any one of these 2 textbox and has some regular expression validation is also there..
eg..one textbox is for bank a/c and another is for someother bank a/c no each one has it's on regular expression validation ..user has to fill either one of these textboxes..for that i have to create a custom validation control..because i am a beginer in asp.net..so can anybody help me to make custom control for this problem....for that i can reuse it again in my project..
regards
alex.
|
|
|
|
|
Dear,
Your need is simple
put a custome valid ctrl in web page, under this control
{
if((TextBox1.Text=="")&&(TextBox2.Text==""))
//display error message
//set a flag variable
}
But the dear...These validations are pure when u publish the site in web
if u know, try with javascript
|
|
|
|
|
Hi,
I have few objects in my web service I need to parse them into System.Xml.XmlDocument automatically. So that the object should be displayed as xml document. And if parsing fails then it should throw an exception that the format is incorrect. So that I can say the user to resend the values.
Can anybody pls. suggest me to do XML parsing.
Thanks a lot,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
I have to give the client to open the mail message window of outlook on clicking the button.It is opening on the server on button click event, but when he client try to open it on the button click , it is not opening.
Please help.
I am using the following code
system.diagnosis.process.start("mailto:");
I got some code
Application a = new Application();<br />
MailItem m = (MailItem)a.CreateItem(OlItemType.olMailItem);<br />
m.To = name;<br />
Object obj = new object();<br />
m.Display(obj);
I am getting the following error in the first line of code , which i provided , while ececuting on the IIS.
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
modified on Wednesday, June 18, 2008 2:31 AM
|
|
|
|
|
Hello
i have a question
in my compani each user have login in database
we are thinking go to the use one login
but i have the next ask
in case of audit how we can know what action are each user if we implement use one user for the login
someone can a commets, guide etc
regards
|
|
|
|
|
Obviously, you cannot, unless each user has a dedicated IP and you track that. But, you may as well track logins.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have GridView with EmployeeID, FirstName columns both are bound columns, and paging enabled. When the page is displayed, I see EmployeeID and FirstName in the GridView.
Now, I need to go to second page... while going to second page, I need to read first page's EmployeeIDs with Javascript and store it somewhere.
How can I do that?
Anyone...........Help!!!
CSharp Guy
|
|
|
|
|
Well, if you need the ids, put them in a hidden field, so you can get at them from javascript.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am having the toughest time trying to figure out how to make an ASP .NET Calendar's title a clickable link. I have come up empty handed trying to find an article. Is this a possible task?
|
|
|
|
|
I want to pass the value of a dropdownlist to a formviewlabel.
1. I use the dropdown to "choose" a record number then view that record in a gridview.
2. I use a formview NewButtonClick event to add a detail record.
3. I then want pass that record number on to the detail (from the dropdownlist to the formviewlabel) so I don't have to enter it manually.
I have read and tried a lot of different things that related to passing values between pages and nothing has worked. I haven't been able to find much on passing values between controls. Any help would be aprecated.
Thanks.......
modified on Wednesday, June 18, 2008 10:51 AM
|
|
|
|
|
Type question again in simple ..
|
|
|
|
|
I need to swap the default SQLserver providers out for the MsAccess providers. I have the providers installed, but the only tutorial I've been able to find is on creating a new project not switching over an existing one.
You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4....
-- El Corazon
|
|
|
|
|
I am developing a Webpage (.aspx) that contains a multi-tab ajax panel. Now, each of the tab panels contain several grids, textboxes, etc. As I am developing this page the code behind file aspx.cs is starting to get very large. At this point should I continue to add everything to this single page and code behind file or do something else?
Thanks,
Steve
|
|
|
|
|
i run aspnet_reg to create on exiting database
i configure the provider it is working well on the project. but on another project i can create user . but the cannot login . can any body help pls
|
|
|
|
|
what does 'I can create user but cannot login' mean ? How do you know you created a user ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i create user with create user control and i will see then in my database. when the want to login through login control. you see"your login attempt was not suceessful.please try again"
|
|
|
|
|
Did you use the application management console at any point?
It sounds like your webconfig is not set up to read your database and is trying to authenticate using the default aspnetdb database.
Check your App_Data folder to see if a database was automatically created.
If so then the the webconfig will need to be adjusted to point to your connection id.
I'd advise that you check that anyway even if there is no aspnetdb.
JimBob SquarePants
*******************************************************************
"He took everything personally, including our royalties!"
David St.Hubbins, Spinal Tap about Ian Faith, their ex-manager
*******************************************************************
|
|
|
|
|
|
thanks i remove the aspnetdb and it work
|
|
|
|