|
sjs4u wrote: Is it possible?
Yes. Hook onkeypressed or changed JS events. Get the current text from textbox1 and set to textbox2.
|
|
|
|
|
R u really a programmer?
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
|
cos I cant believe, an ASP.NET programmer dont know what u have asked
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
My question was simple.
Though I know the JS and the above solution given by navneet.
I was thinking, if any other solution was there or not instead of writing JS.
|
|
|
|
|
U can use events running on server also, but it'll cause postback n ur page will be refreshed on every change. so the best solution is using Javascript use "tb1.onlostfocus" event for best result if u want to change tb2 after completing writting in tb1. otherwise use tb1.onkeyup" for changing tb2 for every character pressed in tb1.
got it buddy?
Anand Desai
Developer
Atharva Infotech
|
|
|
|
|
|
Is it possible? And if it is, then how? (InProc session with cookieless="false")
modified on Tuesday, August 5, 2008 3:38 AM
|
|
|
|
|
Sessions are not shared. Why do you want to do that ?
|
|
|
|
|
Sessions are unique to the user and their browser
|
|
|
|
|
hi every one,
I developed one web application from there i calling one table from database
that time i retrieving all the info from table but images are not displaying to my page.I cleared mention the path of image file in varchar field.why i am not getting?
|
|
|
|
|
Hi,
I think you should refer to the relative path, and not the absolute path as to show the image in the web page.
Here is just a suggestion. When you are saving the image, save only the image name in the database, and get the relative path and construct the path and display.
Hope it helps,
Thx,
Gayani
|
|
|
|
|
hiiiii......
The images you stored in the database have to be converted into bytes while retreiving, for this you hav to store image path,it's length n it's type...
you will also need a handler file..
try it....i hope it will help you, i have done this before!!!!
|
|
|
|
|
In my form there are other controls .I want to print only report viewer on button click .
I use window.print() on that button click but it print all the controls and master page tree view etc.That are displayed in that page.How can i print reportviewer on button click
|
|
|
|
|
window.print tells browser to print the whole page. It can't print the required area alone. Normal method is to put the things required on a separate page and print that page.
|
|
|
|
|
Hi guys Good morning,
If u see some job ports they will give some textbox to enter work experience...,
If u have more than one, then whenever u will click add more link it will create dynamic textbox and there u can add another one,
Like that the option will continue for number of times..,
Finally when we will click the button it have to store in database..,
How they are getting the dynamic controls id and saving it in to datatbase...,
I have searched in google..,
But they are talking about dynamic control creation but i didnt get how to save those datas in to our database...,
Plz give me some ideas or url sites regarding this...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Follow these steps
Step 1 : Create one method to create dynamic TextBoxes controls
public int count = 5;
public void createTextBoxes()
{
if (ViewState["count"] != null)
count = int.Parse(ViewState["count"].ToString());
else
ViewState["count"] = "5";
TextBox myText;
Table tbl = new Table();
TableRow tr;
TableCell tc;
for(int i=1;i<=count;i++)
{
myText = new TextBox();
tr = new TableRow();
tc = new TableCell();
myText.ID = "txt_" + i.ToString();
tc.Controls.Add(myText);
tr.Cells.Add(tc);
tbl.Rows.Add(tr);
}
PH.Controls.Add(tbl);
}
Step 2: Call this method on page load event.Do not call this method on IsPostBack Condition.
Page_Load()
{
createTextBoxes();
}
Step 3: Now On save button click event, Write this code
if (ViewState["count"] != null)
count = int.Parse(ViewState["count"].ToString());
else
ViewState["count"] = "5";
for(int i=1;i<=count;i++)
{
String myText = ((TextBox)this.Page.FindControl("txt_"+ i.ToString())).Text;
}
Step 4: If you want to add more TextBox on Add event,just increament viewState value and call that method
please don't forget to vote on the post that helped you.
|
|
|
|
|
No i didnt ask this one,
I asked actually in one link button click it have to add one textbox in my form...,
After enter that if my enduser need to fill one more if he click that link button it have to add one more textbox like this i need...........,
Finall the datas have to store into my database
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
You can create TextBox instance and add it to a placeholder. But you will end up with viewstate issues. So easy method would be adding text boxes to a gridview/datagrid.
Put a gridview with textboxes placed inside template columns. When user clicks the "Add more" button, add a new row to the grid's datasource and rebind grid. Viewstate for the newly created row will be maintained along with it's parent control, hence you don't get weird viewstate problems.
|
|
|
|
|
YA in footer template if i include, my template textboxes its ok,
But in starting time there is no records in my grid...,
So its not at all showing the footer template columns...,
How u will resolve this one?,
Ya if u dont mind give me some articles of thios one,
(URL sites)
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
Hi
I want to create menu using CSS.
there are four depth level in my menu.
Main Menu -> Sub Menu -> 2SubMenu -> 3SubMenu.
suppose if there is 10 Items in 2SubMenu then I want to break these into two or three(depends on items count) columns each contains 5 items.
for example i want like this -
Main
SubMenu->AA|DD
BB|EE
CC|FF
HH|JJ
UU|YY
can any body help me .
how to break using CSS. which property in CSS supports such facility.
Thanks & Regards,
Sunil
|
|
|
|
|
$unil Dhiman wrote: can any body help me .
Here is many types of css based menu.
Visit Dynamic Drive
please don't forget to vote on the post that helped you.
|
|
|
|
|
Hi, thanks for looking
Im having a little problem with the popupcontrolextender (pce)
I made it work with a gridview inside the pce (it displays data dinamically, sorts, pages... it works fine)
I have the following:
A linkbutton X as the TargetControlID of the pce
A panel as the PopupControlID which has an update panel inside with conditional update to the linkbuton X click event
Inside this panel i have the gridview with its corresponding sqldatasource
What i now need to do is to put a formview inside the pce and whenever the pce shows the formview, i need to be able to view, edit and insert in the formview
It shows the formmview in edit mode, but i cant change it to edit mode
I have the following:
A linkbutton X as the TargetControlID
A panel as the PopupControlID wich has an update panel inside with conditional update to the linkbuton X click event
Inside this panel i have the formview with its corresponding sqldatasource
Since the update panel has conditional update and only fires when the linkbutton X is clicked it doesnt update
This doesnt work if the formview edit, delete and insert options are Buttons
I noticed that it works if the edit, delete and insert options are linkbuttons
Does anyone have a workaround for this??
Any suggestions?
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
HI,
I Have a situation in my project where i have to send mails to registered users automatically ina particular time and particular day (Like 10 am of monday wednesday in a week or 9 pm of every day in a week). The user registered can select his timezone.So i have to send mail to them according to their time zone. . Somebody plz help me out...
Thanx in advance
|
|
|
|
|
What is your application? asp.net? Your requirement does not seem an event driven, thus your best bet is to use back-end processing. You need either a service or scheduled task / job to run at specific day/time. Then based on your rules send out the emails.
Yusuf
|
|
|
|