|
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 ?
|
|
|
|
|
thnks for response
yes i have to divide time value /3
i mean 8:00AM/3 can i do ?
Any asp.net 2.0 Substraction functions ?
Regards
Rameez
|
|
|
|
|
Hi,
I have an editor control called FreeTextBox.
I have put it in a detailsview control.But it caused the detailsview control to become too wide and expand out of the DIV which contains the whole detailsview.
I checked the problem by removing the FreeTextBox from the detailsview and the detailsview width becomes fine.
How could I set the width of the FreeTextBox correctly so it won't cause the detailsview to expand?
I am too late but i will never give up
|
|
|
|
|
TheEagle wrote: I have an editor control called FreeTextBox.
Since this is a third party program issue, it's always better to ask in their support forum. I found FreeTextBox forum here[^], try your luck there.
All the best
|
|
|
|
|
Hi,
I create a login page in asp.net c# but I do not know the SQL connection to connect the SQL and check the username and password? Mostly I search online is about VB not asp.net #.
Anyone can help me?
Thanks.
Regards,
Katelva
|
|
|
|
|
Are you using inbuilt login control ?
katelva wrote: I do not know the SQL connection to connect the SQL and check the username and password?
System.Data.SQLClient is the namespace where ADO.NET classes used for communicating with SQL server are located. Use SQLConnection to create a connection. Use SQLCommand for supplying a query. Use SQLDataReader for reading the data.
|
|
|
|
|
Hi,
Thanks for your information.
But, I am wondering how to I validate the user input with SQL database using asp.net C#? For example, I create a login.aspx and I put the code in login.aspx.cs. I have put the SQL connection inside but I do not know how to I validate user input with SQL database? Do you have any good websites suggested for that? Mostly I search is in VB.net not asp.net in C#. I don't know the asp.net C# syntax of checking the user input with SQL database?
Thanks.
Regards,
Katelva
|
|
|
|