|
If anybody else wants to know the fix put
ScriptManager.GetCurrent(Page).SetFocus(Me.txtScan)
in pre render of the control
|
|
|
|
|
hi all
i have a problem please suggest me the solution
i have a datagrid which consists of bounded columns
i need to get the column number or column index
datagrid sample is like this
where heading channel and corporate are link buttons dynamically displayed
slno | region Name |channel | corporate|
1 | abc |ruleset | forapproval
2 | a23 |ruleset | forapproval
3 | 2asdas |ruleset | forapproval
4 | adas |ruleset | forapproval
so when i click on channel->ruleset i need to get the column no as 2..
based updon the column number i need to display the details
if 2 then channel details else corporate details
please .. its very urgent
|
|
|
|
|
Hi,
I would make the column ruleset a LinkButton.
In your aspx you create a TemplateField that has a LinkButton like:
<asp:LinkButton runat="server" ID="lbRuleSet" CommandName="EditGrid" OnCommand="Grid_OnCommand" />
In the codebehind you create a Method like:
protected void Grid_OnCommand(Object sender, CommandEventArgs e)
{
LinkButton btn = (LinkButton)sender;
GridViewRow row = (GridViewRow)btn.NamingContainer;
if (e.CommandName.Equals("EditGrid"))
{
MyGridView.SelectedIndex = row.RowIndex;
MyGridView.SelectedIndex = -1;
}
}
|
|
|
|
|
Hi guys...
OK, picture the scene if you will...a standard SP returns some codes and VAT values. The codes are in varchar(3) fields.
This data is then bound to a DataList - not directly, but with an Item template, containing a drop down list for the rates. Now when binding, the values are correctly added to the ddl, but the selected value is not being set correctly. Looking at the code, when I do the databind, the column is indeed "1" or "x" or whatever...so far so good, but in the databind event handler, when I look at e.Item.DataItem's version of the value (used to determine which item to select), it's being returned as "1 " or "x "
Anyone seen anything similar? It's almost as though the function call to the bind event is what's doing the mangling. but I can't see how!
I've also tried changing the column to a varchar (1) in the database, but bizarrely, it still appears as "1 " in the bind event. To add even more complexity(!) this is only ocurring on a client's dataset - on our "reference" dataset, with similar data, all is fine...
C# has already designed away most of the tedium of C++.
|
|
|
|
|
I vaguely recall wrestling with something like that that, and I don't believe I resolved it. I think I just worked around it.
Pits fall into Chuck Norris.
|
|
|
|
|
Hi there,
How can i check the font used in different cultures?
Suppose i'm changing the culture as "hi-IN", where i can see the font using for hi-IN?
Regards n Thks
Sam.M
|
|
|
|
|
Hi sam,
generally you can test it through various free translator, available on net...
for example use this : http://www.freetranslation.com
|
|
|
|
|
helooooooooooo Every Body
how to use smtp.gmail.com for sending mail. its free Server please help me
Thanku
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Have you tried smtp.google.com?
Regards n Thks
Sam.M
|
|
|
|
|
yaaa i use this in last night but it give athentication errro
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
|
i have alredy use this and i usee id and password of my gmail Account. it right way to go??
i will catch u ofter 1 hr. if u have any yahoo id then frwd me...
byeee
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
i work on .net2008 on vista operating system and vista have not SMTP server so i want use this...
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Set TLS Authentication is True and Specify the correct Port No.
Parwej Ahamad
|
|
|
|
|
When I download a file it gives other filename if containing more than one dot(.), for example
download file : application.it.pdf
Then it will display : application[1].it.pdf...
how to contain the same file name during downloading....
I'm using following code :
------
-----
FileInfo f = new FileInfo(docname);
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(f.Name));
Response.AddHeader("Content-Length", fileSize.ToString());
-----
-----
any suggestions .....
Thnx in advance...
|
|
|
|
|
Hi friends.
I want to capture right click event on any image.
I need to implement menu controls on right click event of image.
Can any body guide me how to implement this or give me some reference sites?
thanks in advance
please don't forget to vote on the post that helped you.
|
|
|
|
|
I know you can capture right clicks and suppress them, so I see no reason why you couldn't use the same code to bring up a javascript menu.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Hey
I have created a metode to create RadiobuttonList dynamically but when i show it in my page end i chec them to false or true and when i click the button all radiobutton is coming back to true.
I have a function to read wgat user have selected :
Hope i can help. her is som code to create radiobuttonlist:
foreach (DataRow dr in ds.Tables[0].Rows)
{
Label li = new Label();
System.Web.UI.WebControls.ListItem ls = new System.Web.UI.WebControls.ListItem();
RadioButtonList rl = new RadioButtonList();
rl.Items.Add(new System.Web.UI.WebControls.ListItem("Inkl", dr["Type"].ToString()));
rl.Items.Add(new System.Web.UI.WebControls.ListItem("Eks", dr["Type"].ToString()));
rl.RepeatDirection = RepeatDirection.Horizontal;
Panel2.Controls.Add(li);
Panel2.Controls.Add(rl); //tilføjer dem til panelet
}
then when i click a button hwo called checkthevalue, i called this metode:
foreach (Control cr in Panel2.Controls)
{
if (cr is RadioButtonList)
{
RadioButtonList rb = (RadioButtonList)cr;
foreach (System.Web.UI.WebControls.ListItem ls in rb.Items)
{
if (ls.Selected && rb.SelectedItem.Text == "Eks")
{
//this ad a line to pdf file
document.Add(new Paragraph("-" + rb.SelectedItem.Value.ToString(), FontFactory.GetFont(FontFactory.TIMES_ROMAN, 12)));
}
}
}
}
Hope i can help me.
|
|
|
|
|
how to create the chating program pls give coding from .net with c#
its same as gmail chating program
|
|
|
|
|
Every single one of the messages you've posted have had the subject "Question". Don't you think everything posted on these (technical) boards is a question?
Oh, and no, were will not provide you full code for a chat application. Get a clue!
|
|
|
|
|
but wait surely we should be expected to write his app for him
I mean we arent getting paid for it, he is, what better incentive is that
|
|
|
|
|
I am intrested to know who voted for that question also
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Voting 1 mns u abused some one
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
I'll do it for $10,000.
Christian Graus
Please read this if you don't understand the answer I've given you
"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 )
|
|
|
|
|
Have u any server For chating application
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|