|
request you take help of System Administrator
Regards
KP
|
|
|
|
|
Hi friend
After Hitting the Enter key I want cursor focus back on text box how it possible can u help me. I am also using ajax panel all control in ajax panael.
My code for the Focus back on textbox
txtwrite.Focus()
but is work when textbox out of panel
i am also using javascript for Hitting the enter key
help me
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
I create one website, in it i want to put 1 option that when any new user log in at that time one random number generate of 10 digits for him. So, waht i can do for it?
Darshan
|
|
|
|
|
Write a class to generate random Number.
Random Number[^] this is generating the RandomPassword in that change the string value with 0 to 9 to get random number.
Regards,
Satips.
|
|
|
|
|
Use Random class present in System namespace
Create the object of the class and use Obejct.Next(Min,Max) method
my openion is create a random number for only 4 or 5 digits only and first five digits can be any thing Common or you can take time also 34677 3 min 46 sec 7 month and 7 of 2007
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... "
|
|
|
|
|
i am trying to edit value of dropdown in runtime in asp.net with c# code.
i need to code for this so i can edit and insert new values in run time.
i have also tried steve.taylor@astutemedia.com code
but not working plz send me specific code.
plz help me
goldenangel
|
|
|
|
|
PLease don't repost same question
You can do one thing write a javscript that will put the selected Dropdown item into textbox now you can edit that textbox.After editing it click a button Server side remove the selected item and add new text present in the textbox
What you think ? ;P
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... "
|
|
|
|
|
Since you are new, please read the forum guidelines. The highlights:
1. Do not repost the same question. You must be patient.
2. Do not use text speak like 'plz'
3. This forum is for people who have existing code and need to update it, fix it, etc. We are not going to give you all the code and do the work for you.
______________________
stuff + cats = awesome
|
|
|
|
|
i am trying to edit value of dropdown in runtime.
i need to code for this so i can edit and insert new values in run time.
i have also tried steve.taylor@astutemedia.com code
but not working plz send me specific code.
goldenangel
|
|
|
|
|
Hi see in my code that second if condition is nor working...,
Whats the probs in that?,
I am getting panel1...,
But when i am getting 1 value then its not displaying panel2...,
If Trim(txtflag.Text) = 0 Then
Panel1.Visible = True
Panel2.Visible = False
ElseIf Trim(txtflag.Text) = 1 Then
Panel1.Visible = False
Panel2.Visible = True
End If
Regards,
Magi
|
|
|
|
|
Put Break point at
Magh_M wrote: ElseIf Trim(txtflag.Text) = 1
And see whats wrong by Debugging your application Trim is String.Trim function right ?
in C# you should have == instead one = while performing isEqual operation
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... "
|
|
|
|
|
Sandeep Akhare wrote: And see whats wrong by Debugging your application Trim is String.Trim function right ?
in C# you should have == instead one = while performing isEqual operation
Looking at it, this is classic ASP using VB - therefore Trim as a standalone function is correct, and the language is not C#.
|
|
|
|
|
In VB one = is correct.
Does it definitely step into the second if and execute Panel2.Visible = True
If it steps in and executes that line then there is a problem elsewhere eg the panel is hidden behind something
Try taking the statement outside of an Else If and have something like:
If Trim(txtflag.Text) = 0 Then
Panel1.Visible = True
Panel2.Visible = False
End If
If Trim(txtflag.Text) = 1 Then
Panel1.Visible = False
Panel2.Visible = True
End If
Let me know what this does.
Dan
|
|
|
|
|
hello everyone,
i have a small doubt regarding the use of WebGrid/GRIDVIEW/DATAGRID.
I have a grid view.i have a button outside the GridView or dataGrid or WebGrid (say webgrid only).Now i want a javascript code such that i need to count the no of rows in the Grid.that should be called when i click the button.The Count should be show in the alert box.Plz help me urgent.
Thanks,
Murali
Murali
|
|
|
|
|
I don't know it is perfect answer or not
Run your appplication When page is displaying all data right click it and see the source code od your page
Now check how they are arrange Find the common name like that and write jabascript to get all those by document.getElementByName method
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... "
|
|
|
|
|
ThankQ Sandeep It is correct .It is working...
byeee
|
|
|
|
|
Its my pleasure dude i help in some sense
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... "
|
|
|
|
|
I have been trying all day to upload text file to server but I have this error.
Is something wrong?
Anybody who know how to solve this problem please help me out.
================================================================================================
Server Error in '/' Application.
--------------------------------------------------------------------------------
Could not find a part of the path 'D:\webhost\TextFiles\mydata.txt'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\webhost\TextFiles\mydata.txt'.
Source Error:
Line 75: {
Line 76: fileName = Server.MapPath("//TextFiles//mydata.txt");
Line 77: FileUpload.PostedFile.SaveAs(Server.MapPath("//TextFiles//mydata.txt"));
Line 78: input = "";
Line 79:
Source File: d:\webhost\471463016\Index.aspx Line: 77
==================================================================================================
Thank you so very much,
junior boy
|
|
|
|
|
Cunningly enough, the exception tells you what is wrong. The path D:\webhost\textfiles\ isn't valid. I'm going to guess here that the TextFiles directory isn't present at this location.
|
|
|
|
|
I think you are not providing the proper path
Are you sure TextFiles folder exist in your application
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... "
|
|
|
|
|
I tried to run on localhost on my computer it work fine but it didn't work on my server.
I'm not sure how to coding for proper path on the server please see.
FileUpload.PostedFile.SaveAs(Server.MapPath("TextFiles//mydata.txt"));
//Is this right?
If I have my webhost like this ftp://webhost.example.com/... <-- and I put all file and folder here.
And i'm sure I the TextFiles folder is existed.
Thank you million sir,
junior boy
|
|
|
|
|
OK Can't you access that and see folder exist or not ..........
Ok you can do one thing before uploading a file First check the Directory TextFiles exist or not if it not present there create with same name and put your file in that directory What you think my friend ?;)
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... "
|
|
|
|
|
The standard way of doing this would be to do the following:
if (!Directory.Exists(Server.MapPath("/TextFiles")))
Directory.Create(Server.MapPath("/TextFiles")); Then, you can do the save as operation. Note that the asp worker process will need permissions to write into your directory structure to do this.
|
|
|
|
|
I am really appreciated all your help sir.
I don't get it work yet but I am trying.
Thank you for all replied message again sir,
junior boy
|
|
|
|
|
I have been trying to upload all last night
please see this code:
================================================================================
string fileName = Server.MapPath("~/471463016/TextFiles/");
if(Directory.Exists(fileName))
Response.Write("Existed");
else
{
Directory.CreateDirectory(fileName);
Response.Write("Not Exist");
}
================================================================================
It shows me message: Existed
And then please see code:
================================================================================
Response.Write("Path = "+fileName);
try {
FileUpload.PostedFile.SaveAs(fileName+"mydata.txt");
}
catch(Execption ex){
Response.Write(" Error: " + ex.Message);
}
================================================================================
The result :
Path = D:\webhost\471463016\TextFiles\
Error: Access to the path 'D:\webhost\471463016\TextFiles\mydata.txt' is denied.
I don't really understand why I have the error when it show me the folder path is existed.
Believe me, I have been try so hard as i have never tried, I really need help because
I have deadline on July 7 Saturday to send my school project,sir.
Again, anyhelp will be really appreciated.
My email : big_kh@hotmail.com
Thank you million,
junior boy
|
|
|
|