|
If you like Microsoft technology, I recommend you to give a try "Silverlight".. that's awesome!
|
|
|
|
|
hi,
if the user enters space in the textbox and submits it by clicking error. How can i validate it .
only space should not be allowed. Please anyone help me out in this. \
|
|
|
|
|
You can trim the whitespace and check for the value. If it is blank, alert message. Javascript don't have an inbuilt trim method. Check this[^]
|
|
|
|
|
You can use the ASP.NET validator controls, here is an example using the RequiredFieldValidator.
It will not accept a space as valid input.
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" Display="Dynamic"
ErrorMessage="Enter a valid value!"></asp:RequiredFieldValidator>
<asp:Button ID="Button1" runat="server" Text="Button" />
|
|
|
|
|
Hi,
I am developing an application, which needs a pop up window to be opened, when a button is clicked, i have tried out Response.redirect, but then it navigates from one page to another, i want both the windows to be opened,
can some body help me in this regard
|
|
|
|
|
You can use ClientScriptManager.RegisterStartUpScript("name","your popup JS") to open a popup window. Or use simple Response.Write()
|
|
|
|
|
Pls can you be more clear with the post, i have never used the function said above, can you explain the parameters for the function..
and another important issue is that, i am creating the button dynamically and for that button click, i should be able to open a popup window
|
|
|
|
|
It is used to register client side scripts to the page. The script you specified inside that will be added to the page. See the following sample.
ClientScriptManager.RegisterStartUpScript("SampleAlert","<script language='javascript'>alert('hi') </script>"); See the MSDN[^] documentation
|
|
|
|
|
Hello Friends,
I want to copy the contents(subdirectories and files) from source folder into destination folder.
Here is my code ...........
DirectoryInfo dir=new DirectoryInfo(MapPath(".")+"\\"+"Images");
dir.MoveTo(MapPath(".")+"\\"+"Hello");
and also I've set <identity impersonate="true" /> in web.config
The error i'm getting is given below...
Access to the path "c:\inetpub\wwwroot\Rough\Images" is denied.
|
|
|
|
|
The Knowledge wrote: and also I've set <identity impersonate="true"> in web.config
Do impersonation before the move. Undo it after the move. Search google for doing this, you will find many links.
|
|
|
|
|
Hi everyone.
i am new in reporting.
How do i pass parameters in report.rdlc dynamically?
I want to pass parameter from Access database.
I am using VB.
Thanks
Sanjay Kunjam
------------------------------------------------------------------
"Computers are useless. They can only give answers" - Pablo Picasso
------------------------------------------------------------------
|
|
|
|
|
How do i make a query to Global Address List?
|
|
|
|
|
You can use the System.DirectoryServices namespace, here is an example[^].
|
|
|
|
|
Dear Friend..
I need to create a virtual directory for my application.If i do it,its asking for the alias name.After giving the alias name,its saying that the name already exists.But that alias name doesn't exist in my IIS before.What could be the problem..? I am getting the following message when i try to give the alias name.
"The alias LM/W3SVC/1/Root/iCashCard already exists.Please choose a different alias."
Why does this occur.? Someone help in this regard as early as possible..
Regards,
Balaguru
|
|
|
|
|
Balagurunathan S wrote: "The alias LM/W3SVC/1/Root/iCashCard already exists.Please choose a different alias."
This[^] would help you
|
|
|
|
|
Hi,
I have a Main.aspx. I put a Grid control on it. Main page having links of other page. I am sending some value from other page to Main page and adding into Grid. Again I am navigating to other page and sending some more data to Main page to add in Grid.When it load Main page second time, grid becomes empty.
You can visualize my Requirment as: I am selecting products from different page and putting it over Main page.
Hope my techie friends understood my requirement.
Thanks a lot in advance !
|
|
|
|
|
AFAIK, you are not keeping the grid values anywhere. You can keep the data source of grid view in session and update it when new links are added. Load the data source from session and bind gridview.
|
|
|
|
|
and also check the postback property too......
manoj Kumar Jha
"Learn to smile at every situation. See it as an opportunity to prove your strength and ability."
|
|
|
|
|
Hi All,
I want to add a table to my form and also I need to enter data throught text box (s) into tablecells whenever iI press add button using ASP.Net(Vb.net) at dynamically. Every time I need to add 3-cells in everyrow whenever I hit Add button. Please help me how to overcome this situation.
Please guide me.
Thanks in Adv. to everyone.
kolags@hotmail.com
|
|
|
|
|
You can use Table class. Add the Table instance to a content placeholder.
|
|
|
|
|
Hi Navaneeth,
Thanks for soon response . Could you please give me some more specifically?
Hope you could understand my requirement. I have a calendar controls, below that 2- text boxes and one Add & cancel buttons are available. Whenever user selected a date from calendar, the selected date will be placed into textbox1 and manually user has to enter data in textbox2 (like some one’s b’day), if hits add, immediately the corresponding data (textboxes) has to be adding into two separate cells in each row of a table.
Now I am able to add data, but only one selected item, means whenever I selected any other date from calendar controls that time table is disappearing, after select and added, automatically first one is overriding.
Expecting some code snippet.
Don't take any decisions when you are Angry,
Don't make any promises when you are Happy.
|
|
|
|
|
Why you are using Table here ? Is it just for displaying in tabular form, or any other reasons ? If it is only for displaying tabularly, you can use DataGrid/GridView . When user enters data in to the textbox, fetch that and create a DataTable . Bind this datatable with DataGrid/GridView. Store datatable in Session/ViewState for future use. When user clicks the textbox again, check DataTable existance in Session/ViewState. Cast it and add new rows and re-bind grid. This will be easy solution than using tables,
|
|
|
|
|
Hi Navaneeth,
Thank you very much. I have completed my task with your suggestion by using datagrid.
kolags@hotmail.com
Don't take any decisions when you are Angry,
Don't make any promises when you are Happy.
|
|
|
|
|
Glad to know that it helped.
|
|
|
|
|
hi all
i want to access the master page control in a webpage.
how can i access .
using c#,asp.net
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|