|
How to create Ajax enable WCF service (with config fiel editting)?
I want to implement AutoTextExtender Ajax tool with WCF.
|
|
|
|
|
I am trying to use the abovementioned codeproject Project by Gary Dryden.
My first GridView (master page) shows up fine, but when the (+) is clicked, it doesn't display the 2nd GridView in the detail page.
The relevant code is as follows: (master page)
<br />
protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)<br />
{<br />
if (e.Row.RowType == DataControlRowType.Header)<br />
AddGlyph(GridView1, e.Row);<br />
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
string KeyValue = GridView1.DataKeys[e.Row.RowIndex].Value.ToString();<br />
if (KeyValue == "0" && EditIndex == -1)
e.Row.Attributes.Add("isadd", "1");<br />
string RowID = Convert.ToString(System.Web.UI.DataBinder.Eval(e.Row.DataItem, "site_id"));<br />
string Url = "submitdetail.aspx?siteid=" + RowID;
e.Row.Attributes.Add("href", Url);
e.Row.Attributes.Add("open", "0");
e.Row.Attributes.Add("hascontent", "0");
}<br />
}<br />
detail page:
<br />
string site = Request.QueryString["site_id"];<br />
SqlDataSource1.SelectCommand = "select plot_id, plot_name, collection_month, submit_date, delayed_by" + " from submit_info where site_id ='" + site + "'" + " order by plot_name";<br />
if (!Page.IsPostBack)<br />
{<br />
GridView1.DataBind();<br />
}<br />
So, apparently, I am doing things right. The expanding, collapsing is performed by javascript and haven't modified anything there.
Anybody has any idea, where to focus?
Thanks.
Ekjon
|
|
|
|
|
Ekjon wrote: I am trying to use the abovementioned codeproject Project by Gary Dryden.
At the bottom of the Article is a forum for posting questions related to the article.
led mike
|
|
|
|
|
I know, but I notice nobody is keeping track of that,
so its not likely that I will get any response from there.
I actually posted one yesterday.
Thanks.
Ekjon
|
|
|
|
|
hai all,
hw to generate PDF from Database using .NET?
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Get a toolkit...there are several and some free ones depending on what you want.
God bless,
Ernest Laurentin
|
|
|
|
|
Third time asking basically the same question.
|
|
|
|
|
i am trying to create a session.but getting failed.when i enter username and password to the text boxes and as i click on login button.the member's page appears. but when clicks on logout button it comes to login page.if i copy the url of member's page and again paste the url from login page then members page again appearing. how to avoid this problem?
how to create a session for a particular user?
i want that after log out the member can't go back,and if we paste the url of member's page from login page it should not redirected.
thanks
sandeep
|
|
|
|
|
Hi,
Inorder to solve your problem you need to do follow the below steps.
1)on sucess full login before redirecting to members page keep the username in session.
2)on page load of members page check for the session contain some value..
if it contains some value then the use is a logged in user else if it is null redirect user to login page.
3)on clicking logout clear the session so that after clicking if user copy pastes that members page link also he will be redirected to login page has you cleared session.
Regards,
Sandeep Kumar.V
|
|
|
|
|
Make sure that when you are testing if you are using the same browser session to logout the first user else their details will remain until you log them out.
Try the asp.net custom login control with memebership
check this out:
http://aspnet.4guysfromrolla.com/articles/120705-1.aspx
A simple way to store a user's session is to store their username in the session
|
|
|
|
|
hai all,
I tried generating Dynamic PDF using itextSharp component.. when i opened the solution file .. i am getting this error:
"A project with an Output Type of Class Library cannot be started directly.In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."
plz help..thx in advance!
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Imthu wrote: plz help..thx in advance!
Do you want us to help you in finding a non IT job?
*jaans
|
|
|
|
|
I have a datagrid that contains an HtmlInputHidden, something like:
<asp:datagrid id="dgCurrency" runat="server" CssClass="grid" AllowPaging="False" CellPadding="0"<br />
GridLines="Vertical" AutoGenerateColumns="False" ShowFooter="false" ><br />
<Columns> <br />
<asp:TemplateColumn HeaderText="ISO kode" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="150px"><br />
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle><br />
<ItemTemplate><br />
<asp:Label id="lblISOCode" runat="server" CssClass="tbStyle1"><br />
<%#DataBinder.Eval(Container.DataItem, "strISOCode").ToString()%> <br />
</asp:Label><br />
<input type="hidden" runat="server" id="inCurrencyID" value='<%#DataBinder.Eval(Container.DataItem, "lngCurrencyID").ToString()%>' /> <br />
</ItemTemplate><br />
</asp:TemplateColumn><br />
...
Where the inCurrencyID is my HtmlInputHidden.
At the first time my page loads, I add a DataView to the dgCurrency datasource.
When I push a button the first time, the inCurrencyID has it's value, as in:
foreach (DataGridItem dgi in dgCurrency.Items)<br />
{<br />
inCurrencyID = (HtmlInputHidden)dgi.FindControl("inCurrencyID");<br />
<br />
int lngCurrencyID = int.Parse(inCurrencyID.Value);<br />
...
After this I don't databind the dgCurrency to a new datasource, I just leave it as it is.
Now the next time I push the same button, it has now lost it's value????
The same goes for the label lblISOCode.
The strange thing is that I also have an TextBox in the DataGrid, and that control stil have it's Text.
Dose anyone know why, or is there another hidden fild that I can use that dosen't lose it's value on a PostBack without a databind()?
Thanks
Thomas
modified on Thursday, May 15, 2008 9:47 AM
|
|
|
|
|
Possibly enableviewstate flag needs to be set to true.
You are using a standard html input item, rather than a dotnet control. This is ok since you set the runat server attribute. You may also want to set the enableviewstate="true" attribute as well. Not sure if this solves it, but worth a try.
An alternative would be to use an 'asp:label' tag and set it's visibility to false. This gives you a fully qualified dotnet control, yet is not displayed to the user.
Steve
|
|
|
|
|
hi,
I have 100 records in DataSet. I have one button. When I Click that button I want to fetch 1-10 records from DataSet.
When again I click the button then I want 11-20 records from that Dataset. How can I do?
Thanks
|
|
|
|
|
Check this out
http://aspnet.4guysfromrolla.com/articles/091003-1.aspx
|
|
|
|
|
i am using the followig code to display the message box using the code behind.
Response.Write("<script>alert('Hi');</script>");
The problem is , using this code , the background color of the same window gets white.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
its bcose, its a windows modal dialog message box. If u want Other, you should create a custom message box with div tag.
|
|
|
|
|
provide an example please.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
hi friend i am using Remote Scripting with IFRAME. There are two page one is Client.aspx and Server.Aspx.
Client.aspx Contains:-
(script type = "javas")
function GetDate(msg)
{
alert(Msg);
}
(script)
(
name="RSIFrame"
style="width:0px; height:0px; border: 0px"
src="blank.html">(/iframe>)
<b>
(server contains :-</b>
(script type="text/javascript">
window.parent.GetDate('<%=request.servervariables("SERVER_SOFTWARE")%>');
br mode="hold" />
(body>
<form id="form1" runat="server" target="RSIFrame">
<div>
<input type="text" name="whatever" />
<asp:button id="Button1" runat="server" text="Button" />
</div>
/body)
<b>It's Work Properly when Server and client page o same System. if Server page open On different system and client page open deferent system then its not communicate(Its not Work Properly). any body have solotion of this problem...
ans Link Which i follow:-</b>
<a href="http://developer.apple.com/internet/webcontent/iframe.html">http://developer.apple.com/internet/webcontent/iframe.html</a>[<a href="http://developer.apple.com/internet/webcontent/iframe.html" target="_blank" title="New Window">^</a>]
<div class="ForumSig">Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
</div></form>
|
|
|
|
|
|
I have a iTextObject control in the crystal reports, which is similar to the lable control in the aspx page.
can i hide the itextobject type control in the crystal report at run time.
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Sure, create a variable object for that Itextbox in the code and make tat invisible.
hope works
|
|
|
|
|
how should i find this control?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hi All,
I am adding one imagebutton in gridview using the "RowDataBound" method. But I could not able to found the onclick/runtat event..
How can i add this one ?
ImageButton imgSortAssendingbyId = new ImageButton();
Thanks in Advance
Dana
|
|
|
|