|
Thanks for the reaction,
but the markup and the code behind is more then 2400 lines,
The real problem is that is have inherited this project from some other company which failed to deliver on time. And now I have to 'Make it Work, ASAP'.
Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
Are you loading the UserControl dynamically? if yes then you must re-load it on Init event of the page.
let me know if you need any further help.
Regards,
Jamil
|
|
|
|
|
As far as i know the control isn't loaded dynamically.
<visitcontrol:SimpleVisitorControl ID="BadgeControl1" runat="server" />
Is used to get the control on the page.
To show the Control it is call by a client side script.
badgeCallbackPanel.PerformCallback("");
Which is the same code as on the working page.
On both pages the control is shown in a 'popup' but on one of the pages the OK button doesn't work.
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
See if there are any event delegates that you have missed. May be the code expects you to catch the callback on the container page.
|
|
|
|
|
Can we write ASP.Net code in the events of "Exchange Server 2007"? For example, if new email message arrives in any email box (ABC@domain.com, XYZ@domain.com, etc.) of Exchange Server 2007 then some kind of event is fired in Exchange Server.
If it is possible then please guide me in doing this.
Thanks.
|
|
|
|
|
EXchange Server 2007 having Web Services - EWS ( Exchage Web Service ). Using that you can do that.
You can check EWS Article written by Brij, in Code project.
Cheers !
Abhijit Jana | MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
|
Hi All,
i have a textbox with numeric insert so if i worte 5 there, then i need to create a grid with 5 columns with checkboxes.
So the column should add at runtime i can't define the template field at designtime, when i user checkboxfield to create checkbox column dynamically then the column created but the checkboxes is not appeared in the column.
So what would the solution.
plz do reply.
Thanks
Yogesh Agarwal
|
|
|
|
|
No need to create it dynamically.Create a Templated Gridview and when user enters value in textbox, create a datasource with that specified number of rows and bind it to grid.
|
|
|
|
|
But i dont know how much column has to created because no. of columns is dynamic according to the numbers user enters. So how many template field i have to created.
|
|
|
|
|
Where this column name coming from?I mean where this column is mapped to?Where you get the no of records from?
if the column is only dynamic and you know the no of records, then you can try any of the following solution.I guess it'll work,
Either
1.Add Template column for check box and make AutoGenerateColumns true. Add dynamic columns to the datasource and bind it to grid.
or
2.Create a datasource with no of records, Bind the grid with the DataSource and add the dynamic columns in the Row_Created event.
|
|
|
|
|
For now i create the columns with the name 1,2,3,... for loops counter value. and i dont want to bind it with any database table.
i used the following code to create the column for now
<br />
loop<br />
<br />
CheckBoxField cf=new CheckBoxField();<br />
cf.HeaderText=i.toString();<br />
gridview.columns.add(cf)<br />
<br />
End Loop<br />
it creates the column for me but no checkbox appears there
|
|
|
|
|
How you are binding your gridview?Whats the DataSource?
|
|
|
|
|
HI,this is my idea:
1、you can add a table with runing at service in UI
2、create table tb=new row()
3、crate cell c = new cell()
4、ch = new chkbox()
5、c.add.control(ch)
6、tb.add(c)
7、tablName.add(tb)
you can add dynamic table cell
so...i don't know than can help you .
|
|
|
|
|
I'm using a query string in asp.net2.0 web application.I encrypt a string value and after encryption it becomes M8BIJqI+Sdc= and I send the value using query string.When I receive the value in another page using Request.Querystring method it comes as M8BIJqI Sdc=.The + symbol becomes a space .So I'm getting error during decryption. Anyone explain such behavior !!!!
|
|
|
|
|
There are some characters that cannot be passed over querystring.For that you need to do URL endcoding as, for encoding Server.UrlEncode and decoding as Server.UrlDecode .
For details Have alook
|
|
|
|
|
|
your welcome
|
|
|
|
|
|
Hi,
Use Server.UrlEncode/ Server.UrlDecode to fix the issue,please check the following example:
string MyURL;
MyURL = "http://www.contoso.com/articles.aspx?title=" + Server.UrlEncode("ASP.NET Examples");
Response.Write("<a href=" + MyURL + "> ASP.NET Examples </a>");
string DecodedString = Server.UrlDecode(EncodedString);
Regards,
Jamil
|
|
|
|
|
Hi;
how to import data from a different table of SQLServer 2008 database to excel without using the gridview .
ThAnks
|
|
|
|
|
Only one posting is necessary. Please delete the other before someone responds to it.
You don't need to use a GridView at all. You can create a DataTable and then export it to an Excel file.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I am using .Net framework 3.5, ASP.Net, C#, and VS2008.
I have a C# class defined in dynamic compilation code (i.e. in a .cs file in the App_Code folder). I am using a namespace in the C# code, i.e. "namespace AltaNove". I can use classes in this namespace in databound controls on an aspx page just fine. The problem is that when I try to access the namespace (i.e. "using AltaNove") in the code-behind file, it is not exposed. I get the infamous "The type or namespace name "AltaNove" could not be found (are you missing a using directive or an assembly reference?"
How can a namespace defined in dynamic code not be exposed in the .aspx.cs file, but it is exposed and referenced correctly in the associated .aspx file? My last resort is to do away with the dynamic compilation and create an assembly, but i would rather not go through the hassle of managing shared assemblies.
Thanks.
Adam
|
|
|
|
|
The assembly is created at runtime, hence the dynamic compilation, so it doesn't yet exist for a using statement to resolve.
Dynamic code generation does have some drawbacks besides this.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi, all,
I create a gridview as the following
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="false" gridlines="Horizontal" border="1">
There are default two columns, I will add the columns dynamically according method types.
after data binding, I call GridView1.Attributes.Add("bordercolor", "#acc0e9"); to set gridview row border.
The strange thing is that only some of rows have border, others with default horizontal line, this makes the table looks very strange.
Does anybody has this issue before?
Thanks!
|
|
|
|