|
Please don't cross post. No way an ASP.NET app can cause te browser to work out it's running in a remote desktop, find the host IP and send it back to you.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hai iam using the
webservices
what is the Webmethod Attribute,WebMethod difference i want to know the
difference..
Kiran Kumar.P
|
|
|
|
|
I don't understand the question ? The webmethod attribute marks a method as being visible to the outside world, AFAIK.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
keranreddy wrote: what is the Webmethod Attribute,WebMethod difference i want to know the
difference..
How about searching[^] ?.
|
|
|
|
|
That's just crazy talk...
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hai all,
i had one page which can have no.of questions?i retrieve and display the questions.
my problem is the question no. 5 have sub questions.if i click the fifth question link then it will display only the subquestion.
how can i get the subquestions for main question 5.
Exam:
What is xyz.com and what can i buy here?
How Do I upload my images?
Are my pictures safe?
What are your prices and how much will my order cost?
5.Ways to contact us?------This is a link.if i click this link then all the above 4 questions will be invisible and the sub questions will be visible .
sub questions r from DB
1.Can i contact through phone?
2.Can i contact through mail?
Thanks
Subbu.
|
|
|
|
|
You could use a panel for this, put your first four questions in a panel and your last one in a seperate panel and just make visible/invisible when you need to.
We are not a Code Charity
|
|
|
|
|
Thanks for ur immediate reply.
i had done it by using two panels.
like:
<cc2:
.netman wrote: Panel ID="pnldlst"
runat="server" Visible="true" Width="550px">
<anthem:DataList ID="dtlstQues" runat="server" EnableCallBack="true" OnItemDataBound="dtlstQues_ItemDataBound" OnItemCommand="dtlstQues_ItemCommand">
<ItemTemplate>
<table width="100%" border="0">
<tr>
<td class="text12blue" style="width:500px"><a id="ancQues" runat="server" style="padding-left:8px"/>
</td>
<cc2:
.netman wrote: Panel ID="Panel1"
runat="server" Visible="true" Width="550px">
<td>
<anthem:LinkButton id="ancsubQues" runat="server" style="padding-left:8px" CommandName="SubQuestion"/>
<anthem:HiddenField ID="hdnQues" runat="server"/>
</td>
</cc2:Panel>
<%--<td> <asp:Label ID="example" runat="server" Visible="true"/></td>--%>
</tr>
</table>
</ItemTemplate>
</anthem:DataList>
</cc2:Panel>
but it is showing all the questions including subquestions .and the second panel is not showing intellisence.
Thanks
Subbu.
|
|
|
|
|
subbu.sk wrote: .netman wrote:
Panel ID="pnldlst"
I didnt write that!, how did that happen?
You need some code behind to say something like:
if question 5 clicked show sub questions panel else show 1-4 questions panel
We are not a Code Charity
|
|
|
|
|
Provide me Spellcheck code in C# for web Applications(VS2005)
Immediately
|
|
|
|
|
rockram wrote: Provide me Spellcheck code in C# for web Applications(VS2005)
Immediately
I can only assume this is a joke.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
I dont think this is a joke, sounds like the normal way outsourced coders ask questions on this forum
We are not a Code Charity
|
|
|
|
|
First post from this user, it seemed more extreme than usual, I think it was someone trolling.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Thank you for your reply i do have a C# code on Spellcheck can u help me to get rid of errors:
The Code follow below:
using System;
using System.IO;
using System.Data;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
partial class Default2 : System.Web.UI.Page
{
private string[] strDictArray;
private bool boolDictionaryLoaded = false;
private int intErrors = 0;
protected void Page_Load(object sender, System.EventArgs e)
{
int iCurrentCount = 0;
string[] arrWords;
string strCompleteOriginal = "";
int iWordCount = 0;
string strAlternative = "";
int i = 0;
if (Strings.Trim(Request.QueryString("txtContent")) == "")
{
return; // TODO: might not be correct. Was : Exit Sub
}
else
{
strCompleteOriginal = Strings.Trim(Request.QueryString("txtContent"));
}
if (!IsPostBack)
{
iCurrentCount = 0;
iWordCount = 0;
intErrors = 0;
hfOriginalString.Value = strCompleteOriginal;
hfCurrentCount.Value = "0";
arrWords = Strings.Split(strCompleteOriginal, " ");
iWordCount = arrWords.Length;
hfWordCount.Value = iWordCount;
hfErrors.Value = "0";
}
else
{
arrWords = Strings.Split(hfOriginalString.Value, " ");
iCurrentCount = hfCurrentCount.Value;
intErrors = int.Parse(hfErrors.Value);
}
txtCurrent.Value = arrWords(iCurrentCount);
if (Request.Form("cmdCancel") == "Stop")
{
arrWords = Strings.Split(hfOriginalString.Value, " ");
iWordCount = hfWordCount.Value;
string strReplace = hfFinal.Value;
int j = 0;
for (j = iCurrentCount; j <= iWordCount - 1; j++)
{
strReplace += arrWords(j) + " ";
}
intErrors -= 1;
stopChecking("frmSpellCheck", "txtContent", strReplace);
return; // TODO: might not be correct. Was : Exit Sub
}
if (Request.Form("cmdNext") == "Next")
{
arrWords = Strings.Split(hfOriginalString.Value, " ");
iWordCount = hfWordCount.Value;
if (txtManual.Value == "")
{
arrWords(iCurrentCount) = lbSuggestions.SelectedValue;
hfFinal.Value += lbSuggestions.SelectedValue + " ";
}
else
{
arrWords(iCurrentCount) = hfFinal.Value;
}
}
}
protected void lbSuggestions_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
|
|
|
|
|
hai,
currently i m using asp.net with c# (.net 2005, 2.0 framework).
here i m trying to merge two dataset column wise and the column count,table name same.
for example, i use two dataset ds1 and ds2.
ds1 contains A,B,C,D column.
ds2 contains E,F,G,H,I,J column.
i need the resultant in gridview as A,B,C,D,E,F,G,H,I,J
Note : always the Rows will be equal in both ds1 and ds2 dataset.
how to achieve it? - KARAN
modified on Monday, June 30, 2008 2:59 AM
|
|
|
|
|
It's always good to look documentation before you post something. See here[^]
|
|
|
|
|
Seems this fell on deaf ears, he just repeated the question.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hi i want to disable the back button for ie...,
My enduser cant go previous page using that back button...,
How to do that...,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
You can't. People who ask this, are usually asking because their permissions system is broken. If you build a persmission system properly, you will store a key in the session to tell you the user is logged in. If they log out, this is cleared, and every secure page will redirect to the login page if you browse to it and the session object is not set to tell you that a user is logged in.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hi i am using session on my forms,
Using user only i am doing all those things..,
So i cant abondom session...,
So i looked in js...,
They given this script,
Its working cool,
Becoz of this my session will get any probs?????,
Still now i didnt face any session probs of this script...,
But i like to confirm it,
Plz tell me can i use this script to avoid go back operation in my browser...,
This script i called in all the page body onload event:
function disable()
{
window.history.forward(1);
}
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
The only thing that might affect you is people can turn javascript off in their browser
We are not a Code Charity
|
|
|
|
|
New one wrote: This script i called in all the page body onload event:
function disable()
{
window.history.forward(1);
}
This might work. Sometimes. Anyone who wants to defeat it, can. Trivially. So, write good code in the first place, and you won't need this.
New one wrote: Hi i am using session on my forms,
Using user only i am doing all those things..,
So i cant abondom session...,
This makes no sense at all. If a session object marks that a user is logged in, of course you can abandon it. The session is unique per user, that's why you use it in the first place.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
i don't know how to disable 'back' button,
but,
I have a idea ....
suppose, u have 10pages as 1.aspx,2,3,....9.aspx
now the user moves from page 3.aspx to 4.aspx
now, when the user arrives at 3.aspx, use Session["pagenumber"]="3";
when the user navigates to page 4.aspx, change it as Session["pagenumber"]="4";
at the entry of each page (in the page load function) check this entry !
|
|
|
|
|
hi all,
I just want to retrieve the cell value from the gridview using the following
code,but it returns nothing null
plz help me
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int index = e.RowIndex;
//here to delete in data base
//the problem in the next code this string (spareid)carry null
string spareid = GridView1.Rows[index].Cells[0].ToString();
new DataAccess.Service().SparePart_Delete(spareid);
//here to delete in dataset to reflect in gridview
DataSet ds = (DataSet)Session["dataset"];
ds.Tables[0].Rows[index].Delete();
GridView1.DataSource = ds;
GridView1.DataBind();
//here notification for delete
lblmsg.Text = "delete ok ";
lblmsg.Visible = true;
}
plz help me i dont know where is the error
thanks in advice
Kareem Elhosseny
|
|
|
|
|
Is your page load interacting with your grid at all ? If you look at this code in the debugger, do any of the cells have data for that row ? For any row ?
Tell me it's not really called gridview1 ???
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|