|
There is a table field in the database ?
can i see that one to accomplish it?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
|
Hi, I want to capture my client's HMTL doctype by using server web control, is it possible and how to use render in web control?
Please advice...thanks ~~~
|
|
|
|
|
If i understand correctly you want to get the HTML content of your client sire and render in your site ?
A simple way is
1) Create a web request to clients site
2) Get the html content prase it to get the part you want to display.
3) Create a label and set it text to the html contect.
(The label is implemented as a simple <div> that means you can render any HTML content through its text property )
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
I'd put this in aspx.cs it works well but not in my web control..
StringWriter writer = new StringWriter();
HtmlTextWriter buffer = new HtmlTextWriter(writer);
base.Render(buffer);
string gridMarkup = writer.ToString();
Any hints and idea...
|
|
|
|
|
Try adding a dive controla and try set its innerHTML to gridMarkUP, or label.Text
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
I am creating a web component(not website ya) actually and I need to get the HTML standard of my client in a class..Base.Render is a good way but I can't get it works in my component..
|
|
|
|
|
Your question doesn't make any sense to me. What do you mean by getting the DOCTYPE of client ? Are you trying to get the DOCTYPE of another website from your control ?
|
|
|
|
|
Yes can be said so. User use my component, and in my component I need to rewrite the HTML standard..
|
|
|
|
|
i have a web app. it have a module manager file.
When i rename,delete: folder ,file -> lost session
can you help fix this error?
|
|
|
|
|
Hi all,
I am having a datagrid as follows
<asp:datagrid id="dgResources" runat="server" ShowHeader="False" PageSize="23" GridLines="None"
AllowPaging="True" AutoGenerateColumns="False">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox ID="chkResource_First" Runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink ID="lblResource_First" Runat="server"></asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox ID="chkResource_Second" Runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:HyperLink ID="lblResource_Second" Runat="server" CssClass="DataLight"></asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<PagerStyle VerticalAlign="Middle" NextPageText="Next" PrevPageText="Previous" HorizontalAlign="Right"
Position="Bottom"></PagerStyle>
</asp:datagrid>
Now I want to add table inside the ItemTemplate. Because I have common style sheet which applies css for the rows of the style sheet. How can I
Thanks in Advance
Dana
|
|
|
|
|
<asp:templatecolumn>
<itemtemplate>
<table class="YouCss">
<tr>
<td></td>
</tr>
</table>
</itemtemplate>
</asp:templatecolumn>
Is this how you are looking ?
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Thank you Laddie
|
|
|
|
|
Hi friends
I need to upload my product data to bizrate/shopzilla.com using their ftp website.
can I access others ftp website using ASP.net code and upload my products details
Thanking you,
Laxmikant
|
|
|
|
|
Yes
You may use the WebRequestMethod.FTP class in System.net namespace.
Laddie
|
|
|
|
|
Laxmikant Lad wrote: can I access others ftp website using ASP.net code and upload my products details
Try using WebClient class. It provides methods to upload/download data and files.
|
|
|
|
|
I have a gridview with template fields one of those fields is link button. I want to fire the event associated with that link button (myGrid_RowCommand) programatically on a button click. Also in RowCommand event handler I check some e.CommmandName. This button is lying outside the grid. Would anybody please help me regarding this.
Regards,
Kamran Rao
|
|
|
|
|
Hi all, thanks for looking
Im implemmenting something like an online store
As all the online stores do, i need to implement the "Continue shopping button" after adding a product
I know that i could use something like ContinueLink.NavigateUrl = Request.UrlReferrer.ToString and it could take me to the previous page, but imagine that some sorting and filtering could have been applied to the product listing before adding a product and i would have to show the products the same way thay were showing before they added the product to the cart
I could store filter and sorting params in session or somewhere else, but i wonder if thats the best way
What would be the best way (and easier) to implement this?
Ill appreciate any feedback
Thanks
Alexei Rodriguez
|
|
|
|
|
i think it would be best to store their filter values in the session and then send the user back to the page with the session values intact therefore allowing the user to do what it says on the button 'continue shopping'
hope this helps
|
|
|
|
|
I am trying to setup custom paging for a formview. I can get < << >> > to show up and no matter how I set any properties, despite being in "numeric" mode, the link buttons still show up the same way. This shouldn't be this difficult but is proving to be that way. What I am wanting to do is to basically modify the default setting for a FormView's paging display. I need to have Page #: in front of the page #'s like Page #: 1 2 3 4. Does anyone know how to do this?
|
|
|
|
|
Does anyone have any ideas?
|
|
|
|
|
I am in need of an asp.net programmer to help with a dedicated Microsoft server running mssql and Windows server.
I would like to know where the best place is to find a really cool, affordable and customer-oriented person???
|
|
|
|
|
borntodeal wrote: where the best place is to find a really cool,
All the cool developers are here Just not in this forum. I thought there was a jobs forum, though I don't see it at the moment.
only two letters away from being an asset
|
|
|
|
|
you found one
|
|
|
|
|
Hello- Please help me with the following questions, if possible,
please also provide some explanations--thanks in advance:
1) Assuming that "valid connection string" is a valid connection string, what will be the output of the following code? If the code cannot compile, please state why.
the same rules apply to this question as for the one above
using(SqlConnection sqlConn = new SqlConnection("valid Connection string"))
{
System.Diagnostics.Debug.WriteLine("Opening a connection");
sqlConn.Open();
System.Diagnostics.Debug.WriteLine("Connection Opened");
sqlConn.Close();
System.Diagnostics.Debug.WriteLine("Connection Closed");
}
if(sqlConn == null)
System.Diagnostics.Debug.WriteLine("Connection State is NULL");
else
System.Diagnostics.Debug.WriteLine("Connection State:" + sqlConn.ConnectionState);
2)The following code needs to generate a string of 1000 alternating '+' and '-' characters
Rewrite this code to make it more efficient (Note: You can use different data types than the ones present)
string htmlOutput = string.Empty;
for(int itemIndex = 0; itemIndex < 1000; itemIndex++)
{
if( itemIndex % 2 == 0)
htmlOutput += "+";
else
htmlOutput += "-";
}
3)Assuming that CustomException is defined, what will be the output of the following code?
try
{
throw new CustomException("Something went wrong");
}
catch(Exception ex)
{
System.Diagnostics.Debug.WriteLine("Generic Exception has been triggered");
}
catch(CustomException ex)
{
System.Diagnostics.Debug.WriteLine("Custom Exception has been triggered");
}
4) What will be the difference in behavior between the lines marked 'a' and 'b' during runtime? (Assume that CustomClass is a defined class)
object objClass = new object();
CustomClass myClass1 = objClass as CustomClass; //a
CustomClass myClass2 = (CustomClass)objClass; //b
5) Assuming you have the following class:
public class MyClass
{
public MyClass()
{
}
public string DoNothing(string someParameter)
{
System.Diagnostics.Debug.WriteLine(someParameter);
}
}
How would you call the DoNothing function asynchronously and provide a callback?
6) What is the difference between a Monitor and a Semaphore?
7) Architectural Question: If you have pages that perform heavy DB or File I/O, what could be done to help increase the overall performance of the application? (Asp.net only! Assume all non asp.net factors have been optimized to the max)
8) What is the difference between the following 2 statements?
try
{
throw new ApplicationException("None");
}
catch(Exception ex)
{
throw ex;
}
try
{
throw new ApplicationException("None");
}
catch(Exception ex)
{
throw;}
9) What is the difference between a List and a LinkedList?
10) Assume that you retrieve a list of 1,000,000 Person objects from a database that contain the SocialSecurityID, First and Last name properties. Which collection class would you use to store and allow for quick lookup of Person objects based on the SocialSecurityID field?
A.Asif
A.Asif
|
|
|
|