|
You did not care to explain the problem.
I googled the error message, I found these results[^]. Read them, try them and I am sure they will help you.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I was to get crazy here, 2 hours I am dealing with that problem. It is that I was prettey sure that I explained that very well, but I am so tired. Giving a comment like previous one was enough I would explain the problem..
|
|
|
|
|
|
I have a code on the form load of my page to populate the controls of my page with some data. I also have a dropdown list that when clicked must populate the page with some other data.
ML Lingwati
|
|
|
|
|
What is your question?
I didn't get any requirements for the signature
|
|
|
|
|
LucBite wrote: I have a code on the form load of my page to populate the controls of my page with some data. I also have a dropdown list that when clicked must populate the page with some other data.
So, what is your questions?
|
|
|
|
|
Sorry I didn't finish the thread. it got posted by mistake before I could finish. But my problem is when, the page is running, after clicking some option on the drop down list the page loads with the page load code, while I expect the results of the actions(code) that I placed under the drop down list Selected_Change event.How do solve this problem? hope i'm clear. please help.
ML Lingwati
|
|
|
|
|
I have a problem with people who use the public boat ramp blocking my driveway.
Wonder why? So do I.
|
|
|
|
|
leckey wrote: I have a problem with people who use the public boat ramp blocking my driveway.
You have a public boat ramp blocking your driveway? I'd be PO'd too!
Cheers,
Drew.
|
|
|
|
|
I am using asp.net 2005 with c#. i hv gridview and try to show the datas as forum.I have link button and in link button caption should be database value.i got the value but the problem is id. i need name instead of the id , based on tat id, need to show the name from another table.
<asp:TemplateField >
<ItemTemplate>
<asp:LinkButton runat ="server" ID="lnk_pby" Text ='<% #Eval("uid") %>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
so what i should do for this.
2) my second doubt is how to show 2 datas in single field. tat is in
this itemtemplate it shows only one datas but i need to show to idems how to show
<ItemTemplate>
<asp:LinkButton runat ="server" ID="lnk_pby" Text ='<% #Eval("uid") %>'></asp:LinkButton>
pls help me,if u knw
Thank you in advance
k.priya
|
|
|
|
|
First Doubt
Are you able to return name field in your query ? If yes then just provide name field in place of uid.
If no then modify you query and join the both table and return result with name field.
Second Doubt
you can use multiple control in Item template column. For the formating just use Html table.
|
|
|
|
|
Define your item template so it displays two columns of data, if that's what you want. Then they will appear in a single gridview column
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thank you for u both. i got answers.
k.priya
|
|
|
|
|
Hello,
I am creating an websetup project and it is installed in IIS but when i publishing it gives error.Give me reply as soon as possible.
I want to ask other thing also that can we create licensed type web application set up which asks activation key to install how to do it.Send me any sample.
thanks in advance,
V.Vijay.
|
|
|
|
|
vijayvelidi wrote: I am creating an websetup project and it is installed in IIS but when i publishing it gives error.
What error are you getting ? You should tell the details about.
vijayvelidi wrote: Give me reply as soon as possible.
This is Rude. Every body will reply based on their time.
|
|
|
|
|
hi, what is the equivalent to AxSHDocVw.AxWebBrowser in asp?
i cant find that object in asp only in c# application
can anyone help me
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
AxSHDocVw.AxWebBrowser ?
Are you using any third party component ?
If yes then you need to add the reference of that component.
|
|
|
|
|
no, it exists in c#
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hello!
I cache a System.Data.Datatable (which I create with lazyloading) containing urlrewriting information. I then use a method looking like this:
string GetDataFromTable(MyEnum enum)
The method creates a system.data.dataview pointing at the table with the enum as rowfilter and returns a few values from the view. My problem is, sometimes when the method is run it generates an error like this:
"The given key was not present in the dictionary."
since my enum only contains a few values and I know for a fact that all enum-values are represented in the table, this error should not be able to occur. As I see it the problem must therefore be either with the caching or something with the memory.
Has anyone else experienced this problem or have an idea how I approach this?
/Regards!
|
|
|
|
|
How are you caching the table? Can you post the line of code (and surrounding lines) that is causing the problem?
I didn't get any requirements for the signature
|
|
|
|
|
My cached datatable:
private static DataTable MyTable
{
get
{
object obj = HttpContext.Current.Cache[SiteCacheEntries.MyTable];
if (obj == null)
{
DataTable dt = Data.Specific.GetMyTable();
DateTime nextMorning = DateTime.Now.Hour < 6 ?
new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 6, 0, 0) :
new DateTime(DateTime.Now.AddDays(1).Year, DateTime.Now.AddDays(1).Month, DateTime.Now.AddDays(1).Day, 6, 0, 0);
HttpContext.Current.Cache.Insert(SiteCacheEntries.MyTable, dt, null, nextMorning, Cache.NoSlidingExpiration);
return dt;
}
return (DataTable)obj;
}
}
Dataview is also cached:
public static DataView MyDataView
{
get
{
object obj = HttpContext.Current.Cache[SiteCacheEntries.MyDataView];
if (obj == null)
{
DataView dv = new DataView(MyTable);
HttpContext.Current.Cache.Insert(SiteCacheEntries.MyDataView, dv, null, DateTime.Now.AddYears(10), Cache.NoSlidingExpiration);
return dv;
}
return (DataView)obj;
}
}
My method to collect data from table
public static string GetPageConstant(PageConstants type, LanguageCode lang)
{
MyDataView.RowFilter = string.Format("{0} = '{1}' AND {2} = '{3}'", _nameOfTypeColumn,
typeColumn.ToString(), _nameOfLanguageColumn, lang);
if (MyDataView.Count > 0)
{
return MyDataView[0].Row[_nameOfValueToCollectColumn].ToString();
}
return string.Empty;
}
And its in the GetPageConstant method the error occurs.
modified on Monday, August 3, 2009 10:06 AM
|
|
|
|
|
I don't think you should ever cache a DataView. You should re-create it each time you need it.
public static string GetPageConstant(PageConstants type, LanguageCode lang)
{
DataView MyDataView = new DataView(MyTable);
MyDataView.RowFilter = string.Format("{0} = '{1}' AND {2} = '{3}'", _nameOfTypeColumn,
typeColumn.ToString(), _nameOfLanguageColumn, lang);
MyDataView.ToTable().Rows[_nameOfValueToCollectColumn].ToString();
return string.Empty;
}
also you could try MyTable.Select(string.Format("{0} = '{1}' AND {2} = '{3}'", _nameOfTypeColumn,
typeColumn.ToString(), _nameOfLanguageColumn, lang))
I didn't get any requirements for the signature
|
|
|
|
|
|
Thank you very much for your responses, I shall try your suggestions ( and check out that article ) first thing I do when I arrive at work tomorrow.
/Regards
|
|
|
|
|
Hi All,
I am not sure about what does the output mean when I try this :
http://www.webservicex.net/WeatherForecast.asmx?disco
<?xml version="1.0" encoding="utf-8" ?>
- <discovery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/disco/">
<contractRef ref="http://www.webservicex.net/WeatherForecast.asmx?wsdl" docRef="http://www.webservicex.net/WeatherForecast.asmx" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<soap address="http://www.webservicex.net/WeatherForecast.asmx" xmlns:q1="http://www.webservicex.net" binding="q1:WeatherForecastSoap" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
<soap address="http://www.webservicex.net/WeatherForecast.asmx" xmlns:q2="http://www.webservicex.net" binding="q2:WeatherForecastSoap12" xmlns="http://schemas.xmlsoap.org/disco/soap/" />
</discovery>
Can anyone please throw some light on what does a disco/vsdisco file actually reveals and how it has to be used?
Thanks!
|
|
|
|