|
Hi, In my app i generated a tablerows dynamically through javascript,after the postback the dynamic rows are vanished.
what i have to do maintain dynamic rows(contain texboxes in each cell)?
After filling the textboxes(html textboxe,i want to pass all the values to the database,
How can i pass these textbox values to server?
Plz give me some idea regarding that?
Advanced Thanks
Srilakshmi.
|
|
|
|
|
srilu nagalla wrote: what i have to do maintain dynamic rows(contain texboxes in each cell)?
You have to recreate them on every postback.
srilu nagalla wrote: After filling the textboxes(html textboxe,i want to pass all the values to the database,
How can i pass these textbox values to server?
If the fields are inside the form that is posted to the server, their values are included in the data that is posted. You can use Request.Form to retrieve the values on the server.
---
b { font-weight: normal; }
|
|
|
|
|
Where are you calling the Javascript to create dynamic textboxes?
The script might not be running after the postback causing the textboxes to vanish.
I still cudnt figure out why are you creating textboxes with Javascript.
Please explain your scenario so that anyone here can help you out or provide a better solution to your problem.
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
_mubashir wrote: Where are you calling the Javascript to create dynamic textboxes?
When i enter in page it contains table heading and one row with textboxes,after i fill boxes and then press "Enter" button then next row will add
_mubashir wrote: I still cudnt figure out why are you creating textboxes with Javascript.
For execution faster i want to add rows dynamically,to remove burden on the server.
Is their any wrong in my view? which is the best one,server side rows creation,client side creation
Which is the faster one? and eaiser one?
|
|
|
|
|
i have 2 labels 2 text boxes 1 button which on click should save the details in my database where as i also have a dropdownlist which should show all the names and a gridview which should contain all the hyper;inks to the fields.this is to be done using oracle as a backend.
i have designed the form but i am unable to connect it to database as i don't have a knowledge of using oracle as backend.
so kindly plz help me.
ratish
|
|
|
|
|
There are a number of articles written on this...Use google first, try them out and if you stuck somewhere using the code then consult here.
The members here are considered to work themselves rather than they are provided with the spoon feed.
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
see i have created a code as i told u i am facing a problem in connectivity if u wan't i can send u the code.
|
|
|
|
|
plz post the exact problem that you are having to get connected to the oracle database.
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
hi
using system.data.odbc;
thn create a ODBC connection string
and cofigure ODBC and DNS through Control Panel.
deepak
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
hi guys
I want to create folder with help of .NET. When user clicks on new folder from menu then new folder will be created on particular path.
Please help if any one knows..........
Thanks in advance
Regards,
DJ Rock
|
|
|
|
|
hi
hope tht'll helps u
<br />
<br />
string myfolder = ("d:\\abc" );<br />
<br />
System.IO.Directory.CreateDirectory(myfolder);<br />
<br />
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
hey deepak thanks a lot man
Regards,
DJ Rock
|
|
|
|
|
Hi,
i have the four tier application,the first tier in the presentatin ,second tier is the business entity ,third tire in the data access layer and the on the fourth tier the database.
i wnt to implement the business Entity through collections,the data acces layer fill the business entity and the business entity fill the presentation layer.tell me how can i code the business entity ??
|
|
|
|
|
i want to get the key press ascii value using java script..
|
|
|
|
|
hi
u can modified following cod as per ur requirment,hope tht'll help u
<br />
<script type="text/javascript"><br />
function KeyCheck(myField, e)<br />
{<br />
var key;<br />
if (window.event)<br />
key = window.event.keyCode;<br />
else if(e)<br />
key = e.which;<br />
else <br />
return true;<br />
}<br />
</script><br />
smile a lot its costs nothing
deepak
|
|
|
|
|
hi,
I am doing an application which displays images dynamically.i have resized the images to fit to the screen.
Now when i display the images, the images seems to be pixelized.
There are more dots around the border of the image.
How can i reduce this pixelization?
Any ideas.
Thanks in advance
Regards
Anuradha
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
hi
u cant reduce tht.but u can use .jpg,.jpeg,.gif,.png formats as well as the picture size is 900*900 pixel.tht'll b fix into ur screen
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
Hi,
Thanks for your response.But i want to be of size 150x150.but the image appearance is very bad.
Anyway thanks for ur reply
Exelio
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Check this code
<br />
public void ResizeAndSave(int MaxWidth, int MaxHeight, string UrlAndFileName, string UrlAndnewFileName)<br />
{<br />
Bitmap OriginalBmp = (System.Drawing.Bitmap)Image.FromFile(UrlAndFileName).Clone();<br />
Size ResizedDimensions = GetDimentions(MaxWidth, MaxHeight, ref OriginalBmp);<br />
Bitmap NewBmp = new Bitmap(OriginalBmp, ResizedDimensions);<br />
NewBmp.Save(UrlAndnewFileName, System.Drawing.Imaging.ImageFormat.Jpeg);<br />
}<br />
<br />
<br />
private static Size GetDimentions(int MaxWidth, int MaxHeight, ref Bitmap Bmp)<br />
{<br />
int Width;<br />
int Height;<br />
float Multiplier;<br />
<br />
Height = Bmp.Height;<br />
Width = Bmp.Width;<br />
<br />
if (Height <= MaxHeight && Width <= MaxWidth)<br />
return new Size(Width, Height);<br />
<br />
Multiplier = (float)((float)MaxWidth / (float)Width);<br />
if ((Height * Multiplier) <= MaxHeight)<br />
{<br />
Height = (int)(Height * Multiplier);<br />
return new Size(MaxWidth, Height);<br />
}<br />
<br />
Multiplier = (float)MaxHeight / (float)Height;<br />
Width = (int)(Width * Multiplier);<br />
return new Size(Width, MaxHeight);<br />
}<br />
You must to invoice the resizeAndSave Function. the parameters are four
Here you have a parameters examples
MaxWidth : Final width size (pix) = 200
MaxHeight : Final height size (pix) = 200
UrlAndFileName : The original image Url = c:\folder1\image1.jpg
UrlAndnewFileName : The final path and file name, to save the NEW resized image = c:\newimage.jpg
PD: Only works with jpg images
Check tue quality picture and tell me if it you are looking for.
keep Learning and you never will be out of date...
|
|
|
|
|
Hi...
I am try to do moveitems between two listbox to anothher using javascript. On page load these listbox getitems by databind to a datasource. But I could not reach listbox from javascript by using ids
document.getElementById("listbox1")
What can I do?
karanba
|
|
|
|
|
I think you are calling javascript before all the controls getting loaded ....
where are you calling that javascript function can you elaborate ?
|
|
|
|
|
no. page is totally load when I made call
karanba
|
|
|
|
|
Hi Dear,
Fiest of all please calrify if you are using master page or any user control.
I this is the case please try to find the exact id of the control from view source.
You have not mentioned in which event you are handling this code. Please provide some clarification regarding this.
|
|
|
|
|
default.master
+ default.aspx
+ asp:listbox1
+ asp:listbox2
I use master page. The control is inside default.aspx and the id is listbox1 and listbox2. I use asp.net 2.0 c#. I both try to make enableviewstate true and false.
karanba
|
|
|
|
|
Hi my dears,
I`ve written a Web UserControl which has a timer with interval and elapsed event. and I want to raise an event in Timer elapsed method. then I defined a delegate and an event in my Web UserControl . Now I should register this event to my default.aspx page and catch the raised event from my web userControl in a method in my default.aspx page.
But I dont know how to register event in aspx page! the code I used is :
<br />
public delegate void myDelegate(string s);<br />
public static myDelegate myEvevnt;<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
System.Timers.Timer myTimer = new System.Timers.Timer();<br />
myTimer.Elapsed += new System.Timers.ElapsedEventHandler(myTimer_Elapsed);<br />
myTimer.Interval = 3000;<br />
myTimer.Enabled = true;<br />
}<br />
protected static void myTimer_Elapsed(object source, ElapsedEventArgs e)<br />
{<br />
myEvevnt("hhh");<br />
}<br />
public partial class _Default : System.Web.UI.Page <br />
{<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
_Default.Event += new reminder.myDelegate (RecieveEvent);
}<br />
-- modified at 3:17 Wednesday 8th November, 2006
|
|
|
|