|
How to create web form at runtime?
|
|
|
|
|
ss2050 wrote: How to create web form at runtime?
Your question doesn't made any sense. You need to rephrase it. Read this[^]
|
|
|
|
|
I need to know that --"when i click on any button it automatically generate(create new web form) a seperate web form which doesnt exist in project anywhere.
|
|
|
|
|
ss2050 wrote: I need to know that --"when i click on any button it automatically generate(create new web form) a seperate web form which doesnt exist in project anywhere.
What is your actual requirement?
Have you ever seen this type of functionality in any website?
This is not better way to add form.
If you can explain your requirement the we can help you.
Regard
Khan
please don't forget to vote on the post that helped you.
|
|
|
|
|
ya i have seen such type of functionality in forums creation.
I know very well that it is possible.
If u know then tell me
|
|
|
|
|
Who told u that they create new pages dynamically and how did u identified that????
In ASP.NET its not only difficult, or rather i would say its impossible. Who will complile those pages??? Are u willing to develop an online complier...
First clear your DBMS basics of how data should be stored and retrived in such cases. Don`t just ask silly questions if you don`t have any idea about it.
When you fail to plan, you are planning to fail.
|
|
|
|
|
if you cant develop ur logic, stop arguing
just say u cant do.
And dont tell me dbms , data can be stored in many ways. When i will do this thing i will send it to ,just write ur email here. within 2 days i will send you code
|
|
|
|
|
Plz tell me is it possible to use fileupload control in asp.net without postback(without using ajex).as i have a foam in which there is two textbox and to fileupload control so i want to submit all the data at one button which is knows as submit button .ant want to retrive the data of textbox and file (images )at next page.
|
|
|
|
|
gaurav mangal wrote: Plz tell me is it possible to use fileupload control in asp.net without postback(without using ajex)
May be using Activex control. But it's a bad design.
gaurav mangal wrote: ant want to retrive the data of textbox and file (images )at next page.
you can use any of the method what I said to your last question.
|
|
|
|
|
how to call a javascript function in page load
i can call a javascript function on button click
but with out user interaction i.e in page load
how can we call/run a javascript function
thanks in advance
vijay
|
|
|
|
|
Rgister the script using ClientScript.RegisterStartupScript() . Supply the JS function name as parameter. See the documentation[^]
|
|
|
|
|
make a function in jave script and all the java script code submit in that function.after that call it at page load by using this.
button.attribute.add("onclick","function()");
in place of button may be any control like textbox .
and function name in place of function ().
ok i am sure it will work
|
|
|
|
|
how to create a number of textboxes dynamically and how to retrive the value of these textbox at nextpage
actually i have some textbox :
child
Name of the daughter/son:
Date of issue:
Place of issue:
Date of expiry:
Date of birth:
Seat preference:
Meal preference:
Paste your picture :
all have one textbox .i want to generate no. of the entries this is for one child .i want a user select 3 from dropdownlist and 24 textbox should be on next page .and after enter the details of children .all data should be retrive at nextpage.
plz suggest me what should i do.
thanks
|
|
|
|
|
gaurav mangal wrote: how to create a number of textboxes dynamically and how to retrive the value of these textbox at nextpage
For creating dynamic controls, use GridView/Datagrid with template column and add rows to it. This is the easy way to do it without worrying about viewstate.
You got many ways to pass values from current page to next page. You can use cross page post back. Or store the data in a temporary location (a temporary table in the DB or a custom type in the session) and access it in the next page.
|
|
|
|
|
Thanks for the response.
actually i am using hidden fields for passing values from one page to other page.
& i want to generate a block of textboxes at run time as i have 4 textbox at tha page but now i want at run time when a user select 4 from dropdown then 16 textboxes generate at next page.
ok i have done it by using aspx page and by using aspx.cs page also .but when i use aspx page the id of the 5 th textbox is same to the first textbox .so how it is possible to retrive the values at next page.
so main problem is to generate the unique id for 5th textbox how is ti possible.
if any one know then tell me.
|
|
|
|
|
how to use upload control in asp.net.is it use without load button .or load the file without postback page.
|
|
|
|
|
gaurav mangal wrote: how to use upload control in asp.net
It's trivial. Just drag and drop control from toolbox.
|
|
|
|
|
Dear All,
I am using C# , asp.net 2.0 and Ajax1.0.
My requirement is that I have to I have to give user interface where
He write the body of mail and attach the file which has to tranfer through mail.
My question is how can I provides or which control should I use so that whatever user writes in same manner It will deliver that is if he has used new line or break. In body of mail should also show the same..
In short I want to build message textbox just like when we write new post message text box comes.
Please guide me.
Thank you
imran khan
|
|
|
|
|
Good lord, do you know anything about ASP.NET ? Seriously, I don't see how you can ask this with a straight face ? You want a textbox that takes line breaks ? Like the, um, TEXTBOX control ?
Buy a book on ASP.NET
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
You are looking for WYSIWYG[^] editor. FCK editor is good and can easily integrate with ASP.NET app. Also as CG said, please purchase a good book.
|
|
|
|
|
i have 2 dropdownlist. in selected changed of first i bind the secend. when i 2 times change the selected item in first it bind 2 times and i see that the datas in secend dropdown repeated. and i should remove all of the data in secend dropdown and then i bine it. how can i remove them ?
|
|
|
|
|
SecondDropDown.Items.Clear();
SecondDropDown.DataSource = YourDataSource;
SecondDropDown.DataBind();
|
|
|
|
|
|
i have two datetime fileds
8:00AM 07/05/2008 and 11:00AM 07/05/2008
how i substarct one time from an other like
8:00AM 07/05/2008 - 11:00AM 07/05/2008 ?
then i have to divide by 3
any help?
Regards
Rameez
|
|
|
|
|
rameez Raja wrote: how i substarct one time from an other like
Cast these into DateTime instances and subtract that DateTime you will get a TimeSpan instance.
rameez Raja wrote: then i have to divide by 3
What you have to divide by 3 ? DateTime ?
|
|
|
|