|
Hi Friends ..
I've a difficulty related to GridView control (language C#). I've placed Dropdownlist in the GridView Control. How can I fire the change event of the dropdownlist.
placed in the GridView or any event ..
thanking you ...
... Smile is the curve, which makes everything streight ...
|
|
|
|
|
Your issue is that you need to do your data binding before page load, so that the event can fire, because otherwise, viewstate is recreated before the control exists, for the event to be restored.
The automatic gridview row editing features will just handle this for you, if you only want it for a row you are editing.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello Everybody,
I have an application where I pass some values in QueryString. Can anyone tell me how to pass the value in an encrypt format.
HappyCoding
A key to every Solution
|
|
|
|
|
.NET framework has many libraries supports Encryption and Decryption. Check System.Security.Cryptography name space.
|
|
|
|
|
Perhaps if you need to encrypt it, you should just find another way to store it, like in the session ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all
I m working in asp.net(vb).
In my site i have binded the grid view with database but now i wanna know how can i add Accordion ajax control in each row of datagrid view in asp.net
I hope someone will understand it,Looking forward for your response
Thanks with anticipation
|
|
|
|
|
I am not sure of your actual purpose.
However, you can add any control to ItemTemplates of the GridView
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Hai
I need to add rows with asp controls dynamically on each button click
in my code only one row is created on button click event. that is removed on another button click
Plz help me
|
|
|
|
|
asp, or asp.net ? What do you want exactly ? To add multiple rows ? Is the control data bound ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I need to add One row with Multiple columns on each button click.
Here each column contains textboxes or dropdown list controls.
My table initialy contains one row. After clicking on Add new button, i need to add new row below to the existing table.
Also wants to remove the last row on remove button click.
Plz help me for this
|
|
|
|
|
I thought a gridview already offers this ? Does the grid represent data that ends up in your DB ? If so, I think you should use the functionality built in to the gridview.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have no need to bind data from database.
The purpose is to insert enter details.
i have this code on button click
protected void btnAddNewLine_Click(object sender, EventArgs e)
{
count = count + 1;
addNewline();
btnRemove.Visible = true;
}
public void addNewline()
{
HtmlTableRow tr1= new HtmlTableRow();
tr1.ID = "tr1" + count;
HtmlTableCell tc1 = new HtmlTableCell();
for (int i = 0; i <9 ; i++)
{
tc1 = new HtmlTableCell();
if (i == 0)
{
tc1.Height = "21";
tc1.Width = "4";
DropDownList ddlItem = new DropDownList();
ddlItem.Width = System.Web.UI.WebControls.Unit.Pixel(109);
ddlItem.Items.Add("--Select--");
tc1.Controls.Add(ddlItem);
tr1.Cells.Add(tc1);
}
if (i == 1)
{
tc1.Height = "21";
tc1.Width = "3";
tr1.Cells.Add(tc1);
}
if (i == 2)
{
TextBox txtDescription = new TextBox();
txtDescription.Width = System.Web.UI.WebControls.Unit.Pixel(150);
txtDescription.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtDescription);
tr1.Cells.Add(tc1);
}
if (i == 3)
{
TextBox txtQty = new TextBox();
txtQty.Width = System.Web.UI.WebControls.Unit.Pixel(60);
txtQty.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtQty);
tr1.Cells.Add(tc1);
}
if (i == 4)
{
TextBox txtPOPrice = new TextBox();
txtPOPrice.Width = System.Web.UI.WebControls.Unit.Pixel(70);
txtPOPrice.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtPOPrice);
tr1.Cells.Add(tc1);
}
else if (i == 5)
{
TextBox txtPartNo = new TextBox();
txtPartNo.Width = System.Web.UI.WebControls.Unit.Pixel(70);
txtPartNo.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtPartNo);
tr1.Cells.Add(tc1);
}
else if (i == 6)
{
TextBox txtRemarks = new TextBox();
txtRemarks.Width = System.Web.UI.WebControls.Unit.Pixel(136);
txtRemarks.Height = System.Web.UI.WebControls.Unit.Pixel(27);
txtRemarks.TextMode =System.Web.UI.WebControls.TextBoxMode.MultiLine;
tc1.Controls.Add(txtRemarks);
tr1.Cells.Add(tc1);
}
else if (i == 7)
{
TextBox txtORC = new TextBox();
txtORC.Width = System.Web.UI.WebControls.Unit.Pixel(67);
txtORC.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtORC);
tr1.Cells.Add(tc1);
}
else if (i == 8)
{
TextBox txtTotal = new TextBox();
txtTotal.Width = System.Web.UI.WebControls.Unit.Pixel(59);
txtTotal.Height = System.Web.UI.WebControls.Unit.Pixel(26);
tc1.Controls.Add(txtTotal);
tr1.Cells.Add(tc1);
}
}
purchaseDetails.Rows.Add(tr1);
}
but it crates only one row .
|
|
|
|
|
HI,
We have an application(HealthCare Domain -- WebApplication) developed using asp.net 1.1 & SQLserver 2000
It's developed and hosted at client places ....Know the hosptal people want the Application be compatable with
TabletPC and requesting the features like they want to write using the pen in the textboxes(Editable fields)
which were located on the application....!
Is the Technologies which we have used are compatable with the TabletPC??
I have searched for the HandWriting Recognition tool...
i found some applications[all are Windows Based applications -- using INKRecognition]
IS it allowed to use Microsoft.INk dll in WebApps??
Could you please suggest me the better approch.....
Thanks
Yuva
|
|
|
|
|
It's not really possible, because ASP.NET doesn't work that way. On the client side, it's just HTML and javascript.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi friends
I have a special requirement to develope a .dll component by which i can send the formatted, templated emails, with attachements,and plain text. it should not depend on any database, very generic one, everything should be configurable through web.config file or xml file.
The template should be formatted like:
Dear {0}
You have successfully registered with{1}
bla bla..
{0} should be replaced with name like "Pradeep" at runtime, and {1} should be with "Collaber" ... these values should be passed at runtime.
i should be able to pass n number of parameters at runtime into template.
Please provide a solution with some samples, its a bit urgent.
Pradeep
Collabera solutions pvt ltd
Bangalore
India
|
|
|
|
|
This is really easy. If you use the {0} {1} type format, you can use the string format method to build your email from the template. The rest is incredibly easy. Just one caveat, the email classes provided in .NET do not close the files used for attachments, so you need to handle the mail sent event, and in there, call close on all the file handles in the attachments collection. I keep meaning to write an article on all the poorly written MS classes....
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi all...
Can u guys help me in how to sort the charecters (Alphabetical sorting)in grid view?
My problem is i took a label and a textbox.As soon as i type in a letter in a text box the names starting with that letter should be displayed in the Gridview from the corresponding table in the back end.....
Plz help me out its top urgent....!!!
Thanks
Regards
Abhishek
|
|
|
|
|
Member 4648491 wrote: Plz help me out its top urgent....!!!
Top urgent ? Not just urgent ? Let me drop everyting...
There are AJAX controls that do this. For it to do what you want 'as soon as i type', AJAX is the only solution.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want a sample code to show a loading page between search page and search result page. But the problem is the code without using ajax and threading. The loading page should be displayed and disabled exactly after the data are loaded into the datagrid in the search result page. Please help me
If you don't understand please refer the following link below and make a hotel search then you can see a loading page.
URL:"http://www.lastminute.com/site/travel/hotels/"
Take a look on this...
Advance Thanks for your help
Gopinath.R
|
|
|
|
|
You have been asking this for days. You have been given your answer. If you can't work it out, then let your client know that you don't have the ability to do this task. There's really nothing more to tell you. The only other option I can see is if you're able to resize or hide an iFrame in javascript. One way or the other, you're going to need to use javascript in order to show a page while another page is loading.
If you look at the source of that page, it looks to me like it's using AJAX and a floating DIV to show the about page.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Adding to CG's post--If you look at "ASP.NET problem design solution" book by Marc Bellinaso, you will find a similar kind of implementation which he has used to send newsletters to millions of user. You can implement the same here too.
|
|
|
|
|
hello frnds,
i am developeing a web site i want to validate a textbox accepting DATE in mmddyyyy format
which validation control should i use ??? and how to validate it ????
thankx in advance
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
A regex validator seems the most likely candidate to me.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Use RegularExpression validator
|
|
|
|
|
Thankx Guys...
any example of RegX to validate the date in mmddyyyy format ???
thankx in advance
regards
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|