|
type priortity status
---------------------------------------
bug low postponed
bug low yy
bug medium xx
bug1 low xx
bug1 high postponed
---------------------------------------
The above table's data is required in following format as grouped data and needs to be displayed in a datatable or gridview.
Can anyone give me code.
---------------------------------------
low postponed
bug yy
---------------------------------
medium xx
----------------------------------------
low xx
bug1
--------------------------------
high postponed
sanjay kumar samantaray
|
|
|
|
|
|
Hi,
I'm using window.showModalDialog to open a modal dialog.
The modal dialog needs get the current user's name. To do this i use
Membership.GetUser().UserName;
But when the dialog is posted back Membership.GetUser() return null
and i can't get the user's name.
Does anybody have a clue how to get the user's name?
Thanks.
|
|
|
|
|
I don't know how with the post back. Bat you could try Session or Cookie
|
|
|
|
|
|
Hello,
I'm having some problems to enable radiobutton in ie7 by javascript. I was googling all day, but I only found one post with the same problem I have. I paste it here to explain what my problem is:
Hi All,
I've come across the problem of not being able to re-enable a radio
button with javascript if its initial state has been disabled in the
Page_Load() method of the code behind.
Might i add that it behaves fine in Firefox, but IE is unable to
re-enable the radio button. IE is fine if the radio button starts in an
enabled state.
Version of IE i'm using is 6, and i have also tried with IE7 and got
the same result.
Is this a bug specific to IE ?
This post has only one answer, which is:
Hi There
function enable()
{
var controls = document.getElementsByTagName("input");
NumElements = controls.length;
for (i=0;i<NumElements;i++)
{
if(controls[i].name=="rdEnable")
{
controls[i].setAttribute("disabled" , false);
ParentSpanControl = controls[i].parentElement;
ParentSpanControl.setAttribute("disabled" , false); break;
}
}
return false;
}
Explanation:
============
A DotNet Radio Button Control will result in creation of the following
three controls
1.Span Control
2.Input Type=Radio
3.Label
So using javascript , do identify all the controls that radio button is
rendered to and set their disabled propery to false;
Please find the above code which does the same
I tried to enable by javascript the input (this works in Firefox, Opera and Netscape, but not in IE), the span, and the label, but I have not get the solution. Here I put the code I try with:
function habilitarPr2IDI(){<br />
<br />
var controls = document.getElementsByTagName("input");<br />
NumElements = controls.length;<br />
<br />
for (i=0;i<NumElements;i++)<br />
{<br />
if(controls[i].name=="InputName")<br />
{<br />
controls[i].disabled = false;<br />
ParentSpanControl = controls[i].parentNode;<br />
label = ParentSpanControl.lastChild;<br />
ParentSpanControl.disabled = false;<br />
label.disabled = false;<br />
}<br />
}<br />
}
Can anyone help me? Thanks a lot.
|
|
|
|
|
Check the HTML source of the page rendered when the radio buttons are disabled. My guess is that the radio buttons aren't rendered with just a disabled atteribute but in another way all together for IE. I've never actually looked at it myself, but it's the first guess in my head.
|
|
|
|
|
This is the HTML source of a disabled radio button:
<td><span disabled="disabled"><input id="radioId" type="radio" name="radioName" value="Text" disabled="disabled" /><label for="radioId">Text</label></span></td>
and this is the HTML of a non-disabled radio button:
<td><input id="radioId" type="radio" name="radioName" value="Text" /><label for="radioId">Text</label></td>
I think the problem is in the tag span. I try to disabled the span too, but didn´t work in IE.
|
|
|
|
|
I recently rolled out a change where I changed the old javascript menu (that only worked in IE) to a new menu using the ASP.NET menu control (so it works in other browsers). I have one user with Windows XP and IE6 where the flyouts on the menu appear at the top of the page rather than next to the menu control like it does on every other computer/browser combination I tested on (and that other users are using). I installed all the patches for IE6 from windows update, but I can't move to IE7 since the company has other internal apps that don't work on IE7. This same computer can do another application I built with the ASP.net menu control perfectly.
Any idea why this happens? I might just go with a pure CSS menu, but its hard to beat the simplicity of the menu control.
|
|
|
|
|
In my Gridview rowUpdating event, am not able to retrieve e.NewValues.
e.NewValues and e.OldValues everything returns empty.
Can you please help?
Thanks.
|
|
|
|
|
Are they by any chance keys? I run into this problem once:
"This property does not contain the key fields. To access the key fields, use the Keys property. You can also access the original field values by using the OldValues property."
msdn[^]
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
e.Keys.Count , e.NewValues,e.OldValues, even e.RowIndex everything returns 0.
What I want to do is, store the grid in the dataset and then when the row is edited,
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) is called.
now after all rows are updated, the updated grid will be stored in the dataset and finally everything will be pushed into db on Save button click.
Can you please help me how to do this?
Thanks
|
|
|
|
|
Hi there,
it worked fine. For almost decades now:
I create a C# Webproject and set the project options to Debugging->Always
use IE = false (translated from german). When starting to debug the project
it fires up with Firefox since this is my standard browser.
Since a couple of days it does not work this way anymore. Eventhough Firefox
is still my standard browser (yes, I checked tripple), IE will fire up when
pressing F5.
Any ideas on how to solve this?
Greetings from Berlin, Matthias
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
right click the web project and select Browser With option
|
|
|
|
|
thanks a lot. that helped.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Hi,
if i make a static method, that gets Data from my DB, will the method be threadsafe? I mean while one user requests some data and the method is running, can another user that wants to do the same, read/write the variables in this static method?
I know it's a beginners question, i searched a lot but i didn't find an answer.
Thanks for helping me in advance.
|
|
|
|
|
Variables declared locally in a static method are thread safe. Static variables declared in a class or structure are not thread safe.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thank you very much!
|
|
|
|
|
:(I have web site developed using asp.net 2003 with code behind C#
the main page of the web site contains header,
also has a menu (vertical) and footer .
in the center of that page i have iframe that all pages in the web must open in it. and that happened well when you use the menu
BUT when search engines list my web pages and open them they are oppend alone without header, menu or footer (not in their iframe)
any solution
|
|
|
|
|
IFrames are bad stuff as far as SEO.
What I would do is add some logic to the pages that are being iframed that will check the referer. If the referrer is Google, Yahoo, etc. then do a 301 redirect (Response.Redirect will do that) to the main page with a parameter in the query string telling which page to load in the iFrame. The main page that has the menu will need to check for that param in the query string and load the iframe with that page.
After that, redesign the site to not include iFrames and use MasterPages instead.
|
|
|
|
|
Preferred solution: Don't use an iframe. Using an iframe in that way is just like using a frameset, which has exactly the same problem.
If you absolutely want to use an iframe, you have to put a Javascript on each page that checks if the page is opened in an iframe or not, and redirect to the main page if it's not. In the main page you have to add code to handle when the page redirects with the Javascript, so that you open up the correct page in the iframe.
This solution will of course not work if Javascript is disabled. Then there is no solution at all. Other than the preferred solution, of course.
---
single minded; short sighted; long gone;
|
|
|
|
|
i have a grid view with bind to a sqlDatasource
and I have a repeater that i want populate, according with the selected item in the grid view. and the data comes from a relational tables. here is the grid view and and the sqldataadapter, I know i am doing something wrong, but i dont know what it is, help please
asp:GridView ID="GridView1" <br />
runat="server" <br />
AutoGenerateColumns="False" <br />
DataKeyNames="EventId"<br />
DataSourceID="SqlDataSource1" <br />
SelectedIndex="1">
<Columns><br />
<asp:CommandField ShowSelectButton="True" /><br />
<asp:BoundField DataField="EventName" <br />
HeaderText="EventName" <br />
SortExpression="EventName" /><br />
</Columns>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:vpx_newConnectionString %>"
SelectCommand="SELECT * FROM [Events]"></asp:SqlDataSource>
and here is the the sqldataadpter
Sub BindData()<br />
'Read sample item info from XML document into a DataSet<br />
Dim cnn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("vpx_newConnectionString").ToString)<br />
cnn.Open()<br />
Dim cmd As SqlDataAdapter = New SqlDataAdapter("select * from mediaphotos Where EventID =" & GridView1.SelectedValue, cnn)<br />
<br />
Dim ds As New DataSet()<br />
cmd.Fill(ds)
-- modified at 10:13 Monday 17th September, 2007
|
|
|
|
|
I think u want to filter your data in GridView.
so for that u have to use DataView concept .
u can use dataview.filter=Expression.
MBMB
|
|
|
|
|
Thank for answering, i might be do that, thanks
|
|
|
|
|
For some reason when I have a Update Panel around a grid and try using a dataFormatString it doesn't work. My code is correct because I have used it before without an updatePanel.
DataFormatString="{0:MM-dd-yyyy}"
Any thoughts
|
|
|
|