|
|
Perhaps this article could be of some help for you:
Understanding ASP.NET Roles and Membership - A Beginner's Tutorial[^]
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.
|
|
|
|
|
Hi all,
has anyone of you guys ever worked with Boot Metro[^]?
If yes - is it well supported by older browsers?
Any special advices, tipps or tweaks?
cheers,
Marco Alessandro Bertschi
|
|
|
|
|
BootMetro - Metro Style Web Framework[^]
Quote:
Download Details: |
---|
File Size: | 4.35 MB | Last Update: | 11/25/2012 01:44:47 UTC |
Supported Browsers:</td><br />
<td><code>Chrome, IE8+, FireFox, Opera, Safari | Offical Website: | Go to Website |
License:</td><br />
<td>Free for non-commercial use |
Demo[^]
--AP
|
|
|
|
|
signature capture from signature pad in wep application(in VB.Net)
Thanks
|
|
|
|
|
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Edit" link to edit your question and provide better information.
|
|
|
|
|
|
I have Created textbox, dropDownList Dynamically at run time.Now how do i get the textbox value and dropDown value in ButtonClick.
|
|
|
|
|
Can you give your sample code, for us its logic flow analysis,
or you did not make his code..??
|
|
|
|
|
TextBox txt = new TextBox();
txt.ID = ID;
txt.Text = DateTime.Now.ToString();
PlcHolder.Controls.Add(txt);
DropDownList ddl = new DropDownList();
ddl.ID = ID;
string strSql = "SELECT Code,[Name] FROM SDTS_GSTYPE";
DataTable dtBranch = getDataTable(strSql);
ddl.DataSource = dtBranch;
ddl.AutoPostBack = true;
ddl.DataTextField = "Name";
ddl.DataValueField = "Code";
ddl.SelectedIndex = 0;
ddl.DataBind();
PlcHolder.Controls.Add(ddl);
This is the code i have written to create a textbox.Now how do i get the textbox value and selected value of dropDownlist in my buttonClick event.
|
|
|
|
|
sorry, long time to replay......
first,
The first,
you should know basic first Page Postback ...
every time you create dynamic controls in codebehind, even when you do click on a control button, the page is always postback, and automatically you will never get the value out of control, even control was not there at all when you try to use the event FinControl ...
so, you have to declare the event re-create control when page IsPostBack.
This sample code to start what you want .. this is just a beginning to open its forward your logic .. you can add it from the code sample I gave .....
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
GenerateControlSelf();
}
else
{
var txt = new TextBox { ID = "tbx", Text = DateTime.Now.ToString(CultureInfo.InvariantCulture), ClientIDMode = ClientIDMode.Static };
holder.Controls.Add(txt);
var ddl = new DropDownList { ID = "ddlx" };
var nextYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) + 1;
var lastYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) - 10;
for (var n = lastYear; n < nextYear; n++)
{
ddl.Items.Add(n.ToString(CultureInfo.InvariantCulture));
}
ddl.AutoPostBack = true;
ddl.SelectedIndex = 0;
ddl.DataBind();
holder.Controls.Add(ddl);
}
}
private void GenerateControlSelf()
{
var txt = new TextBox { ID = "tbx", Text = DateTime.Now.ToString(CultureInfo.InvariantCulture) ,ClientIDMode = ClientIDMode.Static};
holder.Controls.Add(txt);
var ddl = new DropDownList {ID = "ddlx"};
var nextYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) + 1;
var lastYear = Convert.ToInt32(DateTime.Now.Year.ToString(CultureInfo.InvariantCulture)) - 10;
for (var n = lastYear; n < nextYear; n++)
{
ddl.Items.Add(n.ToString(CultureInfo.InvariantCulture));
}
ddl.AutoPostBack = true;
ddl.SelectedIndex = 0;
ddl.DataBind();
holder.Controls.Add(ddl);
}
protected void Button1_Click(object sender, EventArgs e)
{
foreach (Control ctl in holder.Controls)
{
if (ctl is DropDownList)
{
DropDownList ddl = (DropDownList) ctl;
object x = ddl.SelectedItem;
}
}
foreach (Control ctl in holder.Controls)
{
if (ctl is TextBox)
{
TextBox tbx = (TextBox)ctl;
object x = tbx.Text;
}
}
}
I remind you again, the sample code is just for starters only, to pave the way you are thinking ...
|
|
|
|
|
Thank you very much.
Its working.
|
|
|
|
|
here i am wellcaom..be happy, do not ever hesitate to ask questions and share your knowledge if you already master ..
|
|
|
|
|
my url is www.domainname.com/home/default.aspx?ID=1&cmpny=About .
I need to rewrite url like www.domainname,com/About
the About is the value of the querystring parameter cmpny
Please help me in urgent
thanks in advance
|
|
|
|
|
|
|
i want to create a local smtp server in win xp or win7
need help!
|
|
|
|
|
|
I need a help. what i exactly wanna do is that i want to make an android app for my college attendance and everything. (That's my final goal.)
But before that i want to make a webpage where i can do the same. Suppose a guy will enter his id and password and then i'll show the content in a table.
http://img404.imageshack.us/img404/5751/evar.jpg[^]
Above is the college's page where i do the same. but when i extract the html source of the page, i dont get table's data. but when i manuallly select the table and then view the page source,i can see that.
What i exactly wanna know is that how to that in dotnet? i mean how to get the source of the tabble.
Help :
|
|
|
|
|
i want to know how to use ckeditor with database in asp.net?
|
|
|
|
|
Start here[^]: if anyone will know, it's them.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
Hi,
I am using this code to upload using Ajaxuploader:
using (Stream stream = item.OpenStream())
{
using (System.Drawing.Image img = System.Drawing.Image.FromStream(stream))
{
img.Save(Server.MapPath(String.Format("{0}/{1}/posts/{2}/{3}.png", Application["MemberMediaDirectory"], Session["volow_member_guid"], RouteData.Values["GUID"], image_guid)), ImageFormat.Png);
}
}
I want to know how can I resize the image before uploading to 906width X 360height?
Technology News @ www.JassimRahma.com
|
|
|
|
|
You can't. submitting files to a website is voluntary, and the user has to choose which files to submit.
Websites that run in a browser on the client system run in a protective bubble, that is separated from the operating system. Sort of a sealed container.
You can resize the image after uploading by using system.drawing, measuring the size of the uploaded image, calculating the new height and width, and the new canvas size, and then creating a new blank canvas, and then overlay the original image over the canvas and save the new file.
Or you can write several programs in c++ to run on the client computer such as Linux, OSX, Windows, that will resize, and transmit the new bytestream to a webservice as a non-primitive, and then make the write to the disk drive.
|
|
|
|
|
Have a look at Plupload[^]. In a modern browser, it supports resizing PNG and JPEG files before uploading.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|